Jump to content
This wiki has been automatically closed because there have been no edits or log actions made within the last 60 days. If you are a user (who is not the bureaucrat) that wishes for this wiki to be reopened, please request that at Requests for reopening wikis. If this wiki is not reopened within 6 months it may be deleted. Note: If you are a bureaucrat on this wiki, you can go to Special:ManageWiki and uncheck the "Closed" box to reopen it.

Examples/Parameter: include (example 6): Difference between revisions

m
Found (I hope) a way to simplify the description of what this is doing to make it more succinct. This was a complex example to untangle and communicate.
imported>FrozenPlum
(Created page with "<noinclude>{{note|Please '''do not edit''' this page unless you're wanting to edit the manual itself, it is an example included in the manual.|error}}</noinclude><!-- This is the example preloaded for testing, press "Show Preview" to see the example working (at the bottom of the page). If you save this page, it saves as a new section at the bottom of your '''User:Username/Sandbox''' --> ==Example== This example selects the Examples page, and includes parser functio...")
 
imported>FrozenPlum
m (Found (I hope) a way to simplify the description of what this is doing to make it more succinct. This was a complex example to untangle and communicate.)
Line 6:
==Example==
 
This example selects the [[Examples]] page, and includes all DPL3 parser function calls <code><nowiki>{{#dpl:}}</nowiki></code> used on that "Examples" page,. passing itsThe parameters toof aeach surrogate<code>#dpl</code> templatestatement calledused on [[Template:dpl.examplesExamples]]. Allare #dplpassed parserto, function parameters used on the "Examples" pageand can be used/accessed insidein, thata surrogate template,. toThe displaysurrogate theirtemplate valuesspecified ends in the outputchosen ".examples" suffix, thoughresulting in: [[Template:dpl.examples]]; that surrogate only makes use of the <code><nowiki>{{{category|}}}</nowiki></code> and <code><nowiki>{{{ordermethod|}}}</nowiki></code> ''were'' usedparameters, to pass theirthose parameter's values to the output below. The <code>table</code> statement usesapplies default table formatting in the first argument (left empty), argumentdefaults to <code>class="wikitable"</code>), the second, third, and fourth arguments set the table header text. Since the <code><nowiki>{{#dpl:}}</nowiki></code> parser function was used more than once on the [[Examples]] page, moreone thanline once,of output for each instance appears (and <code>table</code> format wasseparates usedthese (inper which row of output are separatedline with the titles repeating) the page column also repeats for each one (separation anda repeating title, would not be the case in somewhere other output formats). Amay valuelist isthe onlytitle displayedonce for cells that useand the correspondingvalues parameter, otherwise they'd appear emptythereafter).
 
<pre>
Line 23:
|table = ,Page,<code>category</code> parameter value, <code>ordermethod</code> parameter value
}}
 
<noinclude>
[[Category:Controlling output volume (examples)‎]]
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.