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 also link world icon to the given map |
wgg>Cadaei plain-link |
||
| Line 1: | Line 1: | ||
<includeonly>{{#vardefine:linkName|{{{2|{{{1|}}}}}}}}{{#if: {{{marker|}}} | <includeonly>{{#vardefine:linkName|{{{2|{{{1|}}}}}}}}{{#if: {{{marker|}}} | ||
| {{#ifexist: {{{1|}}} | | {{#ifexist: {{{1|}}} | ||
| {{#vardefine: mapLink|{{fullurl: {{{1|}}} | marker={{{marker|}}} }}}}[[File:World icon.png|link={{#var:mapLink}}|text-bottom|link to a map]] <span class=" | | {{#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> | ||
| [[File:World icon.png|text-bottom|link to a map]] [[{{{1|}}}|{{#var:linkName}}]] | | [[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}}]] | | [[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> | ||
Revision as of 12:47, 27 December 2024
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}}


