Template:DPL parameter.surrogateexample: Difference between revisions

m
no edit summary
imported>FrozenPlum
m (make the "more..." text appear here also, and, flag this as using parserfunctions string functions.)
imported>FrozenPlum
mNo edit summary
Line 1:
[[{{{%PAGE%}}}#{{{name}}}|{{{name}}}]]||{{#sub:{{{purpose|}}}|0|50}} {{#ifexprifeq: {{#expr: {{#len:{{{purpose|}}}}} > 50}} }} | yes | [[{{{%PAGE%}}}#{{{name}}}|more ...]] | }}<noinclude>
 
<!-- Documentation here -->
Line 10:
 
Naming the surrogate/phantom template after its parent, and then adding [[Controlling output volume#Include contents related to templates|a descriptive suffix on the end]], ensures both the parent and surrogate are easily found, and their relationship to each other easily understood. This style of naming them is particularly useful when looking at templates in [[Special:AllPages]] (and selecting the templates drop-down option).
{{note|This surrogate template requires that <code>[[mw:Extension:ParserFunctions|$wgPFEnableStringFunctions]]</code> be set to "true" (enabled) in order to function correctly; on Miraheze, this is a setting that can be found anand enabled in [[meta:ManageWiki|ManageWiki]].}}
 
[[Category:Surrogate (phantom) templates]]
Anonymous user