Anonymous user
Examples/Parameter: multisecseparators (example 3): Difference between revisions
Examples/Parameter: multisecseparators (example 3) (view source)
Revision as of 05:35, 1 April 2023
, 1 year agotweak link text
imported>FrozenPlum m (Moving away from "phantom" use because phantom suggests something that is not there/imaginary, where surrogate is the more accurate term, it caries, substitutes, and also formats the results.) |
imported>FrozenPlum m (tweak link text) |
||
(One intermediate revision by the same user not shown) | |||
Line 6:
==Example==
This example uses a [[Template:DPL parameter.surrogateexample|surrogate (also known as phantom) template]] to format the second and third column of results. The first column is included in the <code>{{DPL|listseparators}}</code> statement, to prevent the page name from being repeated in every subsequent line. The second and third column, formatted in the surrogate, creates a link to the page's parameter name section, and then display the "purpose" text using [[mw:Help:Extension:ParserFunctions|Parser Functions]]. This combination of formatting the page name in a "separators" format statement '''and''' a surrogate template, results in templates used multiple times on a page to be separated into separate table rows under the parent page name (normally repeat templates used on a page are combined into a single row). This example is advanced, for more, simple examples of surrogate template use see
<pre>
|