Anonymous user
Examples/Parameter: format (example 3): Difference between revisions
Examples/Parameter: format (example 3) (view source)
Revision as of 23:52, 31 March 2023
, 1 year agoFrozenPlum moved page Controlling output format/Parameter: format (example 3) to Examples/Parameter: format (example 3): Simplifying how things are structured
imported>FrozenPlum (Flesh out and explain this example in greater detail (the meaning of startall vs start, and end vs endall was not well explained, just vaguely referenced as start/end being the "innter frame" and startall/endall being the "outer frame" of contents). A more concrete explanation can be very beneficial to clarify this.) |
imported>FrozenPlum m (FrozenPlum moved page Controlling output format/Parameter: format (example 3) to Examples/Parameter: format (example 3): Simplifying how things are structured) |
||
(3 intermediate revisions by the same user not shown) | |||
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 18 ⟶ 21:
|linksto = Two
|count = 5
|format = {¦ class="wikitable" ¶!pages found,¶¦-¶¦[[%PAGE%]],,¶¦}
}}
</pre>
==Result==
Line 44 ⟶ 31:
|linksto = Two
|count = 5
|format = {¦ class="wikitable" ¶!pages found,¶¦-¶¦[[%PAGE%]],,¶¦}
}}
|