Jump to content

Template:Infobox Location: Difference between revisions

From Semantic Stargate Wiki
Content deleted Content added
Created page with "<includeonly><div display="none">{{DEFAULTSORT:{{{sort|{{PAGENAME}}}}}}}<!-- -->{{#if: {{{nocat|}}} | |<!-- -->{{#ifeq: {{{spoiler|}}} | true |..."
 
No edit summary
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}} }}
| subheaderstyle = background-color: #7373CE;
| | header map
| subheader = {{#if: {{{alternate timeline|}}} | This location is part of an [[Location part of::alternate timeline]] }}
}}
| subheaderstyle2 = background-color: #7373CE;
{{Infobox/optional subtitle
| 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]] }}
| subheaderstyle3 = background-color: #7373CE;
| {{{alternate timeline|}}}
| subheader3 = {{#if: {{{hallucination|}}} | This location is part of an [[Location part of::hallucination]] }}
| 7373CE

| FFFFFF
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{#if: {{{image|}}} | {{{image}}} }}|size={{{image size|330}}}|sizedefault=frameless|alt={{{alt|}}}}}
}}
| caption = {{{caption|}}}
{{Infobox/optional subtitle

| This location is part of an [[Location part of::alternate reality]]
| label1 = Location type
| {{{alternate reality|}}}
| 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 }}]]
| 7373CE

| FFFFFF
| header2 = {{#if: {{{galaxy|}}}{{{planet|}}}{{{continent|}}}{{{country|}}}{{{state|}}}{{{city|}}}{{{localization|}}} | Geographical situation }}
}}

{{Infobox/optional subtitle
| label3 = Galaxy
| This location is part of an [[Location part of::hallucination]]
| data3 = {{#if: {{{galaxy|}}} | [[Galaxy::{{{galaxy}}}]] }}
| {{{hallucination|}}}

| 7373CE
| label4 = Planet
| FFFFFF
| data4 = {{#if: {{{planet|}}} | [[Planet::{{{planet}}}]] }}
}}

{{Infobox/image
| label5 = Continent
|{{{image|}}}
| data5 = {{#if: {{{continent|}}} | [[Continent::{{{continent}}}]] }}
|{{{caption|}}}

}}
| label6 = Country
{{Infobox/optional separator
| data6 = {{#if: {{{country|}}} | [[Country::{{{country}}}]] }}
| {{{image|}}}

}}
| label7 = State
{{Infobox/optional dual line
| data7 = {{#if: {{{state|}}} | [[State::{{{state}}}]] }}
| Location type

| {{{location type|}}}
| label8 = City
| [[Location type::{{{location type}}}]]
| data8 = {{#if: {{{city|}}} | [[City::{{{city}}}]] }}
}}

{{Infobox/optional subtitle
| label9 = Localization
| Geographical situation
| data9 = {{#if: {{{localization|}}} | [[Localization::{{{localization}}}]] }}
| {{{galaxy|}}}{{{planet|}}}{{{continent|}}}{{{localisation|}}}{{{country|}}}{{{city|}}}

}}
| Header20 = {{#if: {{{function|{{{role|}}}}}}{{{control system|}}}{{{power source|}}}{{{creator|{{{conceptor|}}}}}} | Specifications }}
{{Infobox/optional dual line

| Galaxy
| label21 = {{#if: {{#pos:{{{creator|{{{conceptor|}}}}}}| <br }} | Creators | Creator }}
| {{{galaxy|}}}
| [[Galaxy::{{{galaxy|}}}]]
| data21 = {{{creator|}}}

}}
| label23 = {{#if: {{#pos:{{{function|{{{role|}}}}}}|<br}} | Functions | Function }}
{{Infobox/optional dual line
| data23 = {{{function|{{{role|}}}}}}
| Planet

| {{{planet|}}}
| label24 = {{#if: {{#pos:{{{control system|}}}|<br}} | Control systems | Control System }}
| [[Planet::{{{planet|}}}]]
| data24 = {{{control system|}}}
}}

{{Infobox/optional dual line
| label25 = {{#if: {{#pos:{{{power source|}}}|<br}} | Control systems | Control System }}
| Continent
| {{{continent|}}}
| data25 = {{{power source|}}}

| [[Continent::{{{continent|}}}]]
| header30 = {{#if: {{{status|}}}{{{affiliation|}}} | Usage }}
}}

{{Infobox/optional dual line
| label31 = Status
| Country
| data31 = {{#if: {{{status|}}} | [[Status::{{{status}}}]] }}
| {{{country|}}}

| [[Country::{{{country|}}}]]
| label32 = Affiliation
}}
| data32 = {{{affiliation|}}}
{{Infobox/optional dual line

| State
| header40 = {{#if: {{{mention|}}}{{{appearance|}}} | Information non linked to the ''Stargate'' universe}}
| {{{state|}}}

| [[State::{{{state|}}}]]
| label41 = First mention
}}
| data41 = {{{mention|}}}
{{Infobox/optional dual line

| City
| label42 = First appearance
| {{{city|}}}
| [[City::{{{city|}}}]]
| data42 = {{{appearance|}}}

}}
}}<!--
{{Infobox/optional dual line

| Localization
Retrieving the "name" property from the infobox
| {{{localization|}}}

}}
-->{{#if: {{{name|{{{title|}}}}}} | {{#set: name = {{{name|{{{title|}}}}}} }} | {{#set: name = {{PAGENAME}} }} }}<!--
{{Infobox/optional subtitle

| Spécifications
Retrieving the "infobox image" from the template
| {{{function|{{{role|}}}}}}{{{control system|}}}{{{power source|}}}{{{conceptor|}}}

}}
-->{{#if: {{{image|}}} | {{#set: Infobox image = {{{image|}}} }} }}<!--
{{Infobox/optional dual line

| {{#if: {{#pos:{{{conceptor|}}}|,}} | Conceptors | Conceptor }}
Defining the canonicity of the location
| {{{conceptor|}}}

| {{{conceptor|}}}
-->{{#set: Canon location = {{#if:{{{separate|}}}|no|yes}} }}</includeonly><noinclude>{{Documentation}}</noinclude>
}}
{{Infobox/optional dual line
| {{#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>

Revision as of 09:04, 25 June 2019

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