Template:Mapper: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(icon instantiation error)
(fix)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifexist:INES Mapper {{padleft:{{{1}}}|3}}/Icon|{{:INES Mapper {{padleft:{{{1}}}|3}}/Icon}}|[[File:Mfr icon Missing.png|16px]]}} [[INES Mapper {{padleft:{{{1}}}|3}}|{{padleft:{{{1}}}|3}}]]
{{#if:{{{2|}}}|{{#ifexist:INES Mapper {{padleft:{{{1}}}|3}}/Icon|{{:INES Mapper {{padleft:{{{1}}}|3}}/Icon}}|[[File:Template Mapper Noicon.png|16px|link=INES Mapper {{padleft:{{{1}}}|3}}/Icon]]}}<nowiki> </nowiki>}}[[INES Mapper {{padleft:{{{1}}}|3}}|{{padleft:{{{1}}}|3}}]]<noinclude>
== Template ==
This template is intended for easy inserting of links to mapper pages, with optional icon ''(for latter feature it's required that the icon exists on /Icon subpage of mapper page; this isn't done yet for all mappers)''.
== Usage ==
<code><nowiki>{{</nowiki>mapper|''mapper number''|''include icon?''}}</code>
{| class="wikitable"
! code
! rendered as:
|-
|<code><nowiki>{{mapper|XXX}}</nowiki></code>
|{{mapper|XXX}}
|-
|<code><nowiki>{{mapper|XXX|i}}</nowiki></code>
|{{mapper|XXX|i}}
|-
|<code><nowiki>{{mapper|19|}}</nowiki></code>
|{{mapper|19|}}
|-
|<code><nowiki>{{mapper|0|i}}</nowiki></code>
|{{mapper|0|i}}
|-
|<code><nowiki>{{mapper|0|anything}}</nowiki></code>
|{{mapper|0|anything}}
|}
</noinclude>

Latest revision as of 12:11, 2 November 2016

[[INES Mapper {{{1}}}|{{{1}}}]]

Template

This template is intended for easy inserting of links to mapper pages, with optional icon (for latter feature it's required that the icon exists on /Icon subpage of mapper page; this isn't done yet for all mappers).

Usage

{{mapper|mapper number|include icon?}}

code rendered as:
{{mapper|XXX}} XXX
{{mapper|XXX|i}} Template Mapper Noicon.png XXX
{{mapper|19|}} 019
{{mapper|0|i}} Mfr icon Nintendo.png 000
{{mapper|0|anything}} Mfr icon Nintendo.png 000