Template:Neighborhood: 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>Lost Labyrinth
(Added Onomatology to the infobox)
m (Protected "Template:Neighborhood" ([Edit=Allow only autoconfirmed and confirmed users] (indefinite) [Move=Allow only administrators and content moderators] (indefinite) [Delete=Allow only administrators and content moderators] (indefinite)))
 
(35 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<noinclude>{{Info||This template is currently being phased out in favor of {{tl|Infobox neighborhood}} and {{tl|Infobox world}}. Please use those templates instead.}}</noinclude>
<div style="width:260px;float:right;clear:right;margin-left:5px;margin-right:0px;margin-top:0px;margin-bottom:0px; border-right: {{Vgbordercolor|{{Vgcode|{{{game1}}} }} }} 1px solid;border-left:{{Vgbordercolor|{{Vgcode|{{{game1}}} }} }} 1px solid; border-top:{{Vgbordercolor|{{Vgcode|{{{game1}}} }} }} 1px solid;border-bottom:{{Vgbordercolor|{{Vgcode|{{{game1}}} }} }} 1px solid; background:{{Vgsecondaryheadercolor|{{Vgcode|{{{game1}}} }} }}; color:black; vertical-align:top; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius:5px; background-position:-40px -15px;">
<div style="width:260px;float:right;clear:right;margin-left:5px;margin-right:0px;margin-top:0px;margin-bottom:0px; border-right: {{Vgbordercolor|{{Vgcode|{{{game1}}} }} }} 1px solid;border-left:{{Vgbordercolor|{{Vgcode|{{{game1}}} }} }} 1px solid; border-top:{{Vgbordercolor|{{Vgcode|{{{game1}}} }} }} 1px solid;border-bottom:{{Vgbordercolor|{{Vgcode|{{{game1}}} }} }} 1px solid; background:{{Vgsecondaryheadercolor|{{Vgcode|{{{game1}}} }} }}; color:black; vertical-align:top; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius:5px; background-position:-40px -15px;">
{| cellspacing="1.5" <div style="float:right;background:#99bbff;color:black;">
{| cellspacing="1.5" <div style="float:right;background:#99bbff;color:black;">
Line 6: Line 7:
{{#ifeq: {{#expr: {{#if:{{{name|<noinclude>-</noinclude>}}}|1|0}} }} | 1 |
{{#ifeq: {{#expr: {{#if:{{{name|<noinclude>-</noinclude>}}}|1|0}} }} | 1 |
{{!}} align="center" colspan="2" bgcolor="{{Vgmainheadercolor|{{Vgcode|{{{game1}}} }} }}" style="font-size:110%; padding:1px; color:#FFFFFF;" {{!}} '''{{{name|{{PAGENAME}}}}}'''
{{!}} align="center" colspan="2" bgcolor="{{Vgmainheadercolor|{{Vgcode|{{{game1}}} }} }}" style="font-size:110%; padding:1px; color:#FFFFFF;" {{!}} '''{{{name|{{PAGENAME}}}}}'''
<includeonly>{{#ifeq:{{NAMESPACE}}| |[[Category:Sims]]|<!--Not in Main: namespace-->}}{{#ifeq:{{NAMESPACE}}|Fanon|[[Category:Sims (fanon)]]|<!--Not in Main: namespace-->}}</includeonly>
{{!}}-
{{!}}-
}}
}}
{{#if:{{{game1<includeonly>|</includeonly>}}} |
{{#if:{{{game1<includeonly>|</includeonly>}}} |
{{!}} colspan="2" style="float:center; text-align:center" {{!}}<small><center>{{GetGameImage|{{{game1}}}}}</center></small>
{{!}} colspan="2" style="float:center; text-align:center" {{!}}<small><center>{{GetGameImage|{{{game1}}}|{{{name|}}}}}</center></small>
{{!}}-
{{!}}-
}}
}}
Line 18: Line 18:
}}
}}
{{#if:{{{caption<includeonly>|</includeonly>}}} |
{{#if:{{{caption<includeonly>|</includeonly>}}} |
{{!}} colspan="2" style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid; text-align:center"{{!}}<small><font color="{{Vgmainheadercolor|{{Vgcode|{{{game1}}} }} }}">{{{caption}}}</font></small>
{{!}} colspan="2" style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid; text-align:center"{{!}}<small><font color="{{Vgmainheadercolor|{{Vgcode|{{{game1}}} }} }}">''{{{caption}}}''</font></small>
{{!}}-
{{!}}-
}}
}}
Line 28: Line 28:
{{#if:{{{game1<includeonly>|</includeonly>}}} |
{{#if:{{{game1<includeonly>|</includeonly>}}} |
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game1}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Game(s)'''
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game1}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Game(s)'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid;" {{!}}{{#if:{{{game1|}}}|{{GetGenderImage|{{{sex}}} }} }}{{{game1}}}{{#if:{{{game2<includeonly>|</includeonly>}}}|, {{{game2}}} }}
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid;" {{!}}{{#if:{{{game1|}}}|{{GetGameIcon|{{{game1}}}|{{{name}}} }} }} [[{{{game1}}}]]{{#if:{{{game2<includeonly>|</includeonly>}}}|, {{{game2}}} }}
{{!}}-
}}
{{#if:{{{cost<includeonly>|</includeonly>}}} |
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game1}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Cost <br/>{{#if:{{{override|}}}| |<small><small>(in [[The Sims 3 Store#SimPoints|SimPoints]])</small></small>}}'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid;" {{!}}{{#if:{{{cost<includeonly>|</includeonly>}}}|{{{cost}}} }}
{{!}}-
{{!}}-
}}
}}
Line 35: Line 40:
|-
|-
{{!}}-
{{!}}-
{{!}} align="center" colspan="2" bgcolor="{{Vgsecondaryheadercolor|{{Vgcode|{{{game1}}} }} }}" style="font-size:110%; padding:1px; color:{{Vgsecondaryfontcolor|{{Vgcode|{{{game1}}} }} }};" {{!}} <includeonly>{{Checkmns|</includeonly>'''{{#ifexist:{{FULLPAGENAME}}/Onomatology|[[{{PAGENAME}}/Onomatology{{!}}Onomatology]]|<span class="red-link">[{{fullurl:{{FULLPAGENAME}}/Onomatology|action=edit&preload=Template:Onomatology/preload}} Create 'Onomatology' page]</span>}}'''<br>{{#ifexist:{{FULLPAGENAME}}/Player stories|'''[[{{PAGENAME}}/Player stories{{!}}Player stories]]'''|<span class="red-link">'''[{{fullurl:{{FULLPAGENAME}}/Player stories|action=edit&preload=Template:Player_Stories/preload}} Create 'Player stories' page]'''</span>}}<includeonly>}}</includeonly>
{{!}} align="center" colspan="2" bgcolor="{{Vgsecondaryheadercolor|{{Vgcode|{{{game1}}} }} }}" style="font-size:110%; padding:1px; color:{{Vgsecondaryfontcolor|{{Vgcode|{{{game1}}} }} }};" {{!}} <includeonly>{{Checkmns|</includeonly>{{#ifexist:{{FULLPAGENAME}}/Onomatology|'''[[{{PAGENAME}}/Onomatology{{!}}Onomatology]]'''}}<includeonly>}}</includeonly>
{{!}}-
{{!}}-
|}
|}
Line 50: Line 55:
</div>
</div>
|}
|}
</div>{{#switch:{{Checkgame|{{{name}}}}}
</div><noinclude>
|The Sims 3

|The Sims 4
==Usage==
|The Sims Medieval=<includeonly><!--TRACKING CATEGORY-->{{#if:{{{game1|}}}|{{#if:{{{game2|}}}|[[Category:Neighborhoods appearing in more than one game]]}}}}<!--END TRACKING-->{{Checkmns|[[Category:Worlds in {{Checkgame|{{{name}}}}}]]}}{{Checkfns|[[Category:Worlds in {{Checkgame|{{{name}}}}} (fanon)]]}}</includeonly>
<pre>
|#default=<includeonly>{{Checkmns|[[Category:Neighborhoods in {{Checkgame|{{{name}}}}}]]}}{{Checkfns|[[Category:Neighborhoods in {{Checkgame|{{{name}}}}} (fanon)]]}}<!--TRACKING CATEGORY-->{{#if:{{{game1|}}}|{{#if:{{{game2|}}}|[[Category:Neighborhoods appearing in more than one game]]}}}}<!--END TRACKING--></includeonly>
{{NeighborhoodInfobox
|name =
|image =
|caption =
|games =
|theories =
}}
}}
<noinclude>{{clr}}{{Documentation}}</noinclude>
</pre>

==Parameters==
===Required===
*'''name''': Name of the neighborhood.
===Optional===
*'''image''': <nowiki>[[File:Example.jpg|width]]</nowiki> The image should be no larger than 256px wide. The width may be left out if it is smaller than that.
*'''caption''': Caption for the image.
*'''games''': Games this neighborhood is featured in.
* '''theories''' - The display name of a special subpage. Ex. ''What happened to Bella Goth?'', ''Who is Mrs. Crumplebottom?''

[[Category:Infobox templates|{{PAGENAME}}]][[Category:Neighborhood templates|Infobox]]</noinclude>

Latest revision as of 15:43, 10 March 2019

Information
This template is currently being phased out in favor of {{Infobox neighborhood}} and {{Infobox world}}. Please use those templates instead.
Neighborhood
link={{{game1}}}
{{{image}}}
{{{caption}}}
Name {{{name}}}
Game(s) [[{{{game1}}}]], {{{game2}}}
Cost
(in SimPoints)
{{{cost}}}
{{{theories}}}
Write a Review!
Template documentation (View · Edit · History · Purge)
Usage
{{NeighborhoodInfobox
|name    = 
|image   = 
|caption = 
|game1   = 
}}
Parameters

Required

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

Optional

  • game2: Other games this neighborhood is featured in.
  • cost: The cost of downloadable world, specifically from The Sims 3 Store. This parameter gives the price in SimPoints; if the price is not in SimPoints, use...
    • override: If this parameter is filled in with any text, the "in SimPoints" text below 'Cost' on the template will be removed. Note that in these cases, the currency should be stated in the cost.
  • theories - The display name of a special subpage. Ex. What happened to Bella Goth?, Who is Mrs. Crumplebottom?

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