Template:Lot: 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>A morris
mNo edit summary
sims>A morris
(updating with GetLotSizeCat)
Line 68: Line 68:
{{#if: {{{type|}}}| {{#ifeq: {{lc:{{{type|}}}}} | rabbit hole | [[Category:Rabbit holes]] | [[Category:{{{type}}} 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: {{{floors|}}}| {{#ifeq: {{{floors}}} | 1 | [[Category:Lots with 1 floor]]| [[Category:Lots with {{{floors}}} floors]]}} }}
{{#if: {{{size|}}}|{{#switch: {{lc:{{{size}}}}}
{{#if: {{{size|}}}|{{GetLotSizeCat|{{lc:{{{size}}}}} }} }}
| 10x7
| 11x17
| 14x13
| 15x30
| 17x25
| 30x10
| 20x20
| 20x30
| 30x20
| 20x40
| small = [[Category:Small-sized lots]]
| 30x30
| 50x20
| 40x30
| 30x40
| 50x30
| 50x32
| 30x50
| 39x39
| medium = [[Category:Medium-sized lots]]
| 40x40
| 50x40
| 40x50
| 50x50
| large = [[Category:Large-sized lots]]
| 64x64
| 60x50
| Huge lots = [[Category:Huge lots]]
| [[Category:{{{size}}} lots]]
}} }}
{{#if: {{{family|}}} | {{#ifeq: {{{family}}} | None | [[Category:Unoccupied lots]] | [[Category:Occupied lots]]}} | {{#ifeq: {{lc:{{{type|}}}}}| residential | [[Category:Unoccupied lots]] }} }}
{{#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: {{{neighbor|}}} | [[Category:Lots in {{{neighbor}}}]]}}

Revision as of 20:39, 23 November 2010

Lot
{{{image}}}
Type: {{{type}}}
Owner: {{{owner}}}
Value: §{{{value}}}
Unfurnished lot value: §{{{unfurnished}}}
Furnished lot value: §{{{furnished}}}
Size: {{{size}}}
Number of floors: {{{floors}}}
Occupants: {{{family}}}
Number of bedrooms: {{{beds}}}
Number of bathrooms: {{{baths}}}
Neighborhood: [[{{{neighbor}}}]], [[{{{neighbor2}}}]], [[{{{neighbor3}}}]], [[{{{neighbor4}}}]]
Template documentation (View · Edit · History · Purge)
Description
An infobox for lots.

Syntax

{{Lot|<...>}}

Any type
{{Lot
|image    = 
|type     = 
|value    = 
|furnished = 
|unfurnished = 
|size     = 
|floors   = 
|beds     = 
|baths    = 
|family   = 
|owner    = 
|neighbor = 
}}
Community lot
{{Lot
|image    = 
|type     = Community
|value    = 
|size     = 
|floors   = 
|owner    = 
|neighbor = 
}}
Residential lot
{{Lot
|image    = 
|type     = Residential
|value    = 
|size     = 
|floors   = 
|beds     = 
|baths    = 
|family   = 
|neighbor = 
}}

Parameters

type
The type of lot: Residential, Community, Secret, etc.
value
The value of the lot in Simoleons, excluding §.
furnished
The value of the lot furnished in Simoleons, excluding §. Used instead of value for The Sims 3 lots.
unfurnished
The value of the lot unfurnished in Simoleons, excluding §. Used instead of value for The Sims 3 lots.
size
The size of the lot.
floors
The number of livable floors.
beds
The number of bedrooms.
baths
The number of bathrooms including half baths as a decimal.
family
The family or household living on the lot.
owner
The owner of a community lot.
neighbor
The neighborhood where the lot originally existed.

Visit Template:Lot/doc to edit this text! (How does this work?) (Refresh this text - why?)