Template:DPL parameter.surrogateexample
| Template documentation |
|---|
| Note: portions of the template sample may not be visible without values provided. |
| View or edit this template's documentation (edit) (about template documentation). |
No TemplateStyles exist (create). Remember to add after the opening <includeonly> tag:
|
<templatestyles src="Template:DPL parameter.surrogateexample/styles.css" />
|
Example(s)
edit- The following
{{DPL parameter.surrogateexample|name=debug|purpose=Some purpose text.}}
- Gives
debug |Some purpose text.
Notes
editNaming the surrogate/phantom template after its parent, and then adding 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).
See Also
edit{{DPL parameter}}, the primary template that uses this one to format rows of output.
Documentation
editThis is a surrogate (also called a 'phantom') template that formats one result/line of output. It is then re-applied to subsequent rows. 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).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| name | name | Enter the parameter name. | String | required |
| purpose | purpose | Enter the parameter description. | String | required |