Examples/Parameter: multisecseparators (example 3): Difference between revisions

m
More tweaks for when this is used in other pages, that help explain what's going on here vs the other page
imported>FrozenPlum
m (Minor tweak to spacing and wording in consideration to the other page I'm working on)
imported>FrozenPlum
m (More tweaks for when this is used in other pages, that help explain what's going on here vs the other page)
Line 6:
==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 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 the [[Controlling output volume#include contents related to templates|include]] parameter as related to including contents from templates, and see the <code>{{DPL|table}}</code> and <code>{{DPL|tablerow}}</code>for otherparameters informationfor aboutstraightforward formattingtable in tablesexamples.
 
<pre>
Anonymous user