Template:Infobox Location: Difference between revisions
(Created page with "<includeonly><div display="none">{{DEFAULTSORT:{{{sort|{{PAGENAME}}}}}}}<!-- -->{{#if: {{{nocat|}}} | |<!-- -->{{#ifeq: {{{spoiler|}}} | true |...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
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]] }} | |||
| headerstyle = background-color: #E1E1E1; | |||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{#if: {{{image|}}} | {{{image}}} }}|size={{{image size|330}}}|sizedefault=frameless|alt={{{alt|}}}}} | |||
| caption = {{{caption|}}} | |||
| 7373CE | | label1 = Location type | ||
| | | 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 | |||
| {{{ | | data7 = {{#if: {{{state|}}} | [[State::{{{state}}}]] }} | ||
| [[Location type::{{{location type}}}]] | |||
| label8 = City | |||
{{ | | data8 = {{#if: {{{city|}}} | [[City::{{{city}}}]] }} | ||
| label9 = Localization | |||
}} | | data9 = {{#if: {{{localization|}}} | [[Localization::{{{localization}}}]] }} | ||
| Galaxy | | Header20 = {{#if: {{{function|{{{role|}}}}}}{{{control system|}}}{{{power source|}}}{{{creator|{{{conceptor|}}}}}} | Specifications }} | ||
| {{{galaxy|}}} | |||
| label21 = {{#if: {{#pos:{{{creator|{{{conceptor|}}}}}}| <br }} | Creators | Creator }} | |||
}} | | data21 = {{{creator|}}} | ||
| Planet | | label23 = {{#if: {{#pos:{{{function|{{{role|}}}}}}|<br}} | Functions | Function }} | ||
| {{{planet|}}} | | data23 = {{{function|{{{role|}}}}}} | ||
}} | | label24 = {{#if: {{#pos:{{{control system|}}}|<br}} | Control systems | Control System }} | ||
| data24 = {{{control system|}}} | |||
| Continent | |||
| {{{continent|}}} | | label25 = {{#if: {{#pos:{{{power source|}}}|<br}} | Control systems | Control System }} | ||
| data25 = {{{power source|}}} | |||
}} | |||
| header30 = {{#if: {{{status|}}}{{{affiliation|}}} | Usage }} | |||
| Country | |||
| {{{country|}}} | | label31 = Status | ||
| data31 = {{#if: {{{status|}}} | [[Status::{{{status}}}]] }} | |||
}} | |||
| label32 = Affiliation | |||
| State | | data32 = {{{affiliation|}}} | ||
| {{{state|}}} | |||
| header40 = {{#if: {{{mention|}}}{{{appearance|}}} | Information non linked to the ''Stargate'' universe}} | |||
}} | |||
| label41 = First mention | |||
| City | | data41 = {{{mention|}}} | ||
| {{{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: {{#pos:{{{conceptor|}}} | -->{{#if: {{{image|}}} | {{#set: Infobox image = {{{image|}}} }} }}<!-- | ||
| {{{ | 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 04:07, 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. |