• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Difference between revisions of "Template:Map/Image"

From Kancolle Wiki
Jump to navigation Jump to search
m
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;">[[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>
 
<noinclude>
 
<noinclude>
 
Puts an event map on the page, based on PAGENAME (first and second parts of it; used on enemy patterns pages).
 
Puts an event map on the page, based on PAGENAME (first and second parts of it; used on enemy patterns pages).

Revision as of 20:39, 29 April 2017


Puts an event map on the page, based on PAGENAME (first and second parts of it; used on enemy patterns pages).

Usage:

{{Event/Map}}

(has optional size and link parameters)

or

{{Event/Map|
{{Event/MapNode|...}}
...
}}

TODO: use #ifexist and have a non-existing map banner.