Template:Infobox object: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>LostInRiverview (Starting with original code from Template:Object - http://sims.wikia.com/wiki/Template:Object?oldid=704790) |
sims>LostInRiverview No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>{{under construction}} |
|||
<div style="width: 260px; font-size:94%; float:right; margin-left: 5px; margin-right: 0px; margin-top: 0px; margin-bottom: 0px; border-right: {{Vgbordercolor|{{Vgcode|{{{game}}} }} }} 1px solid; border-left: {{Vgbordercolor|{{Vgcode|{{{game}}} }} }} 1px solid; border-top: {{Vgbordercolor|{{Vgcode|{{{game}}} }} }} 1px solid; border-bottom: {{Vgbordercolor|{{Vgcode|{{{game}}} }} }} 1px solid; background: {{Vgsecondaryheadercolor|{{Vgcode|{{{game}}} }} }}; 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|{{{game}}} }} }}" style="font-size:110%; padding:1px; color:#FFFFFF;" {{!}} '''{{{name|{{PAGENAME}}}}}''' |
|||
⚫ | |||
}} |
}} |
||
</noinclude> |
|||
<!---*****OVERALL DESIGN CODE*****---> |
|||
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{#if:{{{game|}}}|{{{game<includeonly>|</includeonly>}}}|{{{basegame}}} }} }} }} }}" cellpadding="1.5" |
|||
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{game|}}}|{{{game<includeonly>|</includeonly>}}}|{{{basegame}}} }} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}} |
|||
⚫ | |||
{{#if:{{{image<includeonly>|</includeonly>}}} | |
{{#if:{{{image<includeonly>|</includeonly>}}} | |
||
{{!}} class="metainfobox-image" colspan="2" {{!}} {{{image}}} |
|||
{{!}} colspan="2" style="float:center; border-top:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; text-align:center" {{!}}{{{image}}} |
|||
{{!}}- |
|||
⚫ | |||
{{!}} class="metainfobox-caption" colspan="2" {{!}} {{{caption}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
<!---LEGACY CODE FOR "desc" PARAMETER---> |
|||
⚫ | |||
{{#if: {{{desc|}}} | |
|||
{{!}} colspan="2" style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; text-align:center"{{!}}<small><font color="{{Vgmainheadercolor|{{Vgcode|{{{game}}} }} }}">''{{{desc}}}''</font></small> |
|||
{{!}} class="metainfobox-caption" colspan="2" {{!}} {{{desc}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
⚫ | |||
{{#if:{{{game<includeonly>|</includeonly>}}} | |
{{#if: {{{game<includeonly>|</includeonly>}}} | |
||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Game''' |
|||
{{!}} Game |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{#ifexist:{{{game}}}|''[[{{{game}}}]]''|{{{game}}} }} |
|||
{{!}} {{GetGameIcon|{{{game}}}}} [[{{{game}}}]] |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{buy<includeonly>|</includeonly>}}} | |
{{#if: {{{buy<includeonly>|</includeonly>}}} | |
||
{{!}} Buyability |
|||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Buyable''' |
|||
{{!}} {{{buy}}} |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{{buy}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{price<includeonly>|</includeonly>}}} | |
{{#if: {{{price<includeonly>|</includeonly>}}} | |
||
{{!}} {{#switch: {{lc:{{{buy}}} }} |
|||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}{{#switch: {{{buy}}} |
|||
|built |
|||
|Built |
|||
|invented |
|||
|Invented |
|||
| |
|crafted = Price to craft |
||
| |
|Price in game}} |
||
{{!}} {{{price}}} |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{{price}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{sell<includeonly>|</includeonly>}}} | |
{{#if: {{{sell<includeonly>|</includeonly>}}} | |
||
{{!}} Selling price |
|||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Selling price''' |
|||
{{!}} {{{sell}}} |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{{sell}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{# |
{{#if: {{{type<includeonly>|</includeonly>}}} | |
||
⚫ | {{!}} rowspan="{{#expr: 1+{{#if:{{{type1<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{type2<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{type3<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{type4<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{type5<includeonly>|</includeonly>}}}|1|0}} }}" {{!}} Type |
||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Type''' |
|||
⚫ | |||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{ |
|||
{{!}}- |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}} |
}} |
||
⚫ | |||
{{!}} {{{type1}}} |
|||
{{!}}- |
|||
⚫ | |||
⚫ | |||
{{!}} {{{type2}}} |
|||
{{!}}- |
|||
}} |
|||
{{#if:{{{type3<includeonly>|</includeonly>}}} | |
|||
{{!}} {{{type3}}} |
|||
{{!}}- |
|||
}} |
|||
{{#if:{{{type4<includeonly>|</includeonly>}}} | |
|||
{{!}} {{{type4}}} |
|||
{{!}}- |
|||
}} |
|||
{{#if:{{{type5<includeonly>|</includeonly>}}} | |
|||
{{!}} {{{type5}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{size<includeonly>|</includeonly>}}} | |
{{#if:{{{size<includeonly>|</includeonly>}}} | |
||
{{!}} Size |
|||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Size''' |
|||
{{!}} {{{size}}} |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{{size}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{uses<includeonly>|</includeonly>}}} | |
{{#if:{{{uses<includeonly>|</includeonly>}}} | |
||
{{!}} Number of uses |
|||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Uses''' |
|||
{{!}} {{{uses}}} |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{{uses}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{badge<includeonly>|</includeonly>}}} | |
{{#if:{{{badge<includeonly>|</includeonly>}}} | |
||
{{!}} [[Talent badge|Badge required]] |
|||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}<small>'''Badge required to craft'''</small> |
|||
{{!}} {{#if:{{{badgelevel|}}}|[[File:{{{badge}}} {{lc: {{{badgelevel}}}}}.png|25px|link={{{badge}}}]] [[{{{badge}}} {{{badgelevel}}}]]|{{{badge}}} }} |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{{badge}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
|} |
|} |
||
</div> |
|||
⚫ | |||
</div> |
|||
<includeonly>{{#ifeq: {{lc:{{{cat}}}}}|n| |{{#ifeq: {{lc:{{{cat}}}}}|no| |{{#ifeq:{{NAMESPACE}}| |[[Category:Objects]] |
<includeonly>{{#ifeq: {{lc:{{{cat}}}}}|n| |{{#ifeq: {{lc:{{{cat}}}}}|no| |{{#ifeq:{{NAMESPACE}}| |[[Category:Objects]] |
||
{{GetObjectCats|game|{{{game}}}}}{{GetObjectCats|type|{{{type}}}}}{{GetObjectCats|type|{{{type1}}}}}{{GetObjectCats|type|{{{type2}}}}}{{GetObjectCats|type|{{{type3}}}}}{{GetObjectCats|type|{{{type4}}}}}{{GetObjectCats|type|{{{type5}}}}}{{GetObjectCats|buy|{{{buy}}}}} |
{{GetObjectCats|game|{{{game}}}}}{{GetObjectCats|type|{{{type}}}}}{{GetObjectCats|type|{{{type1}}}}}{{GetObjectCats|type|{{{type2}}}}}{{GetObjectCats|type|{{{type3}}}}}{{GetObjectCats|type|{{{type4}}}}}{{GetObjectCats|type|{{{type5}}}}}{{GetObjectCats|buy|{{{buy}}}}} |
Revision as of 02:00, 2 February 2018
NOT A "LIVE" TEMPLATE
This template is still being worked on and tested. Please do not use this template on any articles!
Infobox object | |
---|---|
{{{image}}} | |
{{{caption}}} | |
Game | [[{{{game}}}]] |
Buyability | {{{buy}}} |
Price in game | {{{price}}} |
Selling price | {{{sell}}} |
Type | {{{type}}} |
{{{type1}}} | |
{{{type2}}} | |
{{{type3}}} | |
{{{type4}}} | |
{{{type5}}} | |
Size | {{{size}}} |
Number of uses | {{{uses}}} |
Badge required | {{{badge}}} |
Description
Infobox for objects. Uses {{GetObjectCats}}.
Syntax
{{Infobox object|<...>}}
Copy and paste the information below into an Object's page and then add the information after the "=" with the information of the object.
{{Infobox object |name = |desc = |image = |game = |buy = |price = |type1 = |type2 = |type3 = |type4 = |type5 = |size = |uses = }}
- Types:
- Use
type
ortype1...type5
- Skill, needs, money, toy, crafting, decorative, appliance, aspiration reward, career reward, electronics, food, vehicle, special, others, etc. A complete list is at {{GetObjectCats}}.
- Use
- Buyability
- Buy mode (for objects available in Buy mode), Build mode (for objects available in Build mode), Community lot (for objects bought on community lots)
- Limited (rewards/unlockable)
- No (NPC object/scenario objects)
- Uses
- Use for objects which have a limited number of uses, or can only be used for a limited amount of time.
Visit Template:Infobox object/doc to edit this text! (How does this work?) (Refresh this text - why?)