Examples/Parameter: mode (example 1): Difference between revisions
< Examples
Content added Content deleted
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== These create abbreviated lists of articles in :Category:Fruit example...") |
imported>FrozenPlum No edit summary |
||
Line 8: | Line 8: | ||
These create abbreviated lists of articles in [[:Category:Fruit examples]], each formatted either using an ''ordered'' list (numbered), and ''unordered'' list (bulleted), or the ''none'' list style (no list item markers): |
These create abbreviated lists of articles in [[:Category:Fruit examples]], each formatted either using an ''ordered'' list (numbered), and ''unordered'' list (bulleted), or the ''none'' list style (no list item markers): |
||
<pre> |
|||
⚫ | |||
⚫ | |||
|titlematch = %a% |
|||
|nottitlematch = %pl%¦%go% |
|||
|mode = ordered |
|||
⚫ | |||
⚫ | |||
<pre> |
|||
⚫ | |||
⚫ | |||
|titlematch = %a% |
|||
|nottitlematch = %pl%¦%go% |
|||
|mode = unordered |
|||
|count = 3 |
|||
}} |
|||
⚫ | |||
<pre> |
|||
⚫ | |||
⚫ | |||
|titlematch = %a% |
|||
|nottitlematch = %pl%¦%go% |
|||
|mode = none |
|||
|count = 3 |
|||
}} |
|||
⚫ | |||
==Result== |
|||
{| style="border-spacing: 10px 0;" |
|||
| align=center| In an <code><nowiki><ol>...</ol></nowiki></code> list: || align=center| In a <code><nowiki><ul>...</ul></nowiki></code> list: || align=center| In a <code><nowiki><br/></nowiki></code> list: |
|||
⚫ | |||
|- style="vertical-align:middle;" |
|||
⚫ | |||
|<pre><nowiki> |
|||
|titlematch = %a% |
|||
⚫ | |||
|nottitlematch = %pl%¦%go% |
|||
⚫ | |||
|mode = ordered |
|||
titlematch=%a% |
|||
|count = 3 |
|||
nottitlematch=%pl%|%go% |
|||
}} |
|||
mode=ordered |
|||
⚫ | |||
⚫ | |||
</nowiki></pre> |
|||
⚫ | |||
|<pre><nowiki> |
|||
|titlematch = %a% |
|||
⚫ | |||
|nottitlematch = %pl%¦%go% |
|||
⚫ | |||
|mode = unordered |
|||
titlematch=%a% |
|||
|count = 3 |
|||
nottitlematch=%pl%|%go% |
|||
}} |
|||
mode=unordered |
|||
⚫ | |||
⚫ | |||
</nowiki></pre> |
|||
⚫ | |||
|<pre><nowiki> |
|||
|titlematch = %a% |
|||
⚫ | |||
|nottitlematch = %pl%¦%go% |
|||
⚫ | |||
|mode = none |
|||
titlematch=%a% |
|||
|count = 3 |
|||
nottitlematch=%pl%|%go% |
|||
}} |
|||
mode=none |
|||
⚫ | |||
</nowiki></pre> |
|||
|- |
|||
⚫ | |||
⚫ | |||
titlematch=%a% |
|||
nottitlematch=%pl%|%go% |
|||
mode=ordered |
|||
⚫ | |||
⚫ | |||
⚫ | |||
titlematch=%a% |
|||
nottitlematch=%pl%|%go% |
|||
mode=unordered |
|||
</dpl> |
|||
|<dpl> |
|||
⚫ | |||
titlematch=%a% |
|||
nottitlematch=%pl%|%go% |
|||
mode=none |
|||
</dpl> |
|||
⚫ | |||
<noinclude> |
<noinclude> |
||
[[Category:Setting the basic output mode]] |
[[Category:Setting the basic output mode]] |
||
Line 62: | Line 66: | ||
[[Category:Uses nottitlematch parameter]] |
[[Category:Uses nottitlematch parameter]] |
||
[[Category:Uses mode parameter]] |
[[Category:Uses mode parameter]] |
||
[[Category:Uses count parameter]] |
|||
</noinclude> |
</noinclude> |
Revision as of 05:47, 23 April 2022
Example
These create abbreviated lists of articles in Category:Fruit examples, each formatted either using an ordered list (numbered), and unordered list (bulleted), or the none list style (no list item markers):
{{#dpl: |category = Fruit examples |titlematch = %a% |nottitlematch = %pl%¦%go% |mode = ordered }}
{{#dpl: |category = Fruit examples |titlematch = %a% |nottitlematch = %pl%¦%go% |mode = unordered |count = 3 }}
{{#dpl: |category = Fruit examples |titlematch = %a% |nottitlematch = %pl%¦%go% |mode = none |count = 3 }}
Result
{{#dpl: |category = Fruit examples |titlematch = %a% |nottitlematch = %pl%¦%go% |mode = ordered |count = 3 }}
{{#dpl: |category = Fruit examples |titlematch = %a% |nottitlematch = %pl%¦%go% |mode = unordered |count = 3 }}
{{#dpl: |category = Fruit examples |titlematch = %a% |nottitlematch = %pl%¦%go% |mode = none |count = 3 }}