Template:Location: Difference between revisions

From Simulacrum Wiki
Jump to navigation Jump to search
m (1 revision imported)
m (Blanked the page)
Tag: Blanking
Line 1: Line 1:
<infobox theme-source="Theme">
 
<title source="Title">
    <default>{{PAGENAME}}</default>
        <format>{{{Title}}}</format>
</title>
<image source="Image">
    <caption><default>{{#if: {{{Gallery|}}} | [[{{{Gallery}}}|Gallery]] | [[{{PAGENAME}}/Gallery|Gallery]] }}</default></caption>
</image>
<data source="OfficialName">
    <label>Official Name</label>
    <default>Unknown</default>
    </data>
<data source="Aliases"><label>Aliases</label></data>
<data source="Custom">
        <label>{{{CustomLabel|Label Needed!}}}</label>
    </data>
    <group>
    <header>Location Details</header>
<data source="Universe">
        <label>Universe</label>
        <format>{{#if:{{#pos:{{{Universe}}} | {{PAGENAME}}}} | {{{Universe}}} | [[:Category:{{{Universe}}}|{{{Universe}}}]] |}}</format>
    </data>
<data source="Galaxy">
    <label>Galaxy</label>
    <format>{{#if:{{#pos:{{{Galaxy}}} | {{PAGENAME}}}} | {{{Galaxy}}} | [[:Category:{{{Galaxy}}}|{{{Galaxy}}}]] |}}</format>
</data>
<data source="Sector">
    <label>Sector</label>
    <format>{{#if:{{#pos:{{{Sector}}} | {{PAGENAME}}}} | {{{Sector}}} | [[:Category:Sector {{{Sector}}}|Sector {{{Sector}}}]] |}}</format>
    </data>
<data source="StarSystem">
    <label>Star System</label>
    <format>{{#if:{{#pos:{{{StarSystem}}} | {{PAGENAME}}}} | {{{StarSystem}}} | [[:Category:{{{StarSystem}}}|{{{StarSystem}}}]] |}}</format>
</data>
<data source="Planet">
    <label>Planet</label>
    <format>{{#if:{{#pos:{{{Planet}}} | {{PAGENAME}}}} | {{{Planet}}} | [[:Category:{{{Planet}}}|{{{Planet}}}]] |}}</format>
</data>
<data source="Continent">
    <label>Continent</label>
    <format>{{#if:{{#pos:{{{Continent}}} | {{PAGENAME}}}} | {{{Continent}}} | [[:Category:{{{Continent}}}|{{{Continent}}}]] |}}</format>
</data>
<data source="Country">
    <label>Country</label>
    <format>{{#if:{{#pos:{{{Country}}} | {{PAGENAME}}}} | {{{Country}}} | [[:Category:{{Ctry|{{{Country}}}}}|{{Ctry|{{{Country}}}}}]] |}}</format>
</data>
<data source="State">
    <label>State</label>
    <format>{{#if:{{#pos:{{{State}}} | {{PAGENAME}}}} | {{{State}}} | [[:Category:{{{State}}}|{{{State}}}]] |}}</format>
</data>
<data source="Province">
    <label>Province</label>
    <format>{{#if:{{#pos:{{{Province}}} | {{PAGENAME}}}} | {{{Province}}} | [[:Category:{{{Province}}}|{{{Province}}}]] |}}</format>
</data>
<data source="City">
    <label>City</label>
    <format>{{#if:{{#pos:{{{City}}} | {{PAGENAME}}}} | {{{City}}} | [[:Category:{{City|{{{City}}}}}|{{City|{{{City}}}}}]] |}}</format>
</data>
<data source="Locale">
    <label>Locale</label>
    <format>{{#if:{{#pos:{{{Locale}}} | {{PAGENAME}}}} | {{{Locale}}} | [[:Category:{{{Locale}}}|{{{Locale}}}]] [[Category:{{{Locale}}}|{{TheSort}}]] |}}</format>
</data>
</group>
<group>
<header>Characteristics</header>
<data source="Dimensions"><label>Dimensions</label></data>
<data source="Population"><label>Population</label></data>
</group>
<group layout="horizontal">
<data source="First">
      <label>First Appearance</label>
      <default>[[:Category:First Appearance Needed|Unknown]][[Category:First Appearance Needed]]</default>
      <format>{{#if: {{{First|}}}
                        | {{#if: {{#pos:{{{First|}}}|Episode:}}
                        | {{ed|{{{First}}}}}
                        | {{#switch: {{lc: {{TypeNS| {{{First|}}} }} }}
                        |comic      = {{cid|{{{First}}}}}
                        |digital comic = {{cid|{{{First}}}}}
                        |episode    = {{ed|{{{First}}}}}
                        |movie      = {{md|{{{First}}}}}
                        |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>

Revision as of 21:49, 17 March 2024