Template:Location: Difference between revisions

From Simulacrum Wiki
Jump to navigation Jump to search
m (1 revision imported)
mNo edit summary
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<infobox theme-source="Theme">
{{ infobox
<title source="Title">
| abovestyle  = padding:0.25em 0.33em 0.33em;line-height:1.2em;font-size:1.25em;
    <default>{{PAGENAME}}</default>
| above = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
        <format>{{{Title}}}</format>
| imagestyle  = text-align:center;padding:0.5em 0;
</title>
| image     = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image size|
<image source="Image">
{{{image_size|{{{imagesize|}}}}}}}}}}}|300|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}}x200px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}
    <caption><default>{{#if: {{{Gallery|}}} | [[{{{Gallery}}}|Gallery]] | [[{{PAGENAME}}/Gallery|Gallery]] }}</default></caption>
| caption    = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}}
</image>
| label2      = Official Name     
<data source="OfficialName">
| data2      = {{{OfficialName|}}}
    <label>Official Name</label>
| label3      = Alias{{Pluralize from text|{{{alias|}}}|likely=(s)|plural=es}}
    <default>Unknown</default>
| data3      = {{{alias|}}}
    </data>
| header1    = Location Details
<data source="Aliases"><label>Aliases</label></data>
| label4      = Universe
<data source="Custom">
| data4      = {{{universe|}}}
        <label>{{{CustomLabel|Label Needed!}}}</label>
| label5      = Galaxy
    </data>
| data5      = {{{galaxy|}}}
    <group>
| label6      = Star System
    <header>Location Details</header>
| data6      = {{{starsystem|}}}
<data source="Universe">
| label7      = Planet
        <label>Universe</label>
