Template:Mapper: Difference between revisions
From NESdev Wiki
Jump to navigationJump to search
(icon instantiation error) |
No edit summary |
||
Line 1: | Line 1: | ||
{{#ifexist:INES Mapper {{padleft:{{{1}}}|3}}/Icon|{{:INES Mapper {{padleft:{{{1}}}|3}}/Icon}}|[[ | {{#if:{{{2}}}|{{#ifexist:INES Mapper {{padleft:{{{1}}}|3}}/Icon|{{:INES Mapper {{padleft:{{{1}}}|3}}/Icon}}|'''Template error: [[INES Mapper {{padleft:{{{1}}}|3}}/Icon]] doesn't exist'''}}}} [[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''|''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> |
Revision as of 11:16, 2 November 2016
Template error: [[INES Mapper {{{1}}}/Icon]] doesn't exist [[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|icon}}
code | rendered as: |
---|---|
{{mapper|XXX}}
|
Template error: INES Mapper XXX/Icon doesn't exist XXX |
{{mapper|XXX|i}}
|
Template error: INES Mapper XXX/Icon doesn't exist XXX |
{{mapper|19|}}
|
019 |
{{mapper|0|i}}
|
000 |
{{mapper|0|anything}}
|
000 |