Template:Neighborhood: Difference between revisions

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))
sims>Random Ranaun
No edit summary
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)))
 
(43 intermediate revisions by 10 users not shown)
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>
{| style="margin-left:5px; float:right; width:264px; font-size:94%; text-align:left; border:1px solid #007FFF; background-color: #FFFFFF; -moz-border-radius:10px;" cellpadding="0"
<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;">
! colspan="2" style="font-size:110%; text-align:center;" | ''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}''
{| cellspacing="1.5" <div style="float:right;background:#99bbff;color:black;">
|-
{| cellpadding="3" cellspacing="0" style="float:center; width:255px; font-size: 90%; background-color: #ffffff; text-align: left"
|-
{{#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}}}}}'''
{{!}}-
}}
{{#if:{{{gamesgame1<includeonly>|</includeonly>}}} |
{{!}} colspan="2" style="font-sizefloat:110%center; text-align:center;" | ''{{#if:!}}<small><center>{{{name|}}}GetGameImage|{{{namegame1}}}|{{PAGENAME{name|}}}}''}</center></small>
{{!}}-
}}
{{#if:{{{image<includeonly>|</includeonly>}}} |
{{!}} colspan="2" style="text-alignfloat:center;" border-top:{{!}} Vglinecolor|{{Vgcode|{image{{game1}}}<br /><span}} style="font}} 1px solid; text-sizealign:80%;center"> {{!}}{caption|{{PAGENAME}}image}}}</span>
{{!}}-
}}
{{#if:{{{caption<includeonly>{{Checkmns|</includeonly>}}} |
{{!}} style="text-align:left;" {{!}} '''Name'''
{{!}} colspan="2" style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid; text-align:center"{{!}}<small><font color="{{Vgmainheadercolor|{{Vgcode|{{{game1}}} }} }}">''{{{caption}}}''</font></small>
| {{{name|{{PAGENAME}}}}}
|-
{{#if:{{{games<includeonly>|</includeonly>}}} |
{{!}} style="text-align:left;" {{!}} '''Game(s)'''
{{!}}{{{games}}}
{{!}}-
}}
{{#if:{{{name<includeonly>|</includeonly>}}} |
! colspan="2" style="text-align:center;" |
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game1}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Name'''
<includeonly>{{Checkmns|</includeonly>
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid;" {{!}}{{{name}}}
----
{{!}}-
{{#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>}}'''<br>{{#if: {{{theories<includeonly>|</includeonly>}}} | <p>'''{{#ifexist:{{FULLPAGENAME}}/theories|[[{{PAGENAME}}/theories{{!}}{{{theories}}}]]|<span class="red-link">[{{fullurl:{{FULLPAGENAME}}/theories|action=edit&preload=Template:Theories/preload}} Create 'Theories' page]</span>}}'''</p>}}<includeonly>{{Checkfns|</includeonly>
{{#if:{{{game1<includeonly>|</includeonly>}}} |
----
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game1}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Game(s)'''
'''[[{{FULLPAGENAME}}#WikiaArticleComments|Write a review!]]'''<includeonly>}}</includeonly>
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid;" {{!}}{{#if:{{{game1|}}}|{{GetGameIcon|{{{game1}}}|{{{name}}} }} }} [[{{{game1}}}]]{{#if:{{{game2<includeonly>|</includeonly>}}}|, {{{game2}}} }}
|}<includeonly>[[Category:Neighborhoods]]</includeonly><noinclude>
{{!}}-
 
}}
==Usage==
{{#if:{{{cost<includeonly>|</includeonly>}}} |
<pre>
{{!}} 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>}}'''
{{NeighborhoodInfobox
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid;" {{!}}{{#if:{{{cost<includeonly>|</includeonly>}}}|{{{cost}}} }}
|name =
{{!}}-
|image =
}}
|caption =
|}
|games =
{| cellpadding="3" cellspacing="0" style="float:center; width:255px; font-size: 90%; background-color: #ffffff; text-align: left"
|theories =
|-
{{!}}-
{{!}} 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>
{{!}}-
|}
{| cellpadding="3" cellspacing="0" style="float:center; width:255px; font-size: 90%; background-color: #ffffff; text-align: left"
|-
{{!}} align="center" colspan="2" bgcolor="{{Vgsecondaryheadercolor|{{Vgcode|{{{game1}}} }} }}" style="font-size:110%; padding:1px; color:{{Vgsecondaryfontcolor|{{Vgcode|{{{game1}}} }} }};" {{!}} {{#if: {{{theories<includeonly>|</includeonly>}}} | '''[[{{PAGENAME}}/theories|{{{theories}}}]]'''}}
{{!}}-
|}
{| cellpadding="3" cellspacing="0" style="float:center; width:255px; font-size: 90%; background-color: #ffffff; text-align: left"
|-
{{!}} align="center" colspan="2" bgcolor="{{Vgsecondaryheadercolor|{{Vgcode|{{{game1}}} }} }}" style="font-size:110%; padding:1px; color:{{Vgsecondaryfontcolor|{{Vgcode|{{{game1}}} }} }};" {{!}} <includeonly>{{Checkfns|</includeonly>'''[[{{FULLPAGENAME}}#WikiaArticleComments|Write a Review!]]'''<includeonly>}}</includeonly>
{{!}}-
|}
</prediv>
|}
</div>{{#switch:{{Checkgame|{{{name}}}}}
|The Sims 3
|The Sims 4
|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>
|#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>
}}
<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>