Template:Infobox lot: Difference between revisions

Jump to navigation Jump to search
2,457 bytes removed ,  5 years ago
Adding "price per day" for Outdoor Retreat and Jungle Adventure rental lots.
(move to /doc)
imported>SimDestroyer
(Adding "price per day" for Outdoor Retreat and Jungle Adventure rental lots.)
Line 1:
!{| class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{Delink|{{{game<includeonly>|</includeonly>}}} }} }} }} }} }}" colspancellpadding="21.5"{{!}}{{{name|{{PAGENAME}}}}}
<templatestyles src="Metainfobox/styles.css" />
{|! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{Delink|{{{game<includeonly>|</includeonly>}}} }} }} }} }} }}" cellpaddingcolspan="1.52"{{!}}{{{name|{{PAGENAME}}}}}
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{Delink|{{{game<includeonly>|</includeonly>}}} }} }} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}}
{{!}}-
 
Line 53 ⟶ 52:
{{!}} Furnished lot value
{{!}} §{{{furnished}}}
{{clr!}}-
}}
 
{{#if: {{{price per day<includeonly>|</includeonly>}}} |
{{!}} Price per day
{{!}} §{{{price per day}}}
{{!}}-
}}
Line 64 ⟶ 69:
{{#if:{{{trait1<includeonly>|</includeonly>}}} |
{{!}} rowspan="{{#expr: 1+{{#if:{{{trait2<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{trait3<includeonly>|</includeonly>}}}|1|0}} }}" {{!}} Lot traits
{{!}} {{GetLotTraitImage|{{{trait1}}}|{{Delink|{{{game}}} }} }} {{{trait1}}}
{{!}}-
}}
 
{{#if:{{{trait2<includeonly>|</includeonly>}}} |
{{!}} {{GetLotTraitImage|{{{trait2}}}|{{Delink|{{{game}}} }} }} {{{trait2}}}
{{!}}-
}}
 
