Template:Infobox lot/test: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
<templatestyles src="Metainfobox/styles.css" /> |
|||
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}} |
|||
⚫ | |||
{{!}}- |
{{!}}- |
||
Line 53: | Line 52: | ||
{{!}} Furnished lot value |
{{!}} Furnished lot value |
||
{{!}} §{{{furnished}}} |
{{!}} §{{{furnished}}} |
||
⚫ | |||
⚫ | |||
{{#if: {{{price per day<includeonly>|</includeonly>}}} | |
|||
{{!}} Price per day |
|||
{{!}} §{{{price per day}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 64: | Line 69: | ||
{{#if:{{{trait1<includeonly>|</includeonly>}}} | |
{{#if:{{{trait1<includeonly>|</includeonly>}}} | |
||
{{!}} rowspan="{{#expr: 1+{{#if:{{{trait2<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{trait3<includeonly>|</includeonly>}}}|1|0}} }}" {{!}} Lot traits |
{{!}} rowspan="{{#expr: 1+{{#if:{{{trait2<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{trait3<includeonly>|</includeonly>}}}|1|0}} }}" {{!}} Lot traits |
||
{{!}} {{GetLotTraitImage|{{{trait1}}} |
{{!}} {{GetLotTraitImage|{{{trait1}}}|{{{game}}} }} {{{trait1}}} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{trait2<includeonly>|</includeonly>}}} | |
{{#if:{{{trait2<includeonly>|</includeonly>}}} | |
||
{{!}} {{GetLotTraitImage|{{{trait2}}} |
{{!}} {{GetLotTraitImage|{{{trait2}}}|{{{game}}} }} {{{trait2}}} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{trait3<includeonly>|</includeonly>}}} | |
{{#if:{{{trait3<includeonly>|</includeonly>}}} | |
||
{{!}} {{GetLotTraitImage|{{{trait3}}} |
{{!}} {{GetLotTraitImage|{{{trait3}}}|{{{game}}} }} {{{trait3}}} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 110: | Line 115: | ||
{{#if: {{{neighbor<includeonly>|</includeonly>}}} | |
{{#if: {{{neighbor<includeonly>|</includeonly>}}} | |
||
{{!}} Neighborhood |
{{!}} Neighborhood |
||
{{!}} {{#switch: {{lc:{{{neighbor}}}}}|hobbies |magic = {{{neighbor}}} | |
{{!}} {{#switch: {{lc:{{{neighbor}}}}}|hobbies |magic = {{{neighbor}}} |[[{{{neighbor}}}]]}} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 116: | Line 121: | ||
{{#if: {{{world<includeonly>|</includeonly>}}} | |
{{#if: {{{world<includeonly>|</includeonly>}}} | |
||
{{!}} World |
{{!}} World |
||
{{!}} |
{{!}} [[{{{world}}}]] |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 122: | Line 127: | ||
{{#if: {{{game<includeonly>|</includeonly>}}} | |
{{#if: {{{game<includeonly>|</includeonly>}}} | |
||
{{!}} Game |
{{!}} Game |
||
{{!}} '' |
{{!}} ''[[{{{game}}}]]'' |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
|}<includeonly>{{#ifeq: {{ |
|}<includeonly>{{#ifeq: {{lc:{{{cat}}}}}|no| |{{#ifeq: {{lc:{{{cat}}}}}|n| |{{#ifeq:{{NAMESPACE}}| | |
||
{{Namespace detect |
|||
|main = |
|||
[[Category:Lots]] |
[[Category:Lots]] |
||
{{#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]]}}}} |
||
Line 134: | Line 137: | ||
{{#if: {{{size|}}}|{{GetLotSizeCat|{{lc:{{{size}}}}} }} }} |
{{#if: {{{size|}}}|{{GetLotSizeCat|{{lc:{{{size}}}}} }} }} |
||
{{#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 |
{{#if: {{{neighbor|}}} | [[Category:Lots in {{{neighbor}}}]]}} |
||
{{#if: {{{neighbor2|}}} | [[Category:Lots in |
{{#if: {{{neighbor2|}}} | [[Category:Lots in {{{neighbor2}}}]]}} |
||
{{#if: {{{neighbor3|}}} | [[Category:Lots in |
{{#if: {{{neighbor3|}}} | [[Category:Lots in {{{neighbor3}}}]]}} |
||
{{#if: {{{neighbor4|}}} | [[Category:Lots in |
{{#if: {{{neighbor4|}}} | [[Category:Lots in {{{neighbor4}}}]]}} |
||
|<!--Not in Main: namespace-->}}}}}} |
|||
{{#if: {{{world|}}} | [[Category:Lots in {{Delink|{{{world}}}}} ]] }} |
|||
⚫ | |||
|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|{{{neighbor}}}}} (fanon)]] }} |
|||
{{#if: {{{neighbor2|}}} | [[Category:Lots in {{Delink|{{{neighbor2}}}}} (fanon)]] }} |
|||
{{#if: {{{neighbor3|}}} | [[Category:Lots in {{Delink|{{{neighbor3}}}}} (fanon)]] }} |
|||
{{#if: {{{neighbor4|}}} | [[Category:Lots in {{Delink|{{{neighbor4}}}}} (fanon)]] }} |
|||
{{#if: {{{world|}}} | [[Category:Lots in {{Delink|{{{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|{{{neighbor}}}}} (custom)]] }} |
|||
{{#if: {{{neighbor2|}}} | [[Category:Lots in {{Delink|{{{neighbor2}}}}} (custom)]] }} |
|||
{{#if: {{{neighbor3|}}} | [[Category:Lots in {{Delink|{{{neighbor3}}}}} (custom)]] }} |
|||
{{#if: {{{neighbor4|}}} | [[Category:Lots in {{Delink|{{{neighbor4}}}}} (custom)]] }} |
|||
{{#if: {{{world|}}} | [[Category:Lots in {{Delink|{{{world}}}}} (custom)]] }} |
|||
}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
{{Documentation}}</noinclude>--> |
Latest revision as of 15:46, 4 October 2020
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}}}]] |