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
(took {{{des}}} out by request)
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)))
 
(53 intermediate revisions by 11 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:250px;float:right;clear:right;margin:1em 0 1em 1em;border:1px solid #007FFF;background:#FFFFFF;-moz-border-radius:10px;padding:10px 10px 10px 10px;">
<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;">
<p style="margin:0 0 0 3%;text-align:center;font-size:94%">
{| cellspacing="1.5" <div style="float:right;background:#99bbff;color:black;">
'''''{{{name}}}''''' <br> {{{image}}}</p>
|
<p style="margin:0 0 0 3%;text-align:left;font-size:94%">
{| cellpadding="3" cellspacing="0" style="float:center; width:255px; font-size: 90%; background-color: #ffffff; text-align: left"
'''Game(s)''': {{{game}}}<br>
|-
'''Buyablility''': {{{buy}}}<br>
{{#ifeq: {{#expr: {{#if:{{{name|<noinclude>-</noinclude>}}}|1|0}} }} | 1 |
'''Price''': {{{price}}}<br>
{{!}} align="center" colspan="2" bgcolor="{{Vgmainheadercolor|{{Vgcode|{{{game}}} }} }}" style="font-size:110%; padding:1px; color:#FFFFFF;" {{!}} '''{{{name|{{PAGENAME}}}}}'''
'''Type''': {{{type}}}<br>
{{!}}-
'''Size''': {{{size}}}<br></p>
}}
{{#if:{{{image<includeonly>|</includeonly>}}} |
{{!}} colspan="2" style="float:center; border-top:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; text-align:center" {{!}}{{{image}}}
{{!}}-
}}
{{#if:{{{desc<includeonly>|</includeonly>}}} |
{{!}} colspan="2" style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; text-align:center"{{!}}<small><font color="{{Vgmainheadercolor|{{Vgcode|{{{game}}} }} }}">''{{{desc}}}''</font></small>
{{!}}-
}}
{{#if:{{{game<includeonly>|</includeonly>}}} |
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Game'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{#ifexist:{{{game}}}|''[[{{{game}}}]]''|{{{game}}} }}
{{!}}-
}}
{{#if:{{{buy<includeonly>|</includeonly>}}} |
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Buyable'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{{buy}}}
{{!}}-
}}
{{#if:{{{price<includeonly>|</includeonly>}}} |
{{!}} 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}}}
{{!}}-
}}
{{#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}}}
{{!}}-
}}
{{#ifeq: {{#expr: {{#if:{{{type|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{type1|}}}|1|0}} }} | 1 |
{{!}} 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;" {{!}}{{
#if: {{{type<includeonly>|</includeonly>}}} |
{{{type}}}
}}{{
#if: {{{type1<includeonly>|</includeonly>}}} |
{{{type1}}}{{#if: {{{type2<includeonly>|</includeonly>}}} |, {{{type2}}}}}{{#if: {{{type3<includeonly>|</includeonly>}}} |, {{{type3}}}}}{{#if: {{{type4<includeonly>|</includeonly>}}} |, {{{type4}}}}}{{#if: {{{type5<includeonly>|</includeonly>}}} |, {{{type5}}}}}
}}
{{!}}-
}}
{{#if:{{{size<includeonly>|</includeonly>}}} |
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Size'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{{size}}}
{{!}}-
}}
{{#if:{{{uses<includeonly>|</includeonly>}}} |
{{!}} 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}}}
{{!}}-
}}
{{#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}}}
{{!}}-
}}
|}
</div>
</div>
|}

</div>

<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]]
<noinclude>
{{GetObjectCats|game|{{{game}}}}}{{GetObjectCats|type|{{{type}}}}}{{GetObjectCats|type|{{{type1}}}}}{{GetObjectCats|type|{{{type2}}}}}{{GetObjectCats|type|{{{type3}}}}}{{GetObjectCats|type|{{{type4}}}}}{{GetObjectCats|type|{{{type5}}}}}{{GetObjectCats|buy|{{{buy}}}}}
==Using this Template==
|<!-- Not in Main namespace -->}}}}}}</includeonly><noinclude>
Copy and Paste the information below into an Object's page and then replace the information in brackets with the information of the object.
{{clr}}{{Documentation}}

<nowiki>{{sim|</nowiki> <br>
<nowiki>|name = {{{name}}}</nowiki><br>
<nowiki>|image = {{{image}}}</nowiki><br>
<nowiki>|game = {{{game}}}</nowiki><br>
<nowiki>|buy = {{{buy}}}</nowiki><br>
<nowiki>|price = {{{price}}}</nowiki><br>
<nowiki>|type = {{{type}}}</nowiki><br>
<nowiki>|size = {{{size}}}</nowiki><br>
<nowiki>}}</nowiki>

*Types:
**Skills (for skills increasing objects)
**Needs (for needs increasing objects)
**Money (for money-making objects)
**Others
*Buyability
**Yes
**Limited (rewards/unlockable)
**No (NPC object/scenario objects)

<noinclude>
[[Category:Templates]]
</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?)