- 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"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine:map|{{#ifeq:{{#explode:{{{page|{{PAGENAME}}}}}|/|0}}|Sandbox|{{#explode:{{{page|{{PAGENAME}}}}}|/|0}}_{{#explode:{{{page|{{PAGENAME}}}}}|/|1}}_{{#explode:{{{page|{{PAGENAME}}}}}|/|2}}_Map.png|{{#ifeq:{{#sub:{{{page|{{PAGENAME}}}}}|0|5}}|World|{{#explode:{{{page|{{PAGENAME}}}}}|/|1}}_Map.png|{{#explode:{{{page|{{PAGENAME}}}}}|/|0}}_{{#explode:{{{page|{{PAGENAME}}}}}|/|1}}_Map.png}}}}}}{{#if:{{{1|}}}|<div style="position:relative;" data-map="{{#var:map}}">{{#ifexist:File:{{#var:map}}|[[File:{{#var:map}}|{{{size|700}}}px|link={{{link|}}}]]|[[File:Catbomb.png|link=]]}}{{{1}}}</div>|<div data-map="{{#var:map}}">{{#ifexist:File:{{#var:map}}|[[File:{{#var:map}}|{{{size|700}}}px|link={{{link|}}}]]|[[File:Catbomb.png|link=]]}}</div>}}</includeonly><noinclude> | + | <includeonly>{{#vardefine:map|{{#if:{{{map|}}}|{{{map}}}_Map.png|{{#ifeq:{{#explode:{{{page|{{PAGENAME}}}}}|/|0}}|Sandbox|{{#explode:{{{page|{{PAGENAME}}}}}|/|0}}_{{#explode:{{{page|{{PAGENAME}}}}}|/|1}}_{{#explode:{{{page|{{PAGENAME}}}}}|/|2}}_Map.png|{{#ifeq:{{#sub:{{{page|{{PAGENAME}}}}}|0|5}}|World|{{#explode:{{{page|{{PAGENAME}}}}}|/|1}}_Map.png|{{#explode:{{{page|{{PAGENAME}}}}}|/|0}}_{{#explode:{{{page|{{PAGENAME}}}}}|/|1}}_Map.png}}}}}}}}{{#if:{{{1|}}}|<div style="position:relative;" data-map="{{#var:map}}">{{#ifexist:File:{{#var:map}}|[[File:{{#var:map}}|{{{size|700}}}px|link={{{link|}}}]]|[[File:Catbomb.png|link=]]}}{{{1}}}</div>|<div data-map="{{#var:map}}">{{#ifexist:File:{{#var:map}}|[[File:{{#var:map}}|{{{size|700}}}px|link={{{link|}}}]]|[[File:Catbomb.png|link=]]}}</div>}}</includeonly><noinclude> |
Puts an [[event]] map on the page, used on enemy pattern pages. | Puts an [[event]] map on the page, used on enemy pattern pages. | ||
==Parameters== | ==Parameters== |
Revision as of 06:58, 17 August 2018
Puts an event map on the page, used on enemy pattern pages.
Parameters
page
Defaults to {{PAGENAME}}
, if page
is <event>/<map>/...
, then <event> <map> Map.png
is the file used for map image.
size
Optional, size of the map image, defaults to 700.
link
Optional, link for the map image, no link by default.
[1]
Use to overlay clickable nodes, see Template:Event/MapNode.
Examples
Just a map
{{Event/Map}}
With clickable nodes
{{Event/Map| {{Event/MapNode|...}} ... }}