Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox location: Difference between revisions

Template page
Plan A: templates, sidebar, categories, lore
 
Plan A: templates, sidebar, categories, lore
 
Line 11: Line 11:
{{!}}-
{{!}}-
! Age
! Age
{{!}} {{#switch:{{lc:{{{age|}}}}}
{{!}} {{AGE links|age={{{age|}}}}
| age 1 | 1 = [[:Category:AGE 1|AGE 1]]
| age 2 | 2 = [[:Category:AGE 2|AGE 2]]
| age 3 | 3 = [[:Category:AGE 3|AGE 3]]
| age 4 | 4 = [[:Category:AGE 4|AGE 4]]
| #default = {{{age}}}
}}}}
}}}}
{{#if:{{{also known as|{{{alias|}}}}}}|
{{#if:{{{also known as|{{{alias|}}}}}}|
Line 52: Line 47:
| boundary region and uncertainties | oort cloud = [[Category:Boundary region and uncertainties{{#if:{{{distance|}}}|{{!}}{{padleft:{{{distance}}}|6|0}}}}]]
| boundary region and uncertainties | oort cloud = [[Category:Boundary region and uncertainties{{#if:{{{distance|}}}|{{!}}{{padleft:{{{distance}}}|6|0}}}}]]
| transit infrastructure = [[Category:Transit infrastructure{{#if:{{{distance|}}}|{{!}}{{padleft:{{{distance}}}|6|0}}}}]]
| transit infrastructure = [[Category:Transit infrastructure{{#if:{{{distance|}}}|{{!}}{{padleft:{{{distance}}}|6|0}}}}]]
}}{{#switch:{{lc:{{{age|}}}}}
}}{{AGE categories|age={{{age|}}}}}{{#if:{{{category2|}}}|[[Category:{{{category2}}}]]}}}}</includeonly><noinclude>
| age 1 | 1 = [[Category:AGE 1]]
| age 2 | 2 = [[Category:AGE 2]]
| age 3 | 3 = [[Category:AGE 3]]
| age 4 | 4 = [[Category:AGE 4]]
}}{{#if:{{{category2|}}}|[[Category:{{{category2}}}]]}}}}</includeonly><noinclude>
'''Infobox location''' for pages in [[:Category:Locations]]. <code>type</code> links to the mother category Locations. The subcategory comes from <code>region</code>. A transit hub should also set <code>category2 = Transit infrastructure</code>.
'''Infobox location''' for pages in [[:Category:Locations]]. <code>type</code> links to the mother category Locations. The subcategory comes from <code>region</code>. A transit hub should also set <code>category2 = Transit infrastructure</code>.



Latest revision as of 20:07, 31 August 2026

Infobox location for pages in Category:Locations. type links to the mother category Locations. The subcategory comes from region. A transit hub should also set category2 = Transit infrastructure.

Parameters: name, image, caption, alt, type, age, also known as, region, distance, orbital location, inhabited by, population, category2, nocat.

distance is the spatial sort key (Sun-outward). It is not shown to readers: it only orders the page inside Category:Locations and its region category. Integer AU, no decimals; the template zero-pads it to six digits (90 → 000090). Without distance, the page sorts alphabetically.

{{Infobox location
| image =
| caption =
| type = Station
| age = AGE 2
| also known as = Sikiva
| region = Termination Shock
| distance =
| inhabited by = [[Sikiva community]]
}}