Template:Infobox world: Difference between revisions
Template page
More actions
Create Infobox world template |
m Add Navbox worlds and wire it into Infobox world |
||
| Line 3: | Line 3: | ||
|image= | |image= | ||
|type={{{type|Continent}}} | |type={{{type|Continent}}} | ||
|content={{#if:{{{knownfor|}}}|<div class="loka-infobox-row"><span class="loka-infobox-row-key">Known For</span><span class="loka-infobox-row-value">{{{knownfor|}}}</span></div>}}{{#if:{{{biomes|}}}|<div class="loka-infobox-row"><span class="loka-infobox-row-key">Biomes</span><span class="loka-infobox-row-value">{{{biomes|}}}</span></div>}}{{#if:{{{map|}}}|<div class="loka-infobox-row"><span class="loka-infobox-row-key">Map</span><span class="loka-infobox-row-value">[{{{map|}}} View Map]</span></div>}}{{{content|}}} | |content={{#if:{{{knownfor|}}}|<div class="loka-infobox-row"><span class="loka-infobox-row-key">Known For</span><span class="loka-infobox-row-value">{{{knownfor|}}}</span></div>}}{{#if:{{{biomes|}}}|<div class="loka-infobox-row"><span class="loka-infobox-row-key">Biomes</span><span class="loka-infobox-row-value">{{{biomes|}}}</span></div>}}{{#if:{{{map|}}}|<div class="loka-infobox-row"><span class="loka-infobox-row-key">Map</span><span class="loka-infobox-row-value">[{{{map|}}} View Map]</span></div>}}{{{content|}}}{{Navbox worlds}} | ||
|headerimage={{{headerimage|}}} | |headerimage={{{headerimage|}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
| Line 20: | Line 20: | ||
</pre> | </pre> | ||
Only <code>name</code> 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 <code>content</code> to render inside the box itself alongside the other rows. | Only <code>name</code> 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 <code>content</code> 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 == | == Parameters == | ||
Revision as of 21:01, 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. |