Template:Infobox lot/test: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
imported>SimDestroyer
(Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image1"> <caption source="caption1"/> </image> <data...")
imported>SimDestroyer
No edit summary
Line 1: Line 1:
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" cellpadding="1.5"
<infobox>
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}}
<title source="title1">
{{!}}-
<default>{{PAGENAME}}</default>

</title>
{{#if:{{{image<includeonly>|</includeonly>}}} |
<image source="image1">
{{!}} class="metainfobox-image" colspan="2" {{!}} {{{image}}}
<caption source="caption1"/>
{{!}}-
</image>
<data source="row1">
<label>Label</label>
</data>
<data source="row2">
<label>Label</label>
</data>
</infobox>
<noinclude>
Example usage:<pre>
{{Infobox lot/test
|title1=Example
|image1=Example
|caption1=Example
|row1=Example
|row2=Example
}}
}}

</pre>
{{#if: {{{desc<includeonly>|</includeonly>}}} |
</noinclude>
{{!}} class="metainfobox-caption" colspan="2" {{!}} {{{desc}}}
{{!}}-
}}

{{#if:{{{type<includeonly>|</includeonly>}}} |
{{!}} Lot type
{{!}} {{{type}}}
{{!}}-
}}

{{#if:{{{owner<includeonly>|</includeonly>}}} |
{{!}} Owner
{{!}} {{{owner}}}
{{!}}-
}}

{{#if:{{{slot<includeonly>|</includeonly>}}} |
{{!}} Number of units
{{!}} {{{slot}}}
{{!}}-
}}

{{#if:{{{value<includeonly>|</includeonly>}}} |
{{!}} Value
{{!}} §{{{value}}}
{{!}}-
}}

{{#if: {{{rent<includeonly>|</includeonly>}}} |
{{!}} Price range
{{!}} §{{{rent}}}
{{!}}-
}}

{{#if: {{{unfurnished<includeonly>|</includeonly>}}} |
{{!}} Unfurnished lot value
{{!}} §{{{unfurnished}}}
{{!}}-
}}

{{#if: {{{furnished<includeonly>|</includeonly>}}} |
{{!}} Furnished lot value
{{!}} §{{{furnished}}}
{{!}}-
}}

{{#if: {{{price per day<includeonly>|</includeonly>}}} |
{{!}} Price per day
{{!}} §{{{price per day}}}
{{!}}-
}}

{{#if: {{{size<includeonly>|</includeonly>}}} |
{{!}} Lot size
{{!}} {{{size}}}
{{!}}-
}}

{{#if:{{{trait1<includeonly>|</includeonly>}}} |
{{!}} rowspan="{{#expr: 1+{{#if:{{{trait2<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{trait3<includeonly>|</includeonly>}}}|1|0}} }}" {{!}} Lot traits
{{!}} {{GetLotTraitImage|{{{trait1}}}|{{{game}}} }} {{{trait1}}}
{{!}}-
}}

{{#if:{{{trait2<includeonly>|</includeonly>}}} |
{{!}} {{GetLotTraitImage|{{{trait2}}}|{{{game}}} }} {{{trait2}}}
{{!}}-
}}

{{#if:{{{trait3<includeonly>|</includeonly>}}} |
{{!}} {{GetLotTraitImage|{{{trait3}}}|{{{game}}} }} {{{trait3}}}
{{!}}-
}}

{{#if: {{{floors<includeonly>|</includeonly>}}} |
{{!}} Number of floors
{{!}} {{{floors}}}
{{!}}-
}}

{{#if: {{{family<includeonly>|</includeonly>}}} |
{{!}} Occupants
{{!}} {{{family}}}
{{!}}-
}}

{{#if: {{{beds<includeonly>|</includeonly>}}} |
{{!}} Bedrooms
{{!}} {{{beds}}}
{{!}}-
}}

{{#if: {{{baths<includeonly>|</includeonly>}}} |
{{!}} Bathrooms
{{!}} {{{baths}}}
{{!}}-
}}

{{#if: {{{occupant<includeonly>|</includeonly>}}} |
{{!}} Occupants
{{!}} {{{occupant}}}
{{!}}-
}}

{{#if: {{{neighbor<includeonly>|</includeonly>}}} |
{{!}} Neighborhood
{{!}} {{#switch: {{lc:{{{neighbor}}}}}|hobbies |magic = {{{neighbor}}} |[[{{{neighbor}}}]]}}
{{!}}-
}}

{{#if: {{{world<includeonly>|</includeonly>}}} |
{{!}} World
{{!}} [[{{{world}}}]]
{{!}}-
}}

{{#if: {{{game<includeonly>|</includeonly>}}} |
{{!}} Game
{{!}} ''[[{{{game}}}]]''
{{!}}-
}}

|}<includeonly>{{#ifeq: {{lc:{{{cat}}}}}|no| |{{#ifeq: {{lc:{{{cat}}}}}|n| |{{#ifeq:{{NAMESPACE}}| |
[[Category:Lots]]
{{#if: {{{type|}}}| {{#ifeq: {{lc:{{{type|}}}}} | rabbit hole | [[Category:Rabbit holes]] | [[Category:{{{type}}} lots]]}}}}
{{#if: {{{floors|}}}| {{#ifeq: {{{floors}}} | 1 | [[Category:Lots with 1 floor]]| [[Category:Lots with {{{floors}}} floors]]}} }}
{{#if: {{{size|}}}|{{GetLotSizeCat|{{lc:{{{size}}}}} }} }}
{{#if: {{{family|}}} | {{#ifeq: {{{family}}} | None | [[Category:Unoccupied lots]] | [[Category:Occupied lots]]}} | {{#ifeq: {{lc:{{{type|}}}}}| residential | [[Category:Unoccupied lots]] }} }}
{{#if: {{{neighbor|}}} | [[Category:Lots in {{{neighbor}}}]]}}
{{#if: {{{neighbor2|}}} | [[Category:Lots in {{{neighbor2}}}]]}}
{{#if: {{{neighbor3|}}} | [[Category:Lots in {{{neighbor3}}}]]}}
{{#if: {{{neighbor4|}}} | [[Category:Lots in {{{neighbor4}}}]]}}
|<!--Not in Main: namespace-->}}}}}}
</includeonly><noinclude>[[Category:Metainfobox templates|Lot]]{{Documentation}}</noinclude>

Revision as of 11:56, 18 May 2019

Infobox lot/test
{{{image}}}
{{{desc}}}
Lot type {{{type}}}
Owner {{{owner}}}
Number of units {{{slot}}}
Value §{{{value}}}
Price range §{{{rent}}}
Unfurnished lot value §{{{unfurnished}}}
Furnished lot value §{{{furnished}}}
Price per day §{{{price per day}}}
Lot size {{{size}}}
Lot traits {{{trait1}}}
{{{trait2}}}
{{{trait3}}}
Number of floors {{{floors}}}
Occupants {{{family}}}
Bedrooms {{{beds}}}
Bathrooms {{{baths}}}
Occupants {{{occupant}}}
Neighborhood [[{{{neighbor}}}]]
World [[{{{world}}}]]
Game [[{{{game}}}]]
Template documentation (View · Edit · History · Purge)
This template currently doesn't have any documentation! Help out by writing some.