| data7      = {{{planet|}}}
        <format>{{#if:{{#pos:{{{Universe}}} | {{PAGENAME}}}} | {{{Universe}}} | [[:Category:{{{Universe}}}|{{{Universe}}}]] |}}</format>
| label8      = Continent
    </data>
| data8      = {{{continent|}}}
<data source="Galaxy">
| label9      = Country
    <label>Galaxy</label>
| data9      = {{{country|}}}
    <format>{{#if:{{#pos:{{{Galaxy}}} | {{PAGENAME}}}} | {{{Galaxy}}} | [[:Category:{{{Galaxy}}}|{{{Galaxy}}}]] |}}</format>
| label10      = City
</data>
| data10      = {{{city|}}}
<data source="Sector">
| label11    = State
    <label>Sector</label>
| data11      = {{{state|}}}
    <format>{{#if:{{#pos:{{{Sector}}} | {{PAGENAME}}}} | {{{Sector}}} | [[:Category:Sector {{{Sector}}}|Sector {{{Sector}}}]] |}}</format>
| label12    = Province
    </data>
| data12      = {{{province|}}}
<data source="StarSystem">
| label13    = Locale
    <label>Star System</label>
| data13      = {{{locale|}}}
    <format>{{#if:{{#pos:{{{StarSystem}}} | {{PAGENAME}}}} | {{{StarSystem}}} | [[:Category:{{{StarSystem}}}|{{{StarSystem}}}]] |}}</format>
| label14    = Status
</data>
| data14      = {{{status|}}}
<data source="Planet">
| label15    = Capital
    <label>Planet</label>
| data15      = {{{capital|}}}
    <format>{{#if:{{#pos:{{{Planet}}} | {{PAGENAME}}}} | {{{Planet}}} | [[:Category:{{{Planet}}}|{{{Planet}}}]] |}}</format>
| label16    = Largest City
</data>
| data16      = {{{largest_city|}}}
<data source="Continent">
| rowclass17  = mergedtoprow
    <label>Continent</label>
| label17    = Official&nbsp;languages
    <format>{{#if:{{#pos:{{{Continent}}} | {{PAGENAME}}}} | {{{Continent}}} | [[:Category:{{{Continent}}}|{{{Continent}}}]] |}}</format>
| data17      = {{{official_languages|}}}
</data>
| label18    = <span style="font-weight:normal;">{{#if:{{{recognized_languages|}}}|Recognized|Recognised}}&nbsp;Languages</span>
<data source="Country">
| data18      = {{if empty| {{{recognized_languages|}}} | {{{recognised_languages|}}} }}
    <label>Country</label>
| label19    = <span style="font-weight:normal;">{{#if:{{{recognized_national_languages|}}}|Recognized|Recognised}} National&nbsp;Languages</span>
    <format>{{#if:{{#pos:{{{Country}}} | {{PAGENAME}}}} | {{{Country}}} | [[:Category:{{Ctry|{{{Country}}}}}|{{Ctry|{{{Country}}}}}]] |}}</format>
| data19      = {{if empty| {{{recognized_national_languages|}}} | {{{recognised_national_languages|}}} | {{{national_languages|}}} }}
</data>
| label20    = Ethnic Groups
<data source="State">
| data20      = {{{ethnic_groups|}}}
    <label>State</label>
| label21    = Nationality
    <format>{{#if:{{#pos:{{{State}}} | {{PAGENAME}}}} | {{{State}}} | [[:Category:{{{State}}}|{{{State}}}]] |}}</format>
| data21      = {{{nationalities|}}}
</data>
| label22    = Religion
<data source="Province">
| data22      = {{{religion|}}}
    <label>Province</label>
| label23    = Denonym{{Pluralize from text|{{{denonym|}}}|likely=(s)|plural=s}}
    <format>{{#if:{{#pos:{{{Province}}} | {{PAGENAME}}}} | {{{Province}}} | [[:Category:{{{Province}}}|{{{Province}}}]] |}}</format>
| data23     = {{{denonym|}}}
</data>
| label24    = Government Type
<data source="City">
| data24      = {{{government_type|}}}
    <label>City</label>
| label25    = Head of State
    <format>{{#if:{{#pos:{{{City}}} | {{PAGENAME}}}} | {{{City}}} | [[:Category:{{City|{{{City}}}}}|{{City|{{{City}}}}}]] |}}</format>
| data25     = {{{leader|}}}  
</data>
| label26    = Upper House
<data source="Locale">
| data26      = {{{upperhouse|}}}
    <label>Locale</label>
| label27    = Lower House
    <format>{{#if:{{#pos:{{{Locale}}} | {{PAGENAME}}}} | {{{Locale}}} | [[:Category:{{{Locale}}}|{{{Locale}}}]] [[Category:{{{Locale}}}|{{TheSort}}]] |}}</format>
| data27      = {{{lowerhouse|}}}
</data>
| label28    = Establishment
</group>
| data28      = {{{establishment|}}}
<group>
| header74  = {{#if: {{{firstappearance|}}}{{{lastappearance|}}}
<header>Characteristics</header>
                  | {{#if: {{{creator|}}}
<data source="Dimensions"><label>Dimensions</label></data>
                  |Creator(s) and Appearances
<data source="Population"><label>Population</label></data>
                  |Appearances}}
</group>
              }}
<group layout="horizontal">
| data75    = {{{creator|}}}
<data source="First">
| label75    = Creator{{Pluralize from text|{{{creator|}}}|likely=(s)|plural=s}}
      <label>First Appearance</label>
 
      <default>[[:Category:First Appearance Needed|Unknown]][[Category:First Appearance Needed]]</default>
| data76    = {{{firstappearance|}}}
      <format>{{#if: {{{First|}}}  
| label76    = First Appearance
                        | {{#if: {{#pos:{{{First|}}}|Episode:}}
 
                        | {{ed|{{{First}}}}}
| data77    = {{{lastappearance|}}}
                        | {{#switch: {{lc: {{TypeNS| {{{First|}}} }} }}
| label77    = Last Appearance
                        |comic     = {{cid|{{{First}}}}}
}}<noinclude>
                        |digital comic = {{cid|{{{First}}}}}
{{Documentation}}
                        |episode    = {{ed|{{{First}}}}}
<!-- Please add categories and interwiki links to /doc subpage, not here! -->
                        |movie     = {{md|{{{First}}}}}
</noinclude>
                        |book      = {{bd|{{{First}}}}}
                        |video game = {{vd|{{{First}}}}}
                        |#default  = ''[[{{{First}}}]]''
                        }}}}}}</format>
</data>
<data source="Last">
    <label>Last appearance</label>
    <format>{{#if:{{{Last|}}}  
                        | {{#if:{{#pos:{{{Last|}}}|Episode}}
                        | {{ed|{{{Last|}}}}}
                        | {{#switch: {{lc: {{TypeNS| {{{Last|}}} }} }}
                        | comic = {{cid|{{{Last|}}}}}
                        | movie = {{md|{{{Last|}}}}}
                        | book = {{bd|{{{Last|}}}}}
                        | episode = {{ed|{{{Last|}}}}}
                        | video game = {{vd|{{{Last|}}}}}
                        | digital comic = {{cid|{{{Last|}}}}}
                        | #default = ''[[{{{Last|}}}]]''
                        }}}}}}</format>
</data>
</group>
</infobox>
<noinclude>[[Category:Infobox Templates|Location]][[Category:Portable Infoboxes|Location]]</noinclude>

Latest revision as of 20:19, 7 August 2024

Location Details
Your wiki got a version of Template:Documentation that is only relevant to Templates Wiki! Click here to revert it. For a documentation template you can use on your wiki, see Template:Documentation (copy) on Templates Wiki.
Template information, documentation, and installation instructions.
Expand the below text for usage and other information.

Template Documentation:
Note: The template above might be broken without the parameters; this is normal.
View, edit, or check the history of this documentation. (How does this work?)
Editors can experiment with this template's sandbox and testcases.
Location
[[File:{{{image}}}|frameless|upright=1]]
{{{caption}}}
Location Details
Official Name{{{OfficialName}}}
Alias{{{alias}}}
Universe{{{universe}}}
Galaxy{{{galaxy}}}
Star System{{{starsystem}}}
Planet{{{planet}}}
Continent{{{continent}}}
Country{{{country}}}
City{{{city}}}
State{{{state}}}
Province{{{province}}}
Locale{{{locale}}}
Status{{{status}}}
Capital{{{capital}}}
Largest City{{{largest_city}}}
Official languages{{{official_languages}}}
Recognized Languages{{{recognized_languages}}}
Recognized National Languages{{{recognized_national_languages}}}
Ethnic Groups{{{ethnic_groups}}}
Nationality{{{nationalities}}}
Religion{{{religion}}}
Denonym{{{denonym}}}
Government Type{{{government_type}}}
Head of State{{{leader}}}
Upper House{{{upperhouse}}}
Lower House{{{lowerhouse}}}
Establishment{{{establishment}}}
{{Location
| image                         =
| caption                       =
| OfficialName                  =
| alias                         =
| universe                      =
| galaxy                        =
| starsystem                    =
| planet                        =
| continent                     =
| country                       =
| city                          =
| state                         =
| province                      = 
| locale                        = 
| status                        =
| capital                       =
| largest_city                  =
| official_languages            =
| recognized_languages          =
| recognized_national_languages =
| ethnic_groups                 =
| nationalities                 =
| religion                      =
| denonym                       =
| government_type               =
| leader                        =
| upperhouse                    =
| lowerhouse                    =
| establishment                 =
}}




Installation Instructions
Export this template, then import to install it.
Use edit summary: Copied from [[w:c:templates:Template:Location]] to properly attribute this template's editors.
There is no additional installation instructions for this template. If there is any, you may create it at Template:Location/install.