Jump to content

Template:Infobox continent: Difference between revisions

From Yezur Wiki
Thiorosan (talk | contribs)
Emit the 🌐 On the map page indicator automatically from map_node
Thiorosan (talk | contribs)
Display-only: remove #cargo_store/#cargo_declare — Cargo retired from the encyclopedia (operator ruling 2026-07-30); docs updated
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{map_node|}}}|{{On the map|node={{{map_node}}}}}}}{{#invoke:Infobox|render
<includeonly>{{#invoke:Infobox|render
|title={{{name|{{PAGENAME}}}}}
|title={{{name|{{PAGENAME}}}}}
|subtitle={{{native_name|}}}
|subtitle={{{native_name|}}}
Line 8: Line 8:
|label5=Native language families|data5={{{native_families|}}}
|label5=Native language families|data5={{{native_families|}}}
|label6=On the map|data6={{#if:{{{map_node|}}}|{{Node|{{{map_node}}}|View}}}}
|label6=On the map|data6={{#if:{{{map_node|}}}|{{Node|{{{map_node}}}|View}}}}
}}{{#cargo_store:_table=Continents
}}</includeonly><noinclude>
|name={{{name|{{PAGENAME}}}}}
|native_name={{{native_name|}}}
|type={{{type|Continent}}}
|location={{{location|}}}
|adjacent={{{adjacent|}}}
|native_families={{{native_families|}}}
|map_node={{{map_node|}}}
}}</includeonly><noinclude>{{#cargo_declare:_table=Continents
|name=String
|native_name=String
|type=String
|location=String
|adjacent=String
|native_families=List (,) of String
|map_node=Integer
}}
=== Usage ===
=== Usage ===
Infobox for a continent or major landmass. Renders via [[Module:Infobox]] and
Infobox for a continent or major landmass. Renders via [[Module:Infobox]].
populates the <code>Continents</code> Cargo table. A filled <code>map_node</code>
(No [[Template:On the map|🌐 On the map]] indicator here: a continent cannot
also places the '''🌐 On the map''' page indicator ([[Template:On the map]]) at
be reduced to a single spot.)
the top right of the article. Keep <code>adjacent</code> and
prose links out of any Cargo *table* display — Cargo shows raw <code><nowiki>[[..]]</nowiki></code>
in query cells (fine here in the infobox, which parses wikitext).
<pre>
<pre>
{{Infobox continent
{{Infobox continent

Latest revision as of 11:27, 30 July 2026

Usage

Infobox for a continent or major landmass. Renders via Module:Infobox. (No 🌐 On the map indicator here: a continent cannot be reduced to a single spot.)

{{Infobox continent
|name            =
|native_name     =
|type            = Continent
|location        =
|adjacent        =
|native_families =
|map_node        =
}}