Template:Li: Difference between revisions
Template page
More actions
Added size override. Tag: 2017 source edit |
Nevermind about size override. Adding special cases here will make template easier to use. Tag: 2017 source edit |
||
| Line 1: | Line 1: | ||
<onlyinclude><includeonly>* <span style="display:inline-block; height:32px; width:32px; text-align:center;">[[File:{{{1}}}.png|{{{ | <onlyinclude><includeonly>* <span style="display:inline-block; height:32px; width:32px; text-align:center;">[[File:{{{1}}}.png|{{#switch: {{{1}}} | ||
| #default = 32x32px | |||
| Range Node = 30x30px | |||
| Size Node = 25x25px | |||
| Health Node Fragment = 23x23px | |||
| Power Node Fragment = 21x21px | |||
}}]]</span> [[{{{1}}}]] {{#if: {{{x|}}}|({{{x}}})|}}</includeonly></onlyinclude> | |||
''Like in HTML, "li" stands for "list item".''<br> | ''Like in HTML, "li" stands for "list item".''<br> | ||
This template is to 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. | ||
| Line 8: | Line 14: | ||
*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.) | *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=[...]. | *You can add extra text after the list by adding the parameter x=[...]. | ||
Example:<br><span style="color:#990099;"> | Example:<br><span style="color:#990099;"> | ||
Revision as of 08:32, 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: