Template:Infobox world: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
sims>LostInRiverview
(Removing neighborhood list from infobox (makes the box really long-looking))
(Update to recognize custom namespace)
 
(16 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<templatestyles src="Metainfobox/styles.css" /><!---*****OVERALL DESIGN CODE*****--->
<noinclude>{{under construction}}
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{#if:{{{game|}}}|{{{game<includeonly>|</includeonly>}}}|{{{game1}}} }} }} }} }} }}" cellpadding="1.5"
{{Metabox
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{#if:{{{game|}}}|{{{game<includeonly>|</includeonly>}}}|{{{game1}}} }} }} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}}
|type = Notice
|image = Icon-warning-48x48.png
|headline = NOT A "LIVE" TEMPLATE
|text = This template is still being worked on and tested. ''Please do not use this template on any articles!''
|nocat = true
}}
</noinclude>
<!---*****OVERALL DESIGN CODE*****--->
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{#if:{{{game|}}}|{{{game<includeonly>|</includeonly>}}}|{{{game1}}} }} }} }} }}" cellpadding="1.5"
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{game|}}}|{{{game<includeonly>|</includeonly>}}}|{{{game1}}} }} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}}
{{!}}-
{{!}}-
<!---*****GAME LOGO*****--->
{{#if:{{{game<includeonly>|</includeonly>}}} |
{{!}} class="metainfobox-logo" colspan="2" {{!}} <small><center>{{GetGameImage|{{{game}}}|{{{neighbor|}}}}}</center></small>
{{!}}-
}}
<!---*****BOX ART AND CAPTION*****--->
<!---*****BOX ART AND CAPTION*****--->
{{#if:{{{image<includeonly>|</includeonly>}}} |
{{#if:{{{image<includeonly>|</includeonly>}}} |
Line 21: Line 17:
}}
}}
}}
}}
{{#if:{{{name<includeonly>|</includeonly>}}} |
{{!}} Name
{{!}} Name
{{!}} {{{Name|{{PAGENAME}}}}}
{{!}} {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{!}}-
{{!}}-
}}
{{#if: {{{game<includeonly>|</includeonly>}}} |
{{#if: {{{game<includeonly>|</includeonly>}}} |
{{!}} Game
{{!}} Game
{{!}} {{GetGameIcon|{{{game}}}}}&nbsp;[[{{{game}}}]]
{{!}} {{GetGameIcon|{{{game}}}}}&nbsp;''[[{{{game}}}]]''
{{!}}-
{{!}}-
}}
}}
{{#if: {{{game1|}}} |
{{#if: {{{game1|}}} |
{{!}} Game
{{!}} Game
{{!}} {{GetGameIcon|{{{game1}}}}}&nbsp;[[{{{game1}}}]]
{{!}} {{GetGameIcon|{{{game1}}}}}&nbsp;''[[{{{game1}}}]]''
{{!}}-
{{!}}-
}}
}}
Line 41: Line 35:
{{!}}-
{{!}}-
}}
}}
{{#ifeq: {{#expr: <noinclude>1 or </noinclude> {{#ifexist: {{FULLPAGENAME}}/Onomatology|1|0}} or {{checkfns|1|0}} }} | 1 | {{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{game|}}}|{{{game<includeonly>|</includeonly>}}}|{{{game1}}} }} }} }} }}" colspan="2" {{!}}
{{#ifeq: {{#expr: <noinclude>1 or </noinclude> {{#ifexist: {{FULLPAGENAME}}/Onomatology|1|0}} or {{checkfns|1|0}} }} | 1 | {{!}} class="metainfobox-header line {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{#if:{{{game|}}}|{{{game<includeonly>|</includeonly>}}}|{{{game1}}} }} }} }} }} }}" colspan="2" {{!}}
{{!}}-
{{!}}-
{{#ifexist: {{FULLPAGENAME}}/Onomatology |
{{#ifexist: {{FULLPAGENAME}}/Onomatology |
{{!}} colspan="2" {{!}} [[{{FULLPAGENAME}}/Onomatology|Onomatology]]
{{!}} colspan="2" {{!}} [[{{FULLPAGENAME}}/Onomatology|Onomatology]]
}}<!-- Not used on Miraheze
{{!}}-
}}
{{#ifeq:{{NAMESPACE}}|Fanon|
{{#ifeq:{{NAMESPACE}}|Fanon|
{{!}} colspan="2" {{!}} [[{{FULLPAGENAME}}#WikiaArticleComments|Comments and Reviews]]
{{!}} colspan="2" {{!}} [[{{FULLPAGENAME}}#WikiaArticleComments|Comments and Reviews]]
{{!}}-
{{!}}-
}}-->
}}
}}
|}<includeonly>{{#ifeq: {{Yesno-yes|{{{cat}}}|no=no}}|no| <!-- Don't add categories --> |
}}
{{Namespace detect
|}<includeonly>{{Checkmns|[[Category:Worlds in {{Checkgame|{{{name}}}}}]]}}{{Checkfns|[[Category:Worlds in {{Checkgame|{{{name}}}}} (fanon)]]}}</includeonly><noinclude>{{Documentation}}</noinclude>
|main = {{#if:{{{game|}}}|[[Category:Worlds in {{Vgcode|{{MGL|{{Delink|{{{game}}} }} }} }}]]}}
|fanon = {{#if:{{{game|}}}|[[Category:Worlds in {{Vgcode|{{MGL|{{Delink|{{{game}}} }} }} }} (fanon)]]}}
|custom = {{#if:{{{game|}}}|[[Category:Worlds in {{Vgcode|{{MGL|{{Delink|{{{game}}} }} }} }} (custom)]]}}
}}
}}</includeonly>
<noinclude>{{clr}}{{Documentation}}</noinclude>

Latest revision as of 18:01, 19 August 2019

Infobox world
{{{image}}}
{{{caption}}}
Name Infobox world
Game  [[{{{game}}}]]
Cost (in SimPoints) {{{cost}}}
Template documentation (View · Edit · History · Purge)

Description

Infobox for worlds. For neighborhoods, see {{Infobox neighborhood}}.

Usage

{{Infobox world
|name    = 
|image   = 
|caption = 
|game    = 
}}

Parameters

Required

  • name: Name of the world.
  • image: [[File:Example.jpg|250px]] The image should be 250px or smaller.
  • caption: Caption for the image.
  • game: The main game this world is featured in.

Optional

  • cost: The cost of downloadable world, specifically from The Sims 3 Store. This parameter gives the price in SimPoints.

Visit Template:Infobox world/doc to edit this text! (How does this work?) (Refresh this text - why?)