Template:Infobox neighborhood: Difference between revisions
sims>LostInRiverview (Beginning the migration) |
sims>LostInRiverview No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>{{under construction}} |
|||
<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;"> |
|||
{{Metabox |
|||
{| cellspacing="1.5" <div style="float:right;background:#99bbff;color:black;"> |
|||
|type = Notice |
|||
| |
|||
|image = Icon-warning-48x48.png |
|||
{| cellpadding="3" cellspacing="0" style="float:center; width:255px; font-size: 90%; background-color: #ffffff; text-align: left" |
|||
|headline = NOT A "LIVE" TEMPLATE |
|||
|- |
|||
|text = This template is still being worked on and tested. ''Please do not use this template on any articles!'' |
|||
{{#ifeq: {{#expr: {{#if:{{{name|<noinclude>-</noinclude>}}}|1|0}} }} | 1 | |
|||
|nocat = true |
|||
{{!}} align="center" colspan="2" bgcolor="{{Vgmainheadercolor|{{Vgcode|{{{game1}}} }} }}" style="font-size:110%; padding:1px; color:#FFFFFF;" {{!}} '''{{{name|{{PAGENAME}}}}}''' |
|||
⚫ | |||
}} |
}} |
||
</noinclude> |
|||
⚫ | |||
<!---*****OVERALL DESIGN CODE*****---> |
|||
{{!}} colspan="2" style="float:center; text-align:center" {{!}}<small><center>{{GetGameImage|{{{game1}}}|{{{name|}}}}}</center></small> |
|||
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" cellpadding="1.5" |
|||
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}} |
|||
{{!}}- |
{{!}}- |
||
<!---*****BOX ART AND CAPTION*****---> |
|||
}} |
|||
{{#if:{{{image<includeonly>|</includeonly>}}} | |
{{#if:{{{image<includeonly>|</includeonly>}}} | |
||
{{!}} class="metainfobox-image" colspan="2" {{!}} {{{image}}} |
|||
{{!}} colspan="2" style="float:center; border-top:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid; text-align:center" {{!}}{{{image}}} |
|||
{{!}}- |
{{!}}- |
||
⚫ | |||
}} |
|||
{{!}} class="metainfobox-caption" colspan="2" {{!}} {{{caption}}} |
|||
{{#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> |
|||
{{!}}- |
{{!}}- |
||
}} |
|||
{{#if:{{{name<includeonly>|</includeonly>}}} | |
{{#if:{{{name<includeonly>|</includeonly>}}} | |
||
{{!}} Name |
|||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game1}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Name''' |
|||
{{!}} {{{Name|{{PAGENAME}}}}} |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid;" {{!}}{{{name}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{ |
{{#if: {{{game</includeonly>|</includeonly>}}} | |
||
{{!}} Game |
|||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game1}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Game(s)''' |
|||
{{!}} {{GetGameIcon|{{{game}}}}}[[{{{game}}}]] |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid;" {{!}}{{#if:{{{game1|}}}|{{GetGameIcon|{{{game1}}}|{{{name}}} }} }} [[{{{game1}}}]]{{#if:{{{game2<includeonly>|</includeonly>}}}|, {{{game2}}} }} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#ifeq: {{#expr: <noinclude>1 or </noinclude> {{#ifexist: {{FULLPAGENAME}}/Onomatology|1|0}} or {{checkfns|1|0}} | 1 | {{!}} class="metainfobox-header line {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" |
|||
{{#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>}}''' |
|||
{{#ifexist: {{FULLPAGENAME}}/Onomatology | |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game1}}} }} }} 1px solid;" {{!}}{{#if:{{{cost<includeonly>|</includeonly>}}}|{{{cost}}} }} |
|||
{{!}} colspan="2" {{!}} [[{{FULLPAGENAME}}/Onomatology|Onomatology]] |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{checkfns | |
|||
|} |
|||
{{!}} colspan="2" {{!}} [[{{FULLPAGENAME}}#WikiaArticleComments|Comments and Reviews]] |
|||
{| 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>{{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> |
|||
{{!}}- |
{{!}}- |
||
|} |
|||
</div> |
|||
|} |
|||
</div>{{#switch:{{Checkgame|{{{name}}}}} |
|||
|The Sims 3 |
|||
|The Sims 4 |
|||
⚫ | | |
||
|#default=<includeonly>{{Checkmns|[[Category:Neighborhoods in {{Checkgame|{{{name}}}}}]]}}{{Checkfns|[[Category:Neighborhoods in {{Checkgame|{{{name}}}}} (fanon)]]}}</includeonly> |
|||
}} |
}} |
||
⚫ | |||
<noinclude>{{Documentation}}</noinclude> |
<noinclude>{{Documentation}}</noinclude> |
Revision as of 16:26, 31 January 2018
Infobox neighborhood | |
---|---|
{{{image}}} | |
{{{caption}}} | |
Name | Infobox neighborhood |
Game | [[{{{game}}}]] |
Description
Infobox for neighborhoods. For worlds, use {{Infobox world}}.
Syntax
{{Infobox neighborhood |name = |image = |caption = |world = |game = }}
Parameters
- name: Name of the neighborhood.
- image: [[File:Example.jpg|250px]] The image should be 250px or smaller.
- caption: Caption for the image.
- world: The world this neighborhood is located in.
- game: The main game this neighborhood is featured in.
TemplateData
TemplateData for Infobox neighborhood
Infobox for neighborhoods, like Pleasantview and Strangetown. For worlds, use {{Infobox world}}.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | The name of the neighborhood. If left blank, will default to the name of the page.
| String | optional |
Image | image | An image of the neighborhood, usually an in-game thumbnail or an overhead shot. Requires full wiki markup.
| Content | optional |
Game | game | The game the neighborhood appears in.
| String | suggested |
Base Game | basegame | Causes the template to be styled after the specified base game theme (e.g. red for TS1, dark blue for TS2, green for TS3). This should only be used if the "game" parameter is used in an unusual format (e.g. listing multiple games at once) that causes the template to display its default gray scheme.
| String | optional |
Caption | caption | Caption to be displayed under the image. This is usually used for the neighborhood description. | String | optional |
World | world | If the neighborhood is located within a larger world, as is the case with The Sims 4, specify the name of the world here.
| String | optional |
Categorize? | cat | If set to "no", the template will not add categories to the page. Defaults to "yes" if left blank. Used for testing and demonstration purposes only. | String | optional |