Template:Infobox Location: Difference between revisions
(Created page with "<includeonly><div display="none">{{DEFAULTSORT:{{{sort|{{PAGENAME}}}}}}}<!-- -->{{#if: {{{nocat|}}} | |<!-- -->{{#ifeq: {{{spoiler|}}} | true |...") |
No edit summary |
||
Line 18: | Line 18: | ||
--><!-- | --><!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->}}</div>{{Infobox | -->}}</div>{{Infobox | ||
| name = Infobox Location | |||
| | | above = {{#if: {{{name|{{{title|}}}}}} | {{{name|{{{title|}}}}}} | {{PAGENAME}} }} | ||
| | | | subheaderstyle = background-color: #7373CE; | ||
}} | | subheader = {{#if: {{{alternate timeline|}}} | This location is part of an [[Location part of::alternate timeline]] }} | ||
| subheaderstyle2 = background-color: #7373CE; | |||
| subheader2 = {{#if: {{{alternate reality|}}} | This location is part of an [[Location part of::alternate reality]] }} | |||
| {{{alternate | | subheaderstyle3 = background-color: #7373CE; | ||
| subheader3 = {{#if: {{{hallucination|}}} | This location is part of an [[Location part of::hallucination]] }} | |||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{#if: {{{image|}}} | {{{image}}} }}|size={{{image size|330}}}|sizedefault=frameless|alt={{{alt|}}}}} | |||
| caption = {{{caption|}}} | |||
| label1 = Location type | |||
| 7373CE | | 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 }}]] | ||
| | |||
}} | | header2 = {{#if: {{{galaxy|}}}{{{planet|}}}{{{continent|}}}{{{country|}}}{{{state|}}}{{{city|}}}{{{localization|}}} | Geographical situation }} | ||
| label3 = Galaxy | |||
| {{{ | | data3 = {{#if: {{{galaxy|}}} | [[Galaxy::{{{galaxy}}}]] }} | ||
| label4 = Planet | |||
| data4 = {{#if: {{{planet|}}} | [[Planet::{{{planet}}}]] }} | |||
{{ | |||
| label5 = Continent | |||
| data5 = {{#if: {{{continent|}}} | [[Continent::{{{continent}}}]] }} | |||
}} | |||
| label6 = Country | |||
| {{{ | | data6 = {{#if: {{{country|}}} | [[Country::{{{country}}}]] }} | ||
| label7 = State | |||
| Location type | | data7 = {{#if: {{{state|}}} | [[State::{{{state}}}]] }} | ||
| | |||
| label8 = City | |||
| data8 = {{#if: {{{city|}}} | [[City::{{{city}}}]] }} | |||
{{ | |||
| label9 = Localization | |||
| data9 = {{#if: {{{localization|}}} | [[Localization::{{{localization}}}]] }} | |||
}} | |||
| Header20 = {{#if: {{{function|{{{role|}}}}}}{{{control system|}}}{{{power source|}}}{{{creator|{{{conceptor|}}}}}} | Specifications }} | |||
| Galaxy | |||
| {{{galaxy|}}} | | label21 = {{#if: {{#pos:{{{creator|{{{conceptor|}}}}}}| <br }} | Creators | Creator }} | ||
| data21 = {{{creator|}}} | |||
}} | |||
| label23 = {{#if: {{#pos:{{{function|{{{role|}}}}}}|<br}} | Functions | Function }} | |||
| Planet | | data23 = {{{function|{{{role|}}}}}} | ||
| {{{planet|}}} | |||
| label24 = {{#if: {{#pos:{{{control system|}}}|<br}} | Control systems | Control System }} | |||
}} | | data24 = {{{control system|}}} | ||
| Continent | | label25 = {{#if: {{#pos:{{{power source|}}}|<br}} | Control systems | Control System }} | ||
| {{{continent|}}} | | data25 = {{{power source|}}} | ||
}} | | header30 = {{#if: {{{status|}}}{{{affiliation|}}} | Usage }} | ||
| Country | | label31 = Status | ||
| {{{country|}}} | | data31 = {{#if: {{{status|}}} | [[Status::{{{status}}}]] }} | ||
}} | | label32 = Affiliation | ||
| data32 = {{{affiliation|}}} | |||
| State | |||
| {{{state|}}} | | header40 = {{#if: {{{mention|}}}{{{appearance|}}} | Information non linked to the ''Stargate'' universe}} | ||
}} | | label41 = First mention | ||
| data41 = {{{mention|}}} | |||
| City | |||
| {{{city|}}} | | label42 = First appearance | ||
| data42 = {{{appearance|}}} | |||
}} | |||
}}<!-- | |||
| Localization | |||
| {{{localization|}}} | Retrieving the "name" property from the infobox | ||
}} | |||
-->{{#if: {{{name|{{{title|}}}}}} | {{#set: name = {{{name|{{{title|}}}}}} }} | {{#set: name = {{PAGENAME}} }} }}<!-- | |||
| {{{function|{{{role|}}}}}}{{{control system|}}}{{{power source|}}}{{{conceptor|}}} | Retrieving the "infobox image" from the template | ||
}} | |||
-->{{#if: {{{image|}}} | {{#set: Infobox image = {{{image|}}} }} }}<!-- | |||
| {{#if: {{#pos:{{{conceptor|}}} | |||
Defining the canonicity of the location | |||
| {{{ | |||
-->{{#set: Canon location = {{#if:{{{separate|}}}|no|yes}} }}</includeonly><noinclude>{{Documentation}}</noinclude> | |||
| {{#if: {{#pos:{{{function|{{{role|}}}}}}| | |||
| {{{function|{{{role|}}}}}} | |||
| {{#if: {{#pos:{{{control system|}}}| | |||
| {{{control system|}}} | |||
| {{#if: {{#pos:{{{power source|}}}| | |||
| {{{power source|}}} | |||
| {{ | |||
}} | |||
| Status | |||
| {{{status|}}} | |||
}} | |||
| Affiliation | |||
| {{{affiliation|}}} | |||
| {{{ | |||
}} | |||
| {{{mention|}}}{{{appearance|}}} | |||
}} | |||
}} | |||
{{ | |||
}} | |||
Revision as of 03:04, 25 June 2019
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
The above documentation is transcluded from Template:Infobox Location/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |