Template:Object: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>Dharden (Attempt to add "uses" field.) |
sims>LostInRiverview No edit summary |
||
Line 1: | Line 1: | ||
<div style="width: 260px; float: right; clear: 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;"> |
|||
{| style="margin-left:5px; float:right; width:264px; font-size:94%; text-align:left; border:1px solid #007FFF; -moz-border-radius:10px; -webkit-border-radius:10px; background-color: #FFFFFF;" cellpadding="0" |
|||
{| cellspacing="1.5" <div style="float:right;background:#99bbff;color:black;"> |
|||
! colspan="2" style="font-size:110%; text-align:center;" | ''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'' |
|||
| |
|||
{| cellpadding="3" cellspacing="0" style="float:center; width:255px; font-size: 90%; background-color: #ffffff; text-align: left" |
|||
|- |
|- |
||
{{#if:{{{ |
{{#ifeq: {{#expr: {{#if:{{{name|<noinclude>-</noinclude>}}}|1|0}} }} | 1 | |
||
{{!}} |
{{!}} align="center" colspan="2" bgcolor="{{Vgmainheadercolor|{{Vgcode|{{{game}}} }} }}" style="font-size:110%; padding:1px; color:#FFFFFF;" {{!}} '''{{{name|{{PAGENAME}}}}}''' |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if: |
{{#if:{{{image<includeonly>|</includeonly>}}} | |
||
{{!}} colspan="2" style="text-align:center |
{{!}} colspan="2" style="float:center; border-top:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; text-align:center" {{!}}{{{image}}} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if: |
{{#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> |
|||
{{!}} style="text-align:left;" {{!}} '''Game''': |
|||
{{!}} {{{game}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if: |
{{#if:{{{buy<includeonly>|</includeonly>}}} | |
||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Buyable''' |
|||
{{!}} style="text-align:left;" {{!}} '''Buyable''': |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{{buy}}} |
|||
{{!}} {{{buy}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if: |
{{#if:{{{price<includeonly>|</includeonly>}}} | |
||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Price''' |
|||
{{!}} style="text-align:left;" {{!}} '''Price''': |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{{price}}} |
|||
{{!}} {{{price}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#ifeq: {{#expr: {{#if:{{{type|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{type1|}}}|1|0}} }} | 1 | |
{{#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="text-align:left;" {{!}} '''Type''': |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{ |
|||
⚫ | |||
#if: {{{type<includeonly>|</includeonly>}}} | |
#if: {{{type<includeonly>|</includeonly>}}} | |
||
{{{type}}} |
{{{type}}} |
||
Line 36: | Line 37: | ||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if: |
{{#if:{{{size<includeonly>|</includeonly>}}} | |
||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Size''' |
|||
{{!}} style="text-align:left;" {{!}} '''Size''': |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{{size}}} |
|||
{{!}} {{{size}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if: |
{{#if:{{{uses<includeonly>|</includeonly>}}} | |
||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Uses''' |
|||
{{!}} style="text-align:left;" {{!}} '''Uses''': |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}} {{{uses}}} |
|||
{{!}} {{{uses}}} |
|||
⚫ | |||
}} |
}} |
||
|} |
|||
|}<includeonly>{{#ifeq: {{lc:{{{cat}}}}}|n| |{{#ifeq: {{lc:{{{cat}}}}}|no| |{{#ifeq:{{NAMESPACE}}| |[[Category:Objects]] |
|}</div><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}}}}} |
||
|<!-- Not in Main namespace -->}}}}}}</includeonly><noinclude> |
|<!-- Not in Main namespace -->}}}}}}</includeonly><noinclude> |
Revision as of 06:44, 24 January 2014
|
- 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?)