Template:Infobox apartment: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
sims>SimDestroyer
(Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image1"> <caption source="caption1"/> </image> <data...")
 
sims>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 apartment
|title1=Example
|image1=Example
|caption1=Example
|row1=Example
|row2=Example
}}
}}

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

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

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

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

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

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

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

|}<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>{{Documentation}}</noinclude>

Revision as of 14:36, 9 June 2018

Infobox apartment
{{{image}}}
Number of units {{{slot}}}
Value §{{{value}}}
Price range §{{{rent}}}
Size {{{size}}}
Number of floors {{{floors}}}
Occupants {{{occupant}}}
Neighborhood [[{{{neighbor}}}]], [[{{{neighbor2}}}]], [[{{{neighbor3}}}]], [[{{{neighbor4}}}]]
Template documentation (View · Edit · History · Purge)

Description

An infobox for apartments.

Syntax

{{Infobox apartment|<...>}}

Any type
{{Infobox apartment
|name     = 
|image    = 
|slot     = 
|value    = 
|rent     = 
|size     = 
|floors   = 
|occupant = 
|neighbor = 
}}

Parameters

slot
The number of available slots for rent in the apartment.
value
The value of the lot in Simoleons, excluding §.
rent
The price rent of the apartment, excluding §.
size
The size of the lot.
floors
The number of livable floors.
occupant
The families or households living on the lot.
neighbor
The neighborhood where the lot originally existed.