Template:DPL parameter.surrogateexample: Difference between revisions

Content deleted Content added
imported>FrozenPlum
mNo edit summary
imported>FrozenPlum
m I'm having trouble refining this statement, so more iterations, hopefully it's okay now?
Line 10: 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).
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 and enabled in [[meta:ManageWiki|ManageWiki]]. The #sub parser function use, to add the "more..." text used in this example for demonstration purposes only, may break ''nowiki'' or other tags (creating an undesired result) if it splits the result in the middle of one of these tags.}}
{{note|This surrogate template requires the [[mw:Extension:ParserFunctions|ParserFunctions]] extension and requires <code>[[mw:Extension:ParserFunctions|$wgPFEnableStringFunctions]]</code> to be set to "true" (enabled) in order to function correctly; on Miraheze, ParserFunctions is already installed, the latter setting can be found and enabled in [[meta:ManageWiki|ManageWiki]]. The #sub parser function, used to add the "more..." text in this example, is for demonstration purposes only; it may break ''nowiki'' or other tags (creating undesired results) if it splits a result in the middle of one of these tags.}}


[[Category:Surrogate (phantom) templates]]
[[Category:Surrogate (phantom) templates]]