Template:Infobox Location: Difference between revisions

From Marvel Cinematic Universe Wiki
Content deleted Content added
mNo edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 18: Line 18:
--><!--
--><!--
-->}}<!--
-->}}<!--
-->}}</div>{{Infobox/Startbox}}
-->}}</div>{{Infobox
{{Infobox/Startbox
| name = Infobox Location
| above = {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
| class =
| subheaderstyle = background-color: #b32425;
| width =
| subheader = {{#if: {{{alternate timeline|}}} | This location is part of an [[Location part of::alternate timeline]] }}
| icon = header map
| subheaderstyle2 = background-color: #b32425;
| background =
| subheader2 = {{#if: {{{alternate reality|}}} | This location is part of an [[Location part of::alternate reality]] }}
| color =
| subheaderstyle3 = background-color: #b32425;
| border-color =
| text = {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
| subheader3 = {{#if: {{{hallucination|}}} | This location is part of an [[Location part of::hallucination]] }}
| subheaderstyle4 = background-color: #b32425;
}}
| subheader4 = {{#if: {{{framework|}}} | This location is part of the [[Location part of::Framework]] }}
{{Infobox/Title block

| class =
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{#if: {{{image|}}} | {{{image}}} }}|size={{{image size|330}}}|sizedefault=frameless|alt={{{alt|}}}}}
| border =
| caption = {{{caption|}}}
| background =

| color =
| text = This location is part of an [[Location part of::alternate timeline]]
| 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 }}]]
| if = {{{alternate timeline|}}}

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

| class =
| border =
| label3 = Galaxy
| data3 = {{#if: {{{galaxy|}}} | [[Galaxy::{{{galaxy}}}]] }}
| background =

| color =
| label4 = Planet
| text = This location is part of an [[Location part of::alternate reality]]
| if = {{{alternate reality|}}}
| data4 = {{#if: {{{planet|}}} | [[Planet::{{{planet}}}]] }}

}}
| label5 = Continent
{{Infobox/Title block
| data5 = {{#if: {{{continent|}}} | [[Continent::{{{continent}}}]] }}
| class =

| border =
| background =
| label6 = Country
| data6 = {{#if: {{{country|}}} | [[Country::{{{country}}}]] }}
| color =

| text = This location is part of an [[Location part of::hallucination]]
| if = {{{hallucination|}}}
| label7 = State
| data7 = {{#if: {{{state|}}} | [[State::{{{state}}}]] }}
}}

{{Infobox/Title block
| class =
| label8 = City
| data8 = {{#if: {{{city|}}} | [[City::{{{city}}}]] }}
| border =

| background =
| color =
| label9 = Localization
| data9 = {{#if: {{{localization|}}} | [[Localization::{{{localization}}}]] }}
| text = This location is part of the [[Location part of::Framework]]

| if = {{{framework|}}}
| Header20 = {{#if: {{{function|{{{role|}}}}}}{{{control system|}}}{{{power source|}}}{{{creator|}}} | Specifications }}
}}

{{Infobox/Image
| image = {{#if: {{{image|}}} | {{{image}}} | Sin foto.svg }}
| label21 = {{#if: {{#pos:{{{creator|}}}| <br }} | Creators | Creator }}
| alt =
| data21 = {{{creator|}}}

| upright = 1.35
| label22 = {{#if: {{#pos:{{{function|{{{role|}}}}}}|<br}} | Functions | Function }}
| border =
| legend = {{{caption|}}}
| data22 = {{{function|{{{role|}}}}}}

}}
| label23 = {{#if: {{#pos:{{{control system|}}}|<br}} | Control systems | Control System }}
{{Infobox/Table start
| class = hidden
| data23 = {{{control system|}}}

| border =
| label24 = {{#if: {{#pos:{{{power source|}}}|<br}} | Control systems | Control System }}
| background =
| color =
| data24 = {{{power source|}}}

| text =
| header30 = {{#if: {{{status|}}}{{{affiliation|}}} | Usage }}
}}

{{Infobox/Table dual line
| class =
| label31 = Status
| data31 = {{#if: {{{status|}}} | [[Status::{{{status}}}]] }}
| width =

| Location type
| label32 = Affiliation
| {{{location type}}}
| if = {{{location type|}}}
| data32 = {{{affiliation|}}}

}}
| header40 = {{#if: {{{mention|}}}{{{appearance|}}} | Information non linked to the MCU }}
{{Infobox/Table end}}

{{Infobox/Table start
| label41 = First mention
| class = {{#if: {{{galaxy|}}}{{{planet|}}}{{{continent|}}}{{{country|}}}{{{state|}}}{{{city|}}}{{{localization|}}} | | hidden }}
| border =
| data41 = {{{mention|}}}

| background =
| color =
| label42 = First appearance
| text = Geographical situation
| data42 = {{{appearance|}}}

}}
}}<!--
{{Infobox/Table dual line
| class =
| width =
| Galaxy
| [[Galaxy::{{{galaxy}}}]]
| if = {{{galaxy|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| Planet
| [[Planet::{{{planet}}}]]
| if = {{{planet|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| Continent
| [[Continent::{{{continent}}}]]
| if = {{{continent|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| Country
| [[Country::{{{country}}}]]
| if = {{{country|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| State
| [[State::{{{state}}}]]
| if = {{{state|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| City
| [[City::{{{city}}}]]
| if = {{{city|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| Localization
| [[Localization::{{{localization}}}]]
| if = {{{localization|}}}
}}
{{Infobox/Table end}}
{{Infobox/Table start
| class = {{#if: {{{function|{{{role|}}}}}}{{{control system|}}}{{{power source|}}}{{{conceptor|}}} | | hidden }}
| border =
| background =
| color =
| text = Specifications
}}
{{Infobox/Table dual line
| class =
| width =
| {{#if: {{#pos:{{{conceptor|}}}|<br}} | Conceptors | Conceptor }}
| {{{conceptor}}}
| if = {{{conceptor|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| {{#if: {{#pos:{{{function|{{{role|}}}}}}|<br}} | Functions | Function }}
| {{{function|{{{role|}}}}}}
| if = {{{function|{{{role|}}}}}}
}}
{{Infobox/Table dual line
| class =
| width =
| {{#if: {{#pos:{{{control system|}}}|<br}} | Control systems | Control System }}
| {{{control system}}}
| if = {{{control system|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| {{#if: {{#pos:{{{power source|}}}|<br}} | Control systems | Control System }}
| {{{power source}}}
| if = {{{power source|}}}
}}
{{Infobox/Table end}}
{{Infobox/Table start
| class = {{#if: {{{status|}}}{{{affiliation|}}} | | hidden }}
| border =
| background =
| color =
| text = Usage
}}
{{Infobox/Table dual line
| class =
| width =
| Status
| {{{status}}}
| if = {{{status|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| Affiliation
| {{{affiliation}}}
| if = {{{affiliation|}}}
}}
{{Infobox/Table end}}
{{Infobox/Table start
| class = {{#if: {{{mention|}}}{{{appearance|}}} | | hidden }}
| border =
| background =
| color =
| text = Informations non linked to the MCU
}}
{{Infobox/Table dual line
| class =
| width =
| First mention
| {{{mention}}}
| if = {{{mention|}}}
}}
{{Infobox/Table dual line
| class =
| width =
| First appearance
| {{{appearance}}}
| if = {{{appearance|}}}
}}
{{Infobox/Table end}}
{{Infobox/Endbox}}<!--


Retrieving the "name" property from the infobox
Retrieving the "name" property from the infobox

Latest revision as of 17:26, 24 March 2019

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

Usage

Syntax

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