{{#if:{{{trait3<includeonly>|</includeonly>}}} |
{{!}} {{GetLotTraitImage|{{{trait3}}}|{{Delink|{{{game}}} }} }} {{{trait3}}}
{{!}}-
}}
Line 110 ⟶ 115:
{{#if: {{{neighbor<includeonly>|</includeonly>}}} |
{{!}} Neighborhood
{{!}} {{#switch: {{lc:{{{neighbor}}}}}|hobbies |magic = {{{neighbor}}} | {{Addlink|[[{{{neighbor}}} }} ]]}}
{{!}}-
}}
Line 116 ⟶ 121:
{{#if: {{{world<includeonly>|</includeonly>}}} |
{{!}} World
{{!}} {{Addlink|[[{{{world}}} }}]]
{{!}}-
}}
Line 122 ⟶ 127:
{{#if: {{{game<includeonly>|</includeonly>}}} |
{{!}} Game
{{!}} ''{{Addlink|[[{{{game}}}}}]]''
{{!}}-
}}
 
|}<includeonly>{{#ifeq: {{Yesno-yes|lc:{{{cat}}}|no=no}}|no| <!--|{{#ifeq: Don't{{lc:{{{cat}}}}}|n| add categories -->|{{#ifeq:{{NAMESPACE}}| |
{{Namespace detect
|main =
[[Category:Lots]]
{{#if: {{{type|}}}| {{#ifeq: {{lc:{{{type|}}}}} | rabbit hole | [[Category:Rabbit holes]] | [[Category:{{{type}}} lots]]}}}}
Line 134 ⟶ 137:
{{#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 {{Delink|{{{neighbor}}}}} ]] }}
{{#if: {{{neighbor2|}}} | [[Category:Lots in {{Delink|{{{neighbor2}}}}} ]] }}
{{#if: {{{neighbor3|}}} | [[Category:Lots in {{Delink|{{{neighbor3}}}}} ]] }}
{{#if: {{{neighbor4|}}} | [[Category:Lots in {{Delink|{{{neighbor4}}}}} ]] }}
|<!--Not in Main: namespace-->}}}}}}
{{#if: {{{world|}}} | [[Category:Lots in {{Delink|{{{world}}}}} ]] }}
</includeonly><noinclude>[[Category:Metainfobox templates|Lot]]{{Documentation}}</noinclude>
|fanon =
[[Category:Lots (fanon)]]
{{#if: {{{type|}}}| {{#ifeq: {{lc:{{{type|}}}}} | rabbit hole | [[Category:Rabbit holes (fanon)]] | [[Category:{{{type}}} lots (fanon)]]}}}}
{{#if: {{{floors|}}}| {{#ifeq: {{{floors}}} | 1 | [[Category:Lots with 1 floor (fanon)]]| [[Category:Lots with {{{floors}}} floors (fanon)]]}} }}
{{#if: {{{size|}}}|{{GetLotSizeCat|{{lc:{{{size}}}}} }} }}
{{#if: {{{family|}}} | {{#ifeq: {{{family}}} | None | [[Category:Unoccupied lots (fanon)]] | [[Category:Occupied lots (fanon)]]}} | {{#ifeq: {{lc:{{{type|}}}}}| residential | [[Category:Unoccupied lots (fanon)]] }} }}
{{#if: {{{neighbor|}}} | [[Category:Lots in {{Delink|{{Remove fanon prefix|{{{neighbor}}}}}}} (fanon)]] }}
{{#if: {{{neighbor2|}}} | [[Category:Lots in {{Delink|{{Remove fanon prefix|{{{neighbor2}}}}}}} (fanon)]] }}
{{#if: {{{neighbor3|}}} | [[Category:Lots in {{Delink|{{Remove fanon prefix|{{{neighbor3}}}}}}} (fanon)]] }}
{{#if: {{{neighbor4|}}} | [[Category:Lots in {{Delink|{{Remove fanon prefix|{{{neighbor4}}}}}}} (fanon)]] }}
{{#if: {{{world|}}} | [[Category:Lots in {{Delink|{{Remove fanon prefix|{{{world}}}}}}} (fanon)]] }}
|custom content =
[[Category:Lots (custom)]]
{{#if: {{{type|}}}| {{#ifeq: {{lc:{{{type|}}}}} | rabbit hole | [[Category:Rabbit holes (custom)]] | [[Category:{{{type}}} lots (custom)]]}}}}
{{#if: {{{floors|}}}| {{#ifeq: {{{floors}}} | 1 | [[Category:Lots with 1 floor (custom)]]| [[Category:Lots with {{{floors}}} floors (custom)]]}} }}
{{#if: {{{size|}}}|{{GetLotSizeCat|{{lc:{{{size}}}}} }} }}
{{#if: {{{family|}}} | {{#ifeq: {{{family}}} | None | [[Category:Unoccupied lots (custom)]] | [[Category:Occupied lots (custom)]]}} | {{#ifeq: {{lc:{{{type|}}}}}| residential | [[Category:Unoccupied lots (custom)]] }} }}
{{#if: {{{neighbor|}}} | [[Category:Lots in {{Delink|{{Remove custom prefix|{{{neighbor}}}}}}} (custom)]] }}
{{#if: {{{neighbor2|}}} | [[Category:Lots in {{Delink|{{Remove custom prefix|{{{neighbor2}}}}}}} (custom)]] }}
{{#if: {{{neighbor3|}}} | [[Category:Lots in {{Delink|{{Remove custom prefix|{{{neighbor3}}}}}}} (custom)]] }}
{{#if: {{{neighbor4|}}} | [[Category:Lots in {{Delink|{{Remove custom prefix|{{{neighbor4}}}}}}} (custom)]] }}
{{#if: {{{world|}}} | [[Category:Lots in {{Delink|{{Remove custom prefix|{{{world}}}}}}} (custom)]] }}
}}
}}
</includeonly><noinclude>
{{clr}}
{{Documentation}}</noinclude>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu