Jump to content

Template:Infobox nation: Difference between revisions

From Echoes from Elsewhere Wiki
No edit summary
No edit summary
Line 1: Line 1:
<div style="float: right; width: 300px; border: 1px solid #aaa; margin: 0 0 1em 1em; padding: 0.5em; background: #f9f9f9; font-size: 90%; line-height: 1.5em;">
<div style="float: right; width: 300px; border: 1px solid #aaa; margin: 0 0 1em 1em; padding: 0.5em; background: #f9f9f9; font-size: 90%; line-height: 1.5em;">
{| style="width: 100%; background: transparent;"
{| style="width: 100%; background: transparent;"
! colspan="2" style="font-size: 125%; text-align: center; background: #ccf; padding: 0.2em;" | {{{name|{{PAGENAME}}}}}
! colspan="2" style="font-size: 125%; text-align: center; background: #ccf; padding: 0.3em 0.2em;" | {{{name|{{PAGENAME}}}}}
{{#if:{{{native_name|}}}|
|-
|-
{{#if:{{{native_name|}}}|
! colspan="2" style="text-align: center; font-size: 95%; font-style: italic; padding: 0.2em 0.4em 0.6em; color: #555;" | {{{native_name}}}
! style="text-align: left; padding-right: 0.5em;" | Native name
| {{{native_name}}}
}}
}}
{{#if:{{{image_flag|}}}|
{{#if:{{{image_flag|}}}|
Line 77: Line 76:
</div><noinclude>
</div><noinclude>


== Usage example ==
== Usage example (with native name) ==
{{Infobox nation
{{Infobox nation
| name              = The Star Kingdom of Valhalla
| name              = The Star Kingdom of Valhalla
| image_flag        = Flag of Valhalla.svg     <!-- upload first, filename only -->
| native_name      = Valhöll Stjarnanna  <!-- This will now appear as a small italic line under the title -->
| image_flag        = Flag of Valhalla.svg
| image_flag_size  = 150px
| image_flag_size  = 150px
| image_coat        = Coat of arms of Valhalla.svg
| image_coat        = Coat of arms of Valhalla.svg
Line 105: Line 105:
}}
}}


This version is pure wikitext + basic {{#if:}} checks (ParserFunctions, default on most wikis). Rows hide automatically if you leave the parameter blank.
If you leave |native_name= blank, it simply won't show up at all.
 
Save the template, then purge your nation page cache (`?action=purge` at the end of the URL) if it still looks off. This should feel much cleaner now.


Upload any images via **Special:Upload** first. If you want further adjustments (e.g., add "Number of moons" or "Deity patron"), let me know. Test on your page and purge cache if needed (`?action=purge`).
If this still doesn't sit right (e.g., you want native name moved way down or removed), just say the word and I'll give you a version without it at the top entirely. Rest up — you've got this.

Revision as of 23:11, 13 January 2026

• {{{established_event2}}}
Infobox nation

-

colspan="2" style="text-align: center; font-size: 95%; font-style: italic; padding: 0.2em 0.4em 0.6em; color: #555;"

-

style="text-align: left;"

-

style="text-align: left;"

-

style="text-align: left;"
Capital system Unknown
Capital planet
Capital city
Largest city {Template:Largest city
Official languages
Demonym(s)
Government
• Head of state
• Head of government
Legislature
Establishment
• Founding
Area / Territory
Planets / Systems Unknown
Population
Currency

Usage example (with native name)

The Star Kingdom of Valhalla



Capital system Asgard System
Capital planet Asgard Prime
Capital city New Asgard
Largest city {Template:Largest city
Official languages Galactic Standard, Old Norse dialects
Demonym(s) Valhallan, Valkyrian (military)
Government Divine constitutional monarchy
• Head of state High King/Queen Odin Valhallsson (current)
• Head of government Chancellor Freya Stormshield
Legislature Allthing Stellar
Establishment
• Founding by divine mandate Cycle 47 AE (After Exodus)
style="text-align: left;"
Area / Territory ~1,200 light-years radius
Planets / Systems 1,200+ habitable systems (thousands of planets total)
Population 12.4 billion (estimated 12026 AE)
Currency Stellar Crown (₡)

If you leave |native_name= blank, it simply won't show up at all.

Save the template, then purge your nation page cache (`?action=purge` at the end of the URL) if it still looks off. This should feel much cleaner now.

If this still doesn't sit right (e.g., you want native name moved way down or removed), just say the word and I'll give you a version without it at the top entirely. Rest up — you've got this.