Template:DPL parameter.surrogateexample: Difference between revisions

Content deleted Content added
imported>FrozenPlum
mNo edit summary
imported>FrozenPlum
mNo edit summary
Line 9: Line 9:
Surrogate/phantom templates are used by setting the template name in <code>includepage = {templatename}.suffix</code> (changing the suffix to whatever the template name is, usually the suffix is descriptive of template purpose).
Surrogate/phantom templates are used by setting the template name in <code>includepage = {templatename}.suffix</code> (changing the suffix to whatever the template name is, usually the suffix is descriptive of template purpose).


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 in the Templates category.
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).


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