Template:Infobox world: Difference between revisions
Template page
More actions
Create Infobox world template |
m Replace reader-visible prose double hyphens with a proper em dash entity |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><templatestyles src="Template:Infobox world/styles.css" />{{Infobox | <includeonly>__NOTOC__<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}}} | ||
|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 13: | Line 13: | ||
|type=Continent | |type=Continent | ||
|headerimage=Ascalon Landscape.png | |headerimage=Ascalon Landscape.png | ||
|titleicon={{Icon|Ascalon | |titleicon={{Icon|Ascalon}} | ||
|knownfor=Leather, honey | |knownfor=Leather, honey | ||
|biomes=9 | |biomes=9 | ||
| 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]]) | 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 == | ||
| Line 32: | Line 32: | ||
|- | |- | ||
| <code>type</code> | | <code>type</code> | ||
| Shown as the ribbon under the name. Defaults to <code>Continent</code> | | Shown as the ribbon under the name. Defaults to <code>Continent</code> — set to <code>World</code> for a dimension like The End or the Nether. | ||
|- | |- | ||
| <code>headerimage</code> | | <code>headerimage</code> | ||
| Filename of a landscape image uploaded to the wiki (no <code>File:</code> prefix), shown as a full-bleed photo banner across the top of the box | | Filename of a landscape image uploaded to the wiki (no <code>File:</code> prefix), shown as a full-bleed photo banner across the top of the box — see [[Template:Infobox]] for how this behaves. | ||
|- | |- | ||
| <code>titleicon</code> | | <code>titleicon</code> | ||
| Optional wikitext (usually an <code><nowiki>{{Icon|... | | Optional wikitext (usually an <code><nowiki>{{Icon|...}}</nowiki></code> call) appended after the title, for the continent's own shield icon. | ||
|- | |- | ||
| <code>knownfor</code> | | <code>knownfor</code> | ||
Latest revision as of 14:17, 23 August 2026
Usage
{{Infobox world
|name=Ascalon
|type=Continent
|headerimage=Ascalon Landscape.png
|titleicon={{Icon|Ascalon}}
|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|...}} 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. |