Template:Mapper

From Nesdev wiki
Jump to navigationJump to search

{{#if:|{{#ifexist:INES Mapper {{{1}}}/Icon|{{:INES Mapper {{{1}}}/Icon}}|link=INES Mapper {{{1}}}/Icon}} }}[[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}} {{#ifexist:INES Mapper XXX/Icon|INES Mapper XXX/Icon|Template Mapper Noicon.png}} }}XXX
{{mapper|XXX|i}} {{#ifexist:INES Mapper XXX/Icon|INES Mapper XXX/Icon|Template Mapper Noicon.png}} }}XXX
{{mapper|19|}} {{#ifexist:INES Mapper 019/Icon|
Nesdev is moving to nesdev.org!

This page is now at https://wiki.nesdev.org/w/index.php/Template:Mapper

|Template Mapper Noicon.png}} }}019
{{mapper|0|i}} {{#ifexist:INES Mapper 000/Icon|
Nesdev is moving to nesdev.org!

This page is now at https://wiki.nesdev.org/w/index.php/Template:Mapper

|Template Mapper Noicon.png}} }}000
{{mapper|0|anything}} {{#ifexist:INES Mapper 000/Icon|
Nesdev is moving to nesdev.org!

This page is now at https://wiki.nesdev.org/w/index.php/Template:Mapper

|Template Mapper Noicon.png}} }}000