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: format (example 1): Difference between revisions

m
FrozenPlum moved page Controlling output format/Parameter: format (example 1) to Examples/Parameter: format (example 1): Simplifying how things are structured
imported>FrozenPlum
No edit summary
imported>FrozenPlum
m (FrozenPlum moved page Controlling output format/Parameter: format (example 1) to Examples/Parameter: format (example 1): Simplifying how things are structured)
 
(2 intermediate revisions by the same user not shown)
Line 6:
==Example==
 
The classical default output of DPL, an unordered (bulleted) list, can be produced by using a default statement (first example and result). It can also be created using <code>{{DPL|format}}</code> with the following statements (last example and result). This selects pages that have "ntries" in the title, it excludes pages that have "f" in the title, and it also excludes subpages. BothThe outputs<code>format</code> appearstatement's <code>''Startall''</code>, <code>''End''</code>, and <code>''Endall''</code> arguments are empty, only <code>''Start''</code> is used to manually define a bulleted list followed by the sameliked page name, which is then applied to each row of output.
 
<pre>
{{#dpl:
|titlematch = %ntries%
|nottitlematch = %f%
|includesubpages = false
Line 18:
<pre>
{{#dpl:
|titlematch = %ntries%
|nottitlematch = %f%
|includesubpages = false
|format = ,\n* [[%PAGE%|%TITLE%]],,
|count = 3
}}
Line 37:
|nottitlematch = %f%
|includesubpages = false
|format = ,\n* [[%PAGE%|%TITLE%]],,
|count = 3
}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.