Template:DPL parameter.surrogateexample/doc
| Documentation subpage |
|---|
| View this documentation's related template: Template:DPL parameter.surrogateexample (edit). |
| Template styles: CSS styles (edit). |
Example(s)
[edit source]- The following
{{DPL parameter.surrogateexample|name=debug|purpose=Some purpose text.}}
- Gives
debug |Some purpose text.
Notes
[edit source]Naming 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 source]{{DPL parameter}}, the primary template that uses this one to format rows of output.
Documentation
[edit source]This 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 |