Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Li: Difference between revisions

Template page
Xhamon (talk | contribs)
Bugfix attempt 2.
Tag: 2017 source edit
Xhamon (talk | contribs)
Restored the previous functionality of parameter "g" while also keeping the new one.
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|frameless|link={{{1}}}{{#if:{{{g|}}}|&#35;Axiom Verge {{{g}}}|}}|32x32px]]</span> [[{{{1}}}{{#if:{{{g|}}}|&#35;Axiom Verge {{{g}}}{{!}}{{{1}}}|}}]] {{#if: {{{x|}}}|({{{x}}})|}}</includeonly></onlyinclude>
<onlyinclude><includeonly>* <span style="display:inline-block; height:32px; width:32px; text-align:center;">[[File:{{{1}}}{{#if:{{{g|}}}|_(AV{{{g}}})|}}.png|frameless|link={{{1}}}{{#if:{{{g|}}}|&#35;Axiom Verge {{{g}}}|}}|32x32px]]</span> [[{{{1}}}{{#if:{{{g|}}}|&#35;Axiom Verge {{{g}}}{{!}}{{{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 8:
*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=[...].
*<small>Rarely, multiple games share an item with the '''same name''' (and use a single page for it, like [[Health Node]]). Depending on the context, the link should target a subsection of that page. If you add the parameter g=#, the link will target the "Axiom verge #" subsection. For instance, <span style="color:#990099;"><nowiki>{{li|Health Node|g=2}}</nowiki></span> will produce this link [[Health Node#Axiom Verge 2|Health Node]] instead of plain [[Health Node]].</small>
*<small>Rarely, multiple games share an item with the '''same name''' (and use a single page for it, like [[Health Node]]). Depending on the context, the icon should change and the link should target a subsection of that page. If you add the parameter g=#, it will do two things: First, it will append _(AV#) before the .png. Second, the link will target the "Axiom verge #" subsection. For instance, <span style="color:#990099;"><nowiki>{{li|Breach Attractor|g=2}}</nowiki></span> will use [[:File:Breach Attractor_(AV2).png]] instead of [[:File:Breach Attractor.png]] AND will produce this link [[Breach Attractor#Axiom Verge 2|Breach Attractor]] instead of plain [[Breach Attractor]].</small>


Example:<br><span style="color:#990099;">
Example:<br><span style="color:#990099;">

Revision as of 08:11, 21 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=[...].
  • Rarely, multiple games share an item with the same name (and use a single page for it, like Health Node). Depending on the context, the icon should change and the link should target a subsection of that page. If you add the parameter g=#, it will do two things: First, it will append _(AV#) before the .png. Second, the link will target the "Axiom verge #" subsection. For instance, {{li|Breach Attractor|g=2}} will use File:Breach Attractor_(AV2).png instead of File:Breach Attractor.png AND will produce this link Breach Attractor instead of plain Breach Attractor.

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: