70,990
edits
m
→Output styles
No edit summary |
HiddenDragon (talk | contribs) m (→Output styles) |
||
(One intermediate revision by one other user not shown) | |||
Line 72: | Line 72: | ||
The <code>makeLink</code>, <code>useTemplate</code>, and <code>useTemplate2</code> arguments are mutually exclusive; when several are provided, only the first will take effect. | The <code>makeLink</code>, <code>useTemplate</code>, and <code>useTemplate2</code> arguments are mutually exclusive; when several are provided, only the first will take effect. | ||
=== Output | === Output styles === | ||
The value of the <code> | The value of the <code>style</code> parameter can be the following: | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 80: | Line 80: | ||
|- | |- | ||
| <code>text</code> | | <code>text</code> | ||
| {{#invoke:ParseList|main|Fighter, Cleric, Wizard}} | | {{#invoke:ParseList | main | Fighter, Cleric, Wizard }} | ||
|- | |||
| <code>simpleList</code> | |||
| {{#invoke:ParseList | main | Fighter, Cleric, Wizard | style = simpleList }} | |||
|- | |- | ||
| <code>htmlList</code> | | <code>htmlList</code> | ||
| {{#invoke:ParseList|main|Fighter, Cleric, Wizard| | | {{#invoke:ParseList | main | Fighter, Cleric, Wizard | style = htmlList }} | ||
|- | |- | ||
| <code>htmlListNoBullets</code> | | <code>htmlListNoBullets</code> | ||
| {{#invoke:ParseList|main|Fighter, Cleric, Wizard| | | {{#invoke:ParseList | main | Fighter, Cleric, Wizard | style = htmlListNoBullets }} | ||
|- | |||
| <code>htmlListNoBulletsOrMargin</code> | |||
| {{#invoke:ParseList | main | Fighter, Cleric, Wizard | style = htmlListNoBulletsOrMargin }} | |||
|- | |||
| <code>tableList</code> | |||
| {{#invoke:ParseList | main | Fighter, Cleric, Wizard | style = tableList }} | |||
|- | |- | ||
| <code> | | <code>none</code> | ||
| {{#invoke:ParseList|main|Fighter, Cleric, Wizard| | | {{#invoke:ParseList | main | Fighter, Cleric, Wizard | style = none }} | ||
|} | |} | ||
The style <code>none</code> is useful if each element is being transformed into an HTML element such that no textual delimiters are desired. | |||
== Examples == | == Examples == | ||
Line 137: | Line 148: | ||
<pre> | <pre> | ||
{{#invoke: ParseList | main | Fighter, Cleric, Wizard | makeLinks = yes | makePlural = yes | | {{#invoke: ParseList | main | Fighter, Cleric, Wizard | makeLinks = yes | makePlural = yes | style = htmlList }} | ||
</pre> | </pre> | ||
Result: | Result: | ||
{{#invoke: ParseList | main | Fighter, Cleric, Wizard | makeLinks = yes | makePlural = yes | | {{#invoke: ParseList | main | Fighter, Cleric, Wizard | makeLinks = yes | makePlural = yes | style = htmlList }} |