Template:Infobox world: Difference between revisions
Template page
More actions
m Add Navbox worlds and wire it into Infobox world |
m Split PvP Isles out of Continents; move title icon before the name |
||
| Line 1: | Line 1: | ||
<includeonly><templatestyles src="Template:Infobox world/styles.css" />{{Infobox | <includeonly><templatestyles src="Template:Infobox world/styles.css" />{{Infobox | ||
|name={{#if:{{{titleicon|}}}|<span class="loka-world-title-with-icon"> | |name={{#if:{{{titleicon|}}}|<span class="loka-world-title-with-icon"><span class="loka-world-titleicon">{{{titleicon|}}}</span>{{{name|{{PAGENAME}}}}}</span>|{{{name|{{PAGENAME}}}}}}} | ||
|image= | |image= | ||
|type={{{type|Continent}}} | |type={{{type|Continent}}} | ||
Revision as of 21:13, 22 August 2026
Usage
{{Infobox world
|name=Ascalon
|type=Continent
|headerimage=Ascalon Landscape.png
|titleicon={{Icon|Ascalon|nolink=yes}}
|knownfor=Leather, honey
|biomes=9
|map=https://lokamc.com/map?c=ascalon
}}
Only name is required (it otherwise defaults to the page name); every other row is hidden when omitted. For a continent's or dimension's own article (e.g. Ascalon, The Nether) -- article prose (geography, notable locations, towns) belongs below the infobox as normal, or can be passed as content to render inside the box itself alongside the other rows. Template:Navbox worlds is included automatically at the bottom of every infobox -- no parameter for it, and no need to add it separately.
Parameters
| Parameter | Description |
|---|---|
name
|
Continent/world name. Defaults to the page name. |
type
|
Shown as the ribbon under the name. Defaults to Continent -- set to World for a dimension like The End or the Nether.
|
headerimage
|
Filename of a landscape image uploaded to the wiki (no File: prefix), shown as a full-bleed photo banner across the top of the box -- see Template:Infobox for how this behaves.
|
titleicon
|
Optional wikitext (usually an {{Icon|...|nolink=yes}} call) appended after the title, for the continent's own shield icon.
|
knownfor
|
Short list of what the continent is known for producing (e.g. Leather, honey).
|
biomes
|
Number of biomes found on the continent. |
map
|
Full URL to this continent's page on the in-game world map (e.g. https://lokamc.com/map?c=ascalon). Shown as a "View Map" link. Not every place using this template has one.
|
content
|
Optional extra pre-rendered wikitext rows, appended after the ones above, inside the box itself. |