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
 
(3 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}} }}
| 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
| headerstyle = background-color: #E1E1E1;
}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{#if: {{{image|}}} | {{{image}}} }}|size={{{image size|330}}}|sizedefault=frameless|alt={{{alt|}}}}}
{{Infobox/optional subtitle
| caption = {{{caption|}}}
| This location is part of an [[Location part of::alternate reality]]

| {{{alternate reality|}}}
| 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 | galaxy | galaxies = Galaxy }}]]
| FFFFFF

}}
| header2 = {{#if: {{{galaxy|}}}{{{planet|}}}{{{continent|}}}{{{country|}}}{{{state|}}}{{{city|}}}{{{localization|}}} | Geographical situation }}
{{Infobox/optional subtitle

| This location is part of an [[Location part of::hallucination]]
| label3 = Galaxy
| {{{hallucination|}}}
| data3 = {{#if: {{{galaxy|}}} | [[Galaxy::{{{galaxy}}}]] }}
| 7373CE

| FFFFFF
| label4 = Planet
}}
| data4 = {{#if: {{{planet|}}} | [[Planet::{{{planet}}}]] }}
{{Infobox/image

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

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

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

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

| Geographical situation
| label9 = Localization
| {{{galaxy|}}}{{{planet|}}}{{{continent|}}}{{{localisation|}}}{{{country|}}}{{{city|}}}
| data9 = {{#if: {{{localization|}}} | {{{localization}}} }}
}}

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

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

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

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

| Continent
| label25 = {{#if: {{#pos:{{{power source|}}}|<br}} | Control systems | Control System }}
| {{{continent|}}}
| [[Continent::{{{continent|}}}]]
| data25 = {{{power source|}}}

}}
| header30 = {{#if: {{{status|}}}{{{affiliation|}}} | Usage }}
{{Infobox/optional dual line

| Country
| label31 = Status
| {{{country|}}}
| [[Country::{{{country|}}}]]
| data31 = {{#if: {{{status|}}} | [[Status::{{{status}}}]] }}

}}
| label32 = Affiliation
{{Infobox/optional dual line
| data32 = {{{affiliation|}}}
| State

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

}}
| label41 = First mention
{{Infobox/optional dual line
| data41 = {{{mention|}}}
| City

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

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

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

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

| {{{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|}}}
Defining the canonicity of the location
| {{{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>

Latest revision as of 21:30, 4 December 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