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) |
(Simplify categorization scheme; add support for CC namespace) |
||
(19 intermediate revisions by 5 users not shown) | |||
Line 1:
<templatestyles src="Metainfobox/styles.css" /><!---*****OVERALL DESIGN CODE*****--->
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" cellpadding="1.5"
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}}
{{!}}-
}}▼
{{#if:{{{image<includeonly>|</includeonly>}}} |
{{!}} class="metainfobox-image" colspan="2" {{!}} {{{image}}}
{{!}}-
}}
{{#if: {{{
{{!}} class="metainfobox-caption" colspan="2" {{!}} {{{caption}}}
{{!}}-
{{!}} class="metainfobox-header line {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}}
{{!}}-
}}
<!---LEGACY CODE FOR "desc" PARAMETER--->
{{#if:{{{game<includeonly>|</includeonly>}}} |▼
{{#if: {{{desc|}}} |
{{!}} class="metainfobox-caption" colspan="2" {{!}} {{{desc}}}
{{!}}-
{{!}} class="metainfobox-header line {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}}
{{!}}-
}}
{{#if: {{{
{{!}} Game
{{!}}
{{!}}-
}}
{{#if: {{{
{{!}} Buyability
{{!}} {{{buy}}}
|Crafted ='''Price to craft'''▼
|'''Price'''}}▼
{{!}}-
}}
{{#if: {{{
{{!}} {{#switch: {{lc:{{{buy}}} }}
|built
|invented
{{!}} {{{price}}}
{{!}}-
}}
{{!}} Selling price
{{!}} {{{sell}}}
{{!}}-
#if: {{{type<includeonly>|</includeonly>}}} |▼
}}{{▼
#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: {{{type|{{{type1<includeonly>|</includeonly>}}} }}} |
▲{{
{{!}} {{{type|{{{type1}}} }}}
{{!}}-
▲}}
{{!}} {{{type2}}}
{{!}}-
{{!}} {{{type3}}}
{{!}}-
{{#if:{{{type4<includeonly>|</includeonly>}}} |
{{!}} {{{type4}}}
{{!}}-
}}
{{#if:{{{type5<includeonly>|</includeonly>}}} |
{{!}} {{{type5}}}
{{!}}-
}}
{{#if:{{{size<includeonly>|</includeonly>}}} |
{{!}} Size
{{!}} {{{size}}}
{{!}}-
}}
{{#if:{{{uses<includeonly>|</includeonly>}}} |
{{!}} Number of uses
{{!}} {{{uses}}}
{{!}}-
}}
{{#if:{{{badge<includeonly>|</includeonly>}}} |
{{!}} [[Talent badge|Badge required]]
{{!}} {{#if:{{{badgelevel|}}}|[[File:{{{badge}}} {{lc: {{{badgelevel}}}}}.png|25px|link={{{badge}}}]] [[{{{badge}}} {{{badgelevel}}}]]|{{{badge}}} }}
{{!}}-
}}
|}
<includeonly>{{#ifeq: {{Yesno-yes|{{{cat}}}|no=no}}|no| <!-- Don't add categories --> |
{{Namespace detect
▲|}
|main = [[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}}}|{{{game}}}}}▼
|custom = [[Category:Objects (custom)]] {{GetObjectCats|game|{{{game}}}}}{{GetObjectCats|type|{{{type}}}}}{{GetObjectCats|type|{{{type1}}}}}{{GetObjectCats|type|{{{type2}}}}}{{GetObjectCats|type|{{{type3}}}}}{{GetObjectCats|type|{{{type4}}}}}{{GetObjectCats|type|{{{type5}}}}}{{GetObjectCats|buy|{{{buy}}}|{{{game}}}}}
}}
▲{{GetObjectCats|game|{{{game}}}}}{{GetObjectCats|type|{{{type}}}}}{{GetObjectCats|type|{{{type1}}}}}{{GetObjectCats|type|{{{type2}}}}}{{GetObjectCats|type|{{{type3}}}}}{{GetObjectCats|type|{{{type4}}}}}{{GetObjectCats|type|{{{type5}}}}}{{GetObjectCats|buy|{{{buy}}}}}
</noinclude>
|
Latest revision as of 20:24, 19 August 2019
Infobox object | |
---|---|
{{{image}}} | |
{{{caption}}} | |
Game | {{{game}}} |
Buyability | {{{buy}}} |
Price in game | {{{price}}} |
Selling price | {{{sell}}} |
Object type(s) | {{{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?)