Examples/Parameter: multisecseparators (example 3): Difference between revisions
Content added Content deleted
imported>FrozenPlum m (Changed my mind, this note in the surrogate should be enough.) |
imported>FrozenPlum m (Simplify) |
||
Line 6: | Line 6: | ||
==Example== |
==Example== |
||
This example contains all the same elements as the prior examples, only it uses a [[Template:DPL parameter.surrogateexample|surrogate/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 column, formatted in the surrogate, |
This example contains all the same elements as the prior examples, only it uses a [[Template:DPL parameter.surrogateexample|surrogate/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 format and surrogate template is advanced use, for more simple examples of surrogate template use, see the [[Controlling output volume#include contents related to templates|include]] parameter as related to included contents from templates, and see <code>{{DPL|table}}</code> and <code>{{DPL|tablerow}}</code>for other information about formatting in tables. |
||
<pre> |
<pre> |