Template:Navbox topics: Difference between revisions

From OpenGeofiction
mNo edit summary
mNo edit summary
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
<table border="0" style="background:#fcfcfc; padding:0; width:100%;">
<table border="0" style="background:#fcfcfc; padding:0; width:100%;">
<tr><td style="color:black; padding:2px 0 2px 4px; width="20%" colspan="2" align="center">
<tr><td style="color:black; padding:2px 0 2px 4px; width="20%" colspan="2" align="center">
{{#if:{{{admin|y}}}|[[Administrative divisions of {{{terr}}}|Administrative divisions]]|}}{{#if:{{{culture|}}}{{{econ|}}}{{{gov|}}}{{{infra|}}}|&nbsp;&bull;&nbsp;|}}{{#if:{{{culture|y}}}|[[Culture of {{{terr}}}|Culture]]|}}{{#if:{{{econ|}}}{{{gov|}}}{{{infra|}}}|&nbsp;&bull;&nbsp;|}}{{#if:{{{econ|y}}}|[[Economy of {{{terr}}}|Economy]]|}}{{#if:{{{gov|}}}{{{infra|}}}|&nbsp;&bull;&nbsp;|}}{{#if:{{{gov|y}}}|[[Government of {{{terr}}}|Government, politics, and international relations]]|}}{{#if:{{{infra|}}}|&nbsp;&bull;&nbsp;|}}{{#if:{{{infra|y}}}|[[Infrastructure {{{terr}}}|Infrastructure]]|}}
{{#ifexist:Administrative divisions of {{{terr}}}|[[Administrative divisions of {{{terr}}}|Administrative divisions]]&nbsp;&bull;&nbsp;|}}{{#ifexist:Culture of {{{terr}}}|[[Culture of {{{terr}}}|Culture]]&nbsp;&bull;&nbsp;|}}{{#ifexist:Economy of {{{terr}}}|[[Economy of {{{terr}}}|Economy]]&nbsp;&bull;&nbsp;|}}{{#ifexist:Government of {{{terr}}}|[[Government of {{{terr}}}|Government, politics, and international relations]]&nbsp;&bull;&nbsp;|}}{{#ifexist:Infrastructure of {{{terr}}}|[[Infrastructure of {{{terr}}}|Infrastructure]]|}}
</td></tr></table>
</td></tr></table>
</div></div>
</div></div>
Line 12: Line 12:
| <div align="center" class="mw-collapsible mw-collapsed" data-expandtext="&#9660;" data-collapsetext="&#9651;">'''Regional topics'''<div align="left" class="mw-collapsible-content" style="font-size:10pt; padding-left:10px; padding-right:10px;">
| <div align="center" class="mw-collapsible mw-collapsed" data-expandtext="&#9660;" data-collapsetext="&#9651;">'''Regional topics'''<div align="left" class="mw-collapsible-content" style="font-size:10pt; padding-left:10px; padding-right:10px;">
<table border="0" style="background:#fcfcfc; padding:0; width:100%;">
<table border="0" style="background:#fcfcfc; padding:0; width:100%;">
{{#if:{{{neighbors|}}}|<tr><td style="color:black; padding:2px 0 2px 4px; width="20%" colspan="2" align="center">Neighboring territories</td><td>{{{neighbors}}}</td></tr>|}}
{{#if:{{{neighbors|}}}|<tr><td style="background:#e6e6e6; color:black; padding:2px 0 2px 4px; width="20%" colspan="2" align="center">Neighboring territories</td><td>{{{neighbors}}}</td></tr>|}}
{{#if:{{{regional-orgs|}}}|<tr><td style="color:black; padding:2px 0 2px 4px; width="20%" colspan="2" align="center">Regional organizations</td><td>{{{regional-orgs}}}</td></tr>|}}
{{#if:{{{regional-orgs|}}}|<tr><td style="background:#e6e6e6; color:black; padding:2px 0 2px 4px; width="20%" colspan="2" align="center">Regional organizations</td><td>{{{regional-orgs}}}</td></tr>|}}
</table>
</table>
</div></div>
</div></div>
Line 28: Line 28:
{{Navbox topics
{{Navbox topics
| terr = (territory name)
| terr = (territory name)
| admin = y (only place the letter 'y' if an administrative divisions page exists; otherwise, leave blank or omit)
| culture = y (only place the letter 'y' if a culture page exists; otherwise, leave blank or omit)
| econ = y (only place the letter 'y' if an economy page exists; otherwise, leave blank or omit)
| gov = y (only place the letter 'y' if a government page exists; otherwise, leave blank or omit)
| infra = y (only place the letter 'y' if an infrastructure page exists; otherwise, leave blank or omit)
| neighbors = (place flag templates for ONLY active regional neighbors with wiki presence)
| neighbors = (place flag templates for ONLY active regional neighbors with wiki presence)
| regional-orgs = (list only regional organizations the territory is a part of and present on the wiki)
| regional-orgs = (list only regional organizations the territory is a part of and present on the wiki)
Line 39: Line 34:


For compactness, this template may be used on a single line like this:
For compactness, this template may be used on a single line like this:
<pre>{{Navbox topics|terr=Mauretia|admin=y|gov=y|neighbors={{Egani}}|regional-orgs=[[Association of South Ulethan Nations]] (partner state)}}</pre>
<pre>{{Navbox topics|terr=Mauretia|neighbors={{Egani}}|regional-orgs=[[Association of South Ulethan Nations]] (partner state)}}</pre>
[[Category:Navigation templates]]
[[Category:Navigation templates]]
</noinclude>
</noinclude>

Revision as of 19:08, 9 June 2022

This template is designed for navigation between various subarticles for a territory. Please do not include red links in your listing unless the article or subarticle is going to be created in short order. Red links will be removed. To use this template, please use the following syntax:

{{Navbox topics
| terr = (territory name)
| neighbors = (place flag templates for ONLY active regional neighbors with wiki presence)
| regional-orgs = (list only regional organizations the territory is a part of and present on the wiki)
}}

For compactness, this template may be used on a single line like this:

{{Navbox topics|terr=Mauretia|neighbors={{Egani}}|regional-orgs=[[Association of South Ulethan Nations]] (partner state)}}