Examples/Parameter: format (example 3): Difference between revisions
< Examples
Content added Content deleted
imported>FrozenPlum m (fix spacing) |
imported>FrozenPlum No edit summary |
||
Line 6:
==Example==
This will list articles in [[:Category:Number examples]] that linkto the article named [[Two]]. The results will be limited to a count of five, and the <code>format</code>
As a reminder, the syntax is <code>format = ''Startall'',''Start'',''End'',''Endall''</code>):
* The <code>''End''</code> position of the syntax is intentionally omitted because there is no wikitext required to end a table row.▼
* <code>
* <code>''Start''</code> — specifies the wikitext to begin table row and cell (followed by the content, a link to the page) <code><nowiki>¶¦-¶¦[[%PAGE%]]</nowiki></code>.
▲*
* <code>''Endall''</code> — specifies the table-end wikitext <code><nowiki>¶|}</nowiki></code>.
<pre>
Line 20 ⟶ 23:
|format = {¦ class="wikitable" ¶!pages found,¶¦-¶¦[[%PAGE%]],,¶¦}
}}
</pre>
|
Revision as of 05:47, 23 April 2022
Example
This will list articles in Category:Number examples that linkto the article named Two. The results will be limited to a count of five, and the format
syntax used to create a table.
As a reminder, the syntax is format = Startall,Start,End,Endall
):
Startall
— specifies the wikitext to begin a table{|
.Start
— specifies the wikitext to begin table row and cell (followed by the content, a link to the page)¶¦-¶¦[[%PAGE%]]
.End
— is intentionally empty,
because no wikitext is needed to end a table row.Endall
— specifies the table-end wikitext¶|}
.
{{#dpl: |category = Number examples |linksto = Two |count = 5 |format = {¦ class="wikitable" ¶!pages found,¶¦-¶¦[[%PAGE%]],,¶¦} }}
Result
{{#dpl: |category = Number examples |linksto = Two |count = 5 |format = {¦ class="wikitable" ¶!pages found,¶¦-¶¦%PAGE%,,¶¦} }}