Help:DPL/Parameters: Controlling output format: Difference between revisions

no edit summary
m (1 revision imported)
 
No edit summary
 
Line 323: Line 323:
   nottitlematch   = %o%
   nottitlematch   = %o%
   includesubpages = false
   includesubpages = false
  count          = 10
</dpl>
</dpl>
</nowiki></pre>
</nowiki></pre>
Line 331: Line 332:
   includesubpages = false
   includesubpages = false
   format   = ,\n* [[%PAGE%]],,
   format   = ,\n* [[%PAGE%]],,
  count          = 10
</dpl>
</dpl>
</nowiki></pre>
</nowiki></pre>
Line 338: Line 340:
   nottitlematch = %o%
   nottitlematch = %o%
   includesubpages = false
   includesubpages = false
  count          = 10
</dpl>
</dpl>
|<dpl>
|<dpl>
Line 344: Line 347:
   includesubpages = false
   includesubpages = false
   format = ,\n* [[%PAGE%]],,
   format = ,\n* [[%PAGE%]],,
  count          = 10
</dpl>
</dpl>
|}
|}
Line 442: Line 446:
Symbolic replacements of {{tt|%PAGE%}} etc. take place as described in {{DPL|listseparators}}. In addition, the variable {{tt|%SECTION%}} can be used to refer to the section found (works only for chapter headings).
Symbolic replacements of {{tt|%PAGE%}} etc. take place as described in {{DPL|listseparators}}. In addition, the variable {{tt|%SECTION%}} can be used to refer to the section found (works only for chapter headings).


If the same section occurs more than once in an article (or an article includes the same template more than once) all such occurences will be transcluded as a block and the {{DPL|secseparators}} tags will only be put once around the whole block (but see {{DPL|dominantsection}}).
If the same section occurs more than once in an article (or an article includes the same template more than once) all such occurrences will be transcluded as a block and the {{DPL|secseparators}} tags will only be put once around the whole block (but see {{DPL|dominantsection}}).


======Example======
======Example======
Line 736: Line 740:


Now look at the {{DPL|Test table|examples}}
Now look at the {{DPL|Test table|examples}}
<span id="tablerow"></span>
 
==="tablerow"===
===tablerow===


{{DPL parameter
{{DPL parameter
Line 793: Line 797:
* We define column headers for transcluded contents and for the usage counter
* We define column headers for transcluded contents and for the usage counter
* We care for right alignment of the numerical values and define a bgcolor for the text
* We care for right alignment of the numerical values and define a bgcolor for the text
<span id="tablesortcol"></span>
 
==="tablesortcol"===
===tablesortcol===


{{DPL parameter
{{DPL parameter
Line 1,345: Line 1,349:
   count   = 6
   count   = 6
</dpl>
</dpl>
Note: {{DPL|columns}} is currently bugged (possible combatibility issue between [[mw:MediaWiki 1.31|Mediawiki 1.31.2]] and DPL3 v3.3.3) <ref name="columns bug"/>.<br/>
Note: {{DPL|columns}} is currently bugged (possible combatibility issue between [[mw:MediaWiki 1.31|Mediawiki 1.31.2]] and DPL3 v3.3.3) ([https://gitlab.com/hydrawiki/extensions/DynamicPageList/issues/81 see here]).<br/>
For a 3-column dpl, css can be used to achieve the desired results:
For a 3-column dpl, css can be used to achieve the desired results:
<pre><nowiki>
<pre><nowiki>