Template:Li: Difference between revisions
Template page
More actions
Will be used in the future for revamping lists. Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
| Line 1: | Line 1: | ||
<includeonly>* <span style="display:inline-block; height:32px; width:32px; text-align:center;">[[File:{{{1}}}.png|32x32px]]</span> [[{{{1}}}]] {{#if: {{{x|}}}|({{{x}}})|}}</includeonly><noinclude> | <includeonly>* <span style="display:inline-block; height:32px; width:32px; text-align:center;">[[File:{{{1}}}.png|32x32px]]</span> [[{{{1}}}]] {{#if: {{{x|}}}|({{{x}}})|}}</includeonly><noinclude> | ||
''Like in HTML, "li" stands for "list item".''<br> | ''Like in HTML, "li" stands for "list item".''<br> | ||
This template is improve display of lists, adding icons to the left of entries. | This template is to improve display of lists, adding icons to the left of entries. | ||
Syntax: <span style="color:#990099;"><nowiki>{{li|Item}}</nowiki></span> or <span style="color:#990099;"><nowiki>{{li|Item|x=something}}</nowiki></span> | Syntax: <span style="color:#990099;"><nowiki>{{li|Item}}</nowiki></span> or <span style="color:#990099;"><nowiki>{{li|Item|x=something}}</nowiki></span> | ||
| Line 9: | Line 9: | ||
*You can add extra text after the list by adding the parameter x=[...]. | *You can add extra text after the list by adding the parameter x=[...]. | ||
Example:<br> | Example:<br><span style="color:#990099;"> | ||
<nowiki>{{li|Spiru}}</nowiki><br> | |||
<nowiki>{{li|Yorchug|x=2}}</nowiki><br> | |||
<nowiki>{{li|Arachnoptopus}}</nowiki><br> | |||
<nowiki>{{li|Scorpiant}}</nowiki><br> | |||
<nowiki>{{li|Pliaa|x=5}}</nowiki><br> | |||
<nowiki>{{li|Streeg|x=2 stuck in inaccessible wall areas}}</nowiki></span> | |||
Will produce: | |||
{{li|Spiru}} | |||
{{li|Yorchug|x=2}} | |||
{{li|Arachnoptopus}} | |||
{{li|Scorpiant}} | |||
{{li|Pliaa|x=5}} | |||
{{li|Streeg|x=2 stuck in inaccessible wall areas}} | |||
</noinclude> | </noinclude> | ||
Revision as of 07:18, 19 September 2022
Like in HTML, "li" stands for "list item".
This template is to improve display of lists, adding icons to the left of entries.
Syntax: {{li|Item}} or {{li|Item|x=something}}
- [Item] must exactly be the name of an existing page. It becomes a link.
- The name of the picture must exactly be [Item].png. (As a standard, the main picture on a page should always be renamed to "PAGENAME.png". In case of error, please check if it's the case.)
- You can add extra text after the list by adding the parameter x=[...].
Example:
{{li|Spiru}}
{{li|Yorchug|x=2}}
{{li|Arachnoptopus}}
{{li|Scorpiant}}
{{li|Pliaa|x=5}}
{{li|Streeg|x=2 stuck in inaccessible wall areas}}
Will produce: