Template:Mapper: Difference between revisions
From NESdev Wiki
Jump to navigationJump to search
No edit summary |
(fix newline) |
||
Line 1: | Line 1: | ||
{{#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'''}}<nowiki> </nowiki>}}[[INES Mapper {{padleft:{{{1}}}|3}}|{{padleft:{{{1}}}|3}}]] | {{#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'''}}<nowiki> </nowiki>}}[[INES Mapper {{padleft:{{{1}}}|3}}|{{padleft:{{{1}}}|3}}]]<noinclude> | ||
<noinclude> | |||
== Template == | == 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)''. | 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)''. |
Revision as of 11:47, 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 error: INES Mapper XXX/Icon doesn't exist XXX |
{{mapper|19|}}
|
019 |
{{mapper|0|i}}
|
000 |
{{mapper|0|anything}}
|
000 |