Please note that some information on this wiki is still based on the demo version.
If you notice any errors, feel free to correct them.
Template:MapLink: Difference between revisions
From Super Fantasy Kingdom Official Wiki
wgg>Cadaei removed forced Map namespace |
m 6 revisions imported |
||
| (4 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#if: {{{marker|}}} | <includeonly>{{#vardefine:linkName|{{{2|{{{1|}}}}}}}}{{#if: {{{marker|}}} | ||
| {{#ifexist: {{{1|}}} | |||
| | | {{#vardefine: mapLink|{{fullurl: {{{1|}}} | marker={{{marker|}}} }}}}[[File:World icon.png|link={{#var:mapLink}}|text-bottom|link to a map]] <span class="plain-link">[{{#var:mapLink}} {{#var:linkName}}]</span> | ||
| [[{{{1|}}}|{{ | | [[File:World icon.png|text-bottom|link to a map]] [[{{{1|}}}|{{#var:linkName}}]] | ||
}} | }} | ||
| [[File:World icon.png|link={{{1|}}}|text-bottom|link to a map]] [[{{{1|}}}|{{#var:linkName}}]] | |||
}}</includeonly><noinclude>{{doc}}[[Category:Formatting templates]]</noinclude> | }}</includeonly><noinclude>{{doc}}[[Category:Formatting templates]]</noinclude> | ||
Latest revision as of 23:46, 21 October 2025
Use to link to map markers.
- First parameter is the map page
- Second optional parameter for different link name
marker: optional parameter for the map location
Usage
{{MapLink|Human Kingdom Map|[email protected]:702.000}}
{{MapLink|Human Kingdom Map#Section|[email protected]:702.000}}
{{MapLink|Human Kingdom Map#Section|[email protected]:702.000|Archery}}
{{MapLink|Human Kingdom Map}}
{{MapLink|Human Kingdom Map|Map of the human kingdom}}


