Template:Object: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>Chrisyu357 (New page: <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;"> <p style="margin:0...) |
SimDestroyer (talk | contribs) 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))) |
||
(62 intermediate revisions by 14 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> |
|||
| |
|||
---- |
|||
{| cellpadding="3" cellspacing="0" style="float:center; width:255px; font-size: 90%; background-color: #ffffff; text-align: left" |
|||
<p style="margin:0 0 0 3%;text-align:left;font-size:94%"> |
|||
|- |
|||
'''Game(s)''': {{{game}}}<br> |
|||
{{#ifeq: {{#expr: {{#if:{{{name|<noinclude>-</noinclude>}}}|1|0}} }} | 1 | |
|||
'''Buyablility''': {{{buy}}}<br> |
|||
{{!}} align="center" colspan="2" bgcolor="{{Vgmainheadercolor|{{Vgcode|{{{game}}} }} }}" style="font-size:110%; padding:1px; color:#FFFFFF;" {{!}} '''{{{name|{{PAGENAME}}}}}''' |
|||
⚫ | |||
{{!}}- |
|||
'''Type''': {{{platform}}}<br> |
|||
}} |
|||
⚫ | |||
{{#if:{{{image<includeonly>|</includeonly>}}} | |
|||
{{!}} colspan="2" style="float:center; border-top:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; text-align:center" {{!}}{{{image}}} |
|||
<noinclude> |
|||
{{!}}- |
|||
[[Category:Templates]] |
|||
}} |
|||
{{#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}}} }} |
|||
{{!}}- |
|||
}} |
|||
⚫ | |||
{{!}} 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''' |
|||
⚫ | |||
{{!}} 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> |
|||
<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}}}}} |
|||
|<!-- Not in Main namespace -->}}}}}}</includeonly><noinclude> |
|||
{{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.
|
- 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
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:Object/doc to edit this text! (How does this work?) (Refresh this text - why?)