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>يمارس الجنس مع الشواذ
No edit summary
sims>K6ka
m (Reverted edits by يمارس الجنس مع الشواذ (talk | block) to l)
Line 1: Line 1:
{| 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"
<infobox>
! colspan="2" style="font-size:110%; text-align:center;" | ''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}''
<title source="name"><default>{{PAGENAME}}</default></title>
|-
<image source="image"/>
{{#if:{{{image<includeonly>|</includeonly>}}} |
<data source="type"><label>'''Type''':</label></data>
{{!}} colspan="2" style="text-align:center;" {{!}} {{{image}}}<br /><span style="font-size:80%;">
<data source="owner"><label>'''Owner''':</label></data>
{{!}}-
<data source="value"><label>'''Value''':</label></data>
<data source="unfurnished"><label>'''Unfurnished lot value''':</label></data>
<data source="furnished"><label>'''Furnished lot value''':</label></data>
<data source="size"><label>'''Size''':</label></data>
<data source="floors"><label>'''Number of floors''':</label></data>
<data source="family"><label>'''Occupants''':</label></data>
<data source="beds"><label>'''Number of bedrooms''':</label></data>
<data source="baths"><label>'''Number of bathrooms''':</label></data>
<data source="neighbor"><label>'''Neighborhood''':</label></data>
<data source="neighbor2"><label>neighbor2</label></data>
<data source="neighbor3"><label>neighbor3</label></data>
<data source="neighbor4"><label>neighbor4</label></data>
<data source="cat"><label>cat</label></data>
</infobox>
<noinclude>
== Usage & preview ==
Type in this:

<pre>
{{Lot/Draft
|name=
|image=
|type=
|owner=
|value=
|unfurnished=
|furnished=
|size=
|floors=
|family=
|beds=
|baths=
|neighbor=
|neighbor2=
|neighbor3=
|neighbor4=
|cat=
}}
}}
{{#if: {{{type<includeonly>|</includeonly>}}} |

{{!}} '''Type''':
</pre>
{{!}} {{{type}}}

{{!}}-
to see this:

{{Lot/Draft
|name=This is a test
|image=This is a test
|type=This is a test
|owner=This is a test
|value=This is a test
|unfurnished=This is a test
|furnished=This is a test
|size=This is a test
|floors=This is a test
|family=This is a test
|beds=This is a test
|baths=This is a test
|neighbor=This is a test
|neighbor2=This is a test
|neighbor3=This is a test
|neighbor4=This is a test
|cat=This is a test
}}
}}
{{#if: {{{owner<includeonly>|</includeonly>}}} |

{{!}} '''Owner''':

{{!}} {{{owner}}}
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]
{{!}}-
</noinclude>
}}
{{#if: {{{value<includeonly>|</includeonly>}}} |
{{!}} '''Value''':
{{!}} §{{{value}}}
{{!}}-
}}
{{#if: {{{unfurnished<includeonly>|</includeonly>}}} |
{{!}} '''Unfurnished lot value''':
{{!}} §{{{unfurnished}}}
{{!}}-
}}
{{#if: {{{furnished<includeonly>|</includeonly>}}} |
{{!}} '''Furnished lot value''':
{{!}} §{{{furnished}}}
{{!}}-
}}
{{#if: {{{size<includeonly>|</includeonly>}}} |
{{!}} '''Size''':
{{!}} {{{size}}}
{{!}}-
}}
{{#if: {{{floors<includeonly>|</includeonly>}}} |
{{!}} '''Number of floors''':
{{!}} {{{floors}}}
{{!}}-
}}
{{#if: {{{family<includeonly>|</includeonly>}}} |
{{!}} '''Occupants''':
{{!}} {{{family}}}
{{!}}-
}}
{{#if: {{{beds<includeonly>|</includeonly>}}} |
{{!}} '''Number of bedrooms''':
{{!}} {{{beds}}}
{{!}}-
}}
{{#if: {{{baths<includeonly>|</includeonly>}}} |
{{!}} '''Number of bathrooms''':
{{!}} {{{baths}}}
{{!}}-
}}
{{#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 17:53, 4 August 2017

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?)