Template:Infobox Location: Difference between revisions

From Semantic Stargate Wiki
(Created page with "<includeonly><div display="none">{{DEFAULTSORT:{{{sort|{{PAGENAME}}}}}}}<!-- -->{{#if: {{{nocat|}}} | |<!-- -->{{#ifeq: {{{spoiler|}}} | true |...")
 
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 18: Line 18:
     --><!--  
     --><!--  
     -->}}<!--  
     -->}}<!--  
  -->}}</div>{{Infobox/startbox}}
  -->}}</div>{{Infobox
{{Infobox/title
| name      = Infobox Location
  | [[Name::{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}]]
  | above      = {{#if: {{{name|{{{title|}}}}}} | {{{name|{{{title|}}}}}} | {{PAGENAME}} }}
  | | header map
  | subheaderstyle  = background-color: #7373CE;
}}
| subheader      = {{#if: {{{alternate timeline|}}} | This location is part of an [[Location part of::alternate timeline]] }}
{{Infobox/optional subtitle
| subheaderstyle2 = background-color: #7373CE;
| This location is part of an [[Location part of::alternate timeline]]
  | subheader2      = {{#if: {{{alternate reality|}}} | This location is part of an [[Location part of::alternate reality]] }}
  | {{{alternate timeline|}}}
  | subheaderstyle3 = background-color: #7373CE;
| 7373CE
  | subheader3      = {{#if: {{{hallucination|}}} | This location is part of an [[Location part of::hallucination]] }}
| FFFFFF
 
}}
  | headerstyle    = background-color: #E1E1E1;
{{Infobox/optional subtitle
  | image      = {{#invoke:InfoboxImage|InfoboxImage|image={{#if: {{{image|}}} | {{{image}}} }}|size={{{image size|330}}}|sizedefault=frameless|alt={{{alt|}}}}}
| This location is part of an [[Location part of::alternate reality]]
  | caption    = {{{caption|}}}
| {{{alternate reality|}}}
 
  | 7373CE
| label1    = Location type
  | FFFFFF
  | data1      = [[Location type::{{#switch: {{lc: {{{location type|country}}} }} | area | areas = Area | base | bases = Base | building | buildings = Building | hotel | hotels | casino | casinos | business | businesses = Business | city | cities = City | town | towns = Town | village | villages = Village | continent | continents = Continent | country | countries = Country | monument | monuments = Monument | house | houses = House | apartment | apartments = Apartment | facility | facilities = Facility | region | regions = Region | room | rooms = Room | state | states = State }}]]
}}
 
{{Infobox/optional subtitle
| header2    = {{#if: {{{galaxy|}}}{{{planet|}}}{{{continent|}}}{{{country|}}}{{{state|}}}{{{city|}}}{{{localization|}}} | Geographical situation }}
| This location is part of an [[Location part of::hallucination]]
 
| {{{hallucination|}}}
  | label3    = Galaxy
  | 7373CE
  | data3      = {{#if: {{{galaxy|}}} | [[Galaxy::{{{galaxy}}}]] }}
  | FFFFFF
 
}}
  | label4    = Planet
{{Infobox/image
  | data4      = {{#if: {{{planet|}}} | [[Planet::{{{planet}}}]] }}
|{{{image|}}}
 
|{{{caption|}}}
  | label5    = Continent
}}
  | data5      = {{#if: {{{continent|}}} | [[Continent::{{{continent}}}]] }}
{{Infobox/optional separator
 
| {{{image|}}}
  | label6    = Country
}}
  | data6      = {{#if: {{{country|}}} | [[Country::{{{country}}}]] }}
{{Infobox/optional dual line
 
| Location type
  | label7    = State
  | {{{location type|}}}
  | data7      = {{#if: {{{state|}}} | [[State::{{{state}}}]] }}
  | [[Location type::{{{location type}}}]]
 
}}
  | label8    = City
{{Infobox/optional subtitle
  | data8      = {{#if: {{{city|}}} | [[City::{{{city}}}]] }}
| Geographical situation
 
| {{{galaxy|}}}{{{planet|}}}{{{continent|}}}{{{localisation|}}}{{{country|}}}{{{city|}}}
  | label9    = Localization
}}
  | data9      = {{#if: {{{localization|}}} | {{{localization}}} }}
{{Infobox/optional dual line
 
  | Galaxy
  | Header20  = {{#if: {{{function|{{{role|}}}}}}{{{control system|}}}{{{power source|}}}{{{creator|{{{conceptor|}}}}}} | Specifications }}
  | {{{galaxy|}}}
 
| [[Galaxy::{{{galaxy|}}}]]
  | label21    = {{#if: {{#pos:{{{creator|{{{conceptor|}}}}}}| <br }} | Creators | Creator }}
}}
  | data21    = {{{creator|}}}
{{Infobox/optional dual line
 
  | Planet
  | label23    = {{#if: {{#pos:{{{function|{{{role|}}}}}}|<br}} | Functions | Function }}
  | {{{planet|}}}
  | data23    = {{{function|{{{role|}}}}}}
| [[Planet::{{{planet|}}}]]
 
}}
  | label24    = {{#if: {{#pos:{{{control system|}}}|<br}} | Control systems | Control System }}
{{Infobox/optional dual line
  | data24    = {{{control system|}}}
  | Continent
 
  | {{{continent|}}}
  | label25    = {{#if: {{#pos:{{{power source|}}}|<br}} | Control systems | Control System }}
| [[Continent::{{{continent|}}}]]
  | data25    = {{{power source|}}}
}}
 
{{Infobox/optional dual line
  | header30  = {{#if: {{{status|}}}{{{affiliation|}}} | Usage }}
  | Country
 
  | {{{country|}}}
  | label31    = Status
| [[Country::{{{country|}}}]]
  | data31    = {{#if: {{{status|}}} | [[Status::{{{status}}}]] }}
}}
 
{{Infobox/optional dual line
  | label32    = Affiliation
  | State
  | data32    = {{{affiliation|}}}
  | {{{state|}}}
 
| [[State::{{{state|}}}]]
  | header40  = {{#if: {{{mention|}}}{{{appearance|}}} | Information non linked to the ''Stargate'' universe}}
}}
 
{{Infobox/optional dual line
| label41    = First mention
  | City
  | data41    = {{{mention|}}}
  | {{{city|}}}
 
| [[City::{{{city|}}}]]
| label42    = First appearance
}}
| data42    = {{{appearance|}}}
{{Infobox/optional dual line
 
  | Localization
}}<!--
  | {{{localization|}}}
 
}}
Retrieving the "name" property from the infobox
{{Infobox/optional subtitle
 
| Spécifications
  -->{{#if: {{{name|{{{title|}}}}}} | {{#set: name = {{{name|{{{title|}}}}}} }} | {{#set: name = {{PAGENAME}} }} }}<!--
  | {{{function|{{{role|}}}}}}{{{control system|}}}{{{power source|}}}{{{conceptor|}}}
 
}}
Retrieving the "infobox image" from the template
{{Infobox/optional dual line
 
  | {{#if: {{#pos:{{{conceptor|}}}|,}} | Conceptors | Conceptor }}
  -->{{#if: {{{image|}}} | {{#set: Infobox image = {{{image|}}} }} }}<!--
| {{{conceptor|}}}
 
  | {{{conceptor|}}}
Defining the canonicity of the location
}}
 
{{Infobox/optional dual line
-->{{#set: Canon location = {{#if:{{{separate|}}}|no|yes}} }}</includeonly><noinclude>{{Documentation}}</noinclude>
  | {{#if: {{#pos:{{{function|{{{role|}}}}}}|,}} | Functions | Function}}
  | {{{function|{{{role|}}}}}}
| {{{function|{{{role|}}}}}}
}}
{{Infobox/optional dual line
  | {{#if: {{#pos:{{{control system|}}}|,}} | Control systems | Control System }}
  | {{{control system|}}}
| {{{control system|}}}
}}
{{Infobox/optional dual line
  | {{#if: {{#pos:{{{power source|}}}|,}} | Power sources | Power source }}
  | {{{power source|}}}
  | {{{power source|}}}
}}
{{Infobox/optional subtitle
| Usage
| {{{status|}}}{{{affiliation|}}}
}}
{{Infobox/optional dual line
  | Status
  | {{{status|}}}
| {{{status|}}}
}}
{{Infobox/optional dual line
  | Affiliation
  | {{{affiliation|}}}
  | {{{affiliation|}}}
}}
{{Infobox/optional subtitle
| Informations non linked to the ''Stargate'' universe
  | {{{mention|}}}{{{appearance|}}}
}}
{{Infobox/optional dual line
| First mention
  | {{{mention|}}}
| {{{mention|}}}
}}
{{Infobox/optional dual line
| First appearance
| {{{appearance|}}}
| {{{appearance|}}}
}}
{{Infobox/notice
|Infobox Location
  |336666
}}
{{Infobox/endbox}}{{#if: {{{image|}}} | [[Infobox image::{{{image|}}} | ]]}}[[Canon location::{{#if:{{{separate|}}}|no|yes}}| ]]</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 12:39, 18 January 2024

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

Syntax

{{Infobox Location
 | nocat                  = 
 | spoiler                = 
 | image                  = 
 | caption                = 
 | separate               = 
 | continuity             = 
 | alternate reality      = <!-- semantic data -->
 | alternate timeline     = <!-- semantic data -->
 | hallucination          = <!-- semantic data -->
 | location type          = 
 | title                  = 
 | galaxy                 = 
 | planet                 = 
 | continent              = 
 | country                = 
 | state                  = 
 | city                   = 
 | localization           = 
 | conceptor              = 
 | function               = 
 | control system         = 
 | power source           = 
 | status                 = 
 | affiliation            = 
 | mention                = 
 | appearance             = 
}}

See also