Line 1: |
Line 1: |
− | <includeonly>{{#if:{{{1|}}}|<div style="position:relative;">[[File:{{#explode:{{{pagename|{{PAGENAME}}}}}|/|0}} {{#explode:{{{pagename|{{PAGENAME}}}}}|/|1}} Map.png|{{{size|700}}}px|link={{{link|}}}]]{{{1}}}</div>|[[File:{{#explode:{{{pagename|{{PAGENAME}}}}|/|0}} {{#explode:{{{pagename|{{PAGENAME}}}}|/|1}} Map.png|{{{size|700}}}px|link={{{link|}}}]]}}</includeonly> | + | <includeonly>{{#if:{{{1|}}}|<div style="position:relative;">{{#ifexist:File:{{#explode:{{{page|{{PAGENAME}}}}}|/|0}}_{{#explode:{{{page|{{PAGENAME}}}}}|/|1}}_Map.png|[[File:{{#explode:{{{page|{{PAGENAME}}}}}|/|0}}_{{#explode:{{{page|{{PAGENAME}}}}}|/|1}}_Map.png|{{{size|700}}}px|link={{{link|}}}]]|[[File:Map_placeholder_branch.png|{{{size|700}}}px|link={{{link|}}}]]}}{{{1}}}</div>|{{#ifexist:File:{{#explode:{{{page|{{PAGENAME}}}}}|/|0}}_{{#explode:{{{page|{{PAGENAME}}}}}|/|1}}_Map.png|[[File:{{#explode:{{{page|{{PAGENAME}}}}}|/|0}}_{{#explode:{{{page|{{PAGENAME}}}}}|/|1}}_Map.png|{{{size|700}}}px|link={{{link|}}}]]|[[File:Map_placeholder_branch.png|{{{size|700}}}px|link={{{link|}}}]]}}}}</includeonly><noinclude> |
− | <noinclude> | + | Puts an event map on the page, based on <code><nowiki>{{PAGENAME}}</nowiki></code> or <code>page</code> parameter (first and second parts of it; used on enemy pattern pages). |
− | Puts an event map on the page, based on PAGENAME (first and second parts of it; used on enemy patterns pages). | |
| | | |
| Usage: | | Usage: |
− | <pre> | + | <pre>{{Event/Map}}</pre> |
− | {{Event/Map}} | + | (has optional '''size''' and '''link''' parameters) or |
− | </pre> | + | <pre>{{Event/Map| |
− | (has optional '''size''' and '''link''' parameters) | |
− | | |
− | or | |
− | | |
− | <pre> | |
− | {{Event/Map| | |
| {{Event/MapNode|...}} | | {{Event/MapNode|...}} |
| ... | | ... |
− | }} | + | }}</pre> |
− | </pre> | |
− | | |
− | TODO: use #ifexist and have a non-existing map banner.
| |
| </noinclude> | | </noinclude> |