Anonymous user
Template:DPL parameter.nowordbreak: Difference between revisions
m
Move docs to this page since it may be an exported/imported template, and we don't need the documentation modules etc to go with it.
(+TR) |
imported>FrozenPlum m (Move docs to this page since it may be an exported/imported template, and we don't need the documentation modules etc to go with it.) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1:
[[{{{%PAGE%}}}#{{{name}}}|{{{name}}}]] || {{nowordbreak|{{{purpose|}}}|50}}<noinclude>
[[Category:Formatting templates]]▼
<!-- Documentation here -->
This template is a surrogate template (also called a 'phantom template') example that formats one result/line of DPL output. DPL then reuses and applies the surrogate template's formatting to each result/line in the output.
Surrogate/phantom templates are used by setting the template name in <code>includepage = {templatename}.suffix</code> (changing the suffix to whatever 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 understood. This style of naming them is particularly useful when looking in the Templates category.
==See Also==
* [[{{NAMESPACE}}:{{#explode:{{BASEPAGENAME}}|.}}]] (the template this surrogate provides per-result output formatting for).
<!-- Template categories/interwikis here -->
[[Category:Templates]]
</noinclude>
|