Wikipedia:Templates for discussion/Log/2018 May 5#Template:German administrative territories
=May 5=
== [[Module:Plain text]] ==
:The following discussion is an archived debate of the proposed deletion of the template below. Please do not modify it. Subsequent comments should be made on the appropriate discussion page (such as the template's talk page or in a deletion review).
The result of the discussion was no consensus. Primefac (talk) 01:04, 13 May 2018 (UTC)
- {{Tfd links|Plain text|module=Module:}}
No reason for a separate lua module for this functionality, just use Module:MultiReplace {{3x|p}}ery (talk) 17:21, 16 April 2018 (UTC)
:Keep {{u|Pppery}} yes you could probably do it, but since this is presumably going to be used in various templates as they gain auto-descriptions, not just at Template:Infobox settlement, it is useful to have one module for it. Also, inline replacement with patterns is horrible - quite possible it wouldn't actually work, because mediawiki parser will do its own interpretation on the patterns. Galobtter (pingó mió) 17:30, 16 April 2018 (UTC)
:: Then create a {{tl|plain text}}. Counterexample for "quite possible it wouldn't actually work, because mediawiki parser will do its own interpretation on the patterns": Template:Delink question hyphen-minus/sandbox. {{3x|p}}ery (talk) 17:32, 16 April 2018 (UTC)
:::I don't see the point of creating a wrapping template. Yes, some patterns work, others may not. I have no desire to fight against the mediawiki parser to do it; or to write very unreadable code - even doing comments is harder in a template - when it costs basically nothing to have a separate module, which is also much much more maintainable. This module will likely have in the order of a million transclusions (just infobox settlement is 480000), and it'd be faster to do it this way too than to use multireplace too. For Template:Delink question hyphen-minus it may be ok as it has onetwo replace, for this with 9 replaces I don't see how nice code comes out. It'd either be an unreadable one liner or have a lot of
Please add new comments below this notice. Thanks, Plastikspork ―Œ(talk) 21:21, 5 May 2018 (UTC)
:The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made on the appropriate discussion page (such as the template's talk page or in a deletion review).