Template:Object: 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
mNo edit summary
m (Protected "Template:Object" ([Edit=Allow only autoconfirmed and confirmed users] (indefinite) [Move=Allow only administrators and content moderators] (indefinite) [Delete=Allow only administrators and content moderators] (indefinite)))
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude>{{Info||This template is currently being phased out in favor of {{tl|Infobox object}}. Please use that template instead.}}</noinclude>
<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;">
<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;">
{| cellspacing="1.5" <div style="float:right;background:#99bbff;color:black;">
{| cellspacing="1.5" <div style="float:right;background:#99bbff;color:black;">
Line 27: Line 28:
}}
}}
{{#if:{{{price<includeonly>|</includeonly>}}} |
{{#if:{{{price<includeonly>|</includeonly>}}} |
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Price'''
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}{{#switch: {{{buy}}}
|Built
|Invented
|Crafted ='''Price to craft'''
|'''Price'''}}
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{{price}}}
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{{price}}}
{{!}}-
}}
{{#if:{{{sell<includeonly>|</includeonly>}}} |
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Selling price'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{{sell}}}
{{!}}-
{{!}}-
}}
}}
Line 50: Line 60:
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Uses'''
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Uses'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{{uses}}}
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{{uses}}}
{{!}}-
}}
{{#if:{{{badge<includeonly>|</includeonly>}}} |
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}<small>'''Badge required to craft'''</small>
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{{badge}}}
{{!}}-
{{!}}-
}}
}}
Line 56: Line 71:
|}
|}
</div>
</div>
<includeonly>{{#ifeq: {{lc:{{{cat}}}}}|n| |{{#ifeq: {{lc:{{{cat}}}}}|no| |{{#ifeq:{{NAMESPACE}}| |[[Category:Objects]]
<includeonly><!--TRACKING CATEGORT-->{{#if:{{{type|}}}|[[Category:Object template uses type parameter]]}}<!--END TRACKING--->{{#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}}}}}
|<!-- Not in Main namespace -->}}}}}}</includeonly><noinclude>
|<!-- Not in Main namespace -->}}}}}}</includeonly><noinclude>
{{Documentation}}
{{clr}}{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 15:43, 10 March 2019

Information
This template is currently being phased out in favor of {{Infobox object}}. Please use that template instead.
Object
{{{image}}}
{{{desc}}}
Game {{{game}}}
Buyable {{{buy}}}
Price {{{price}}}
Selling price {{{sell}}}
Type {{{type}}}{{{type1}}}, {{{type2}}}, {{{type3}}}, {{{type4}}}, {{{type5}}}
Size {{{size}}}
Uses {{{uses}}}
Badge required to craft {{{badge}}}
Template documentation (View · Edit · History · Purge)
Description
Infobox for objects. Uses {{GetObjectCats}}.
Syntax
{{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.

{{object
|name       = 
|desc       = 
|image      = 
|game       = 
|buy        = 
|price      = 
|type1      = 
|type2      = 
|type3      = 
|type4      = 
|type5      = 
|size       = 
|uses       = 
}}
  • Types:
    • Use type or type1...type5
    • Skill, needs, money, toy, crafting, decorative, appliance, aspiration reward, career reward, electronics, food, vehicle, special, others, etc. A complete list is at {{GetObjectCats}}.
  • 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:Object/doc to edit this text! (How does this work?) (Refresh this text - why?)