Template:Infobox apartment: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>SimDestroyer No edit summary |
(Update to recognize both fanon and custom namespaces) |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<templatestyles src="Metainfobox/styles.css" /> |
|||
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" cellpadding="1.5" |
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" cellpadding="1.5" |
||
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}} |
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}} |
||
Line 47: | Line 48: | ||
{{!}} Neighborhood |
{{!}} Neighborhood |
||
{{!}} {{#switch: {{lc:{{{neighbor}}}}}|hobbies |magic = {{{neighbor}}} |[[{{{neighbor}}}]]}} |
{{!}} {{#switch: {{lc:{{{neighbor}}}}}|hobbies |magic = {{{neighbor}}} |[[{{{neighbor}}}]]}} |
||
{{!}}- |
|||
⚫ | |||
⚫ | |||
}}{{#if: {{{neighbor4<includeonly>|</includeonly>}}} | , [[{{{neighbor4}}}]] |
|||
}} |
}} |
||
⚫ | |||
⚫ | |||
{{!}} World |
|||
{{!}} {{Addlink|{{{world}}} }} |
|||
{{!}}- |
|||
}} |
|||
⚫ | |||
{{!}} Game |
|||
{{!}} ''{{Addlink|{{{game}}}}}'' |
|||
{{!}}- |
|||
}} |
|||
⚫ | |||
{{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 58: | Line 71: | ||
{{#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 {{{neighbor}}}]]}} |
{{#if: {{{neighbor|}}} | [[Category:Lots in {{Delink|{{{neighbor}}}}} ]] }} |
||
{{#if: {{{neighbor2|}}} | [[Category:Lots in {{{neighbor2}}}]]}} |
{{#if: {{{neighbor2|}}} | [[Category:Lots in {{Delink|{{{neighbor2}}}}} ]] }} |
||
{{#if: {{{neighbor3|}}} | [[Category:Lots in {{{neighbor3}}}]]}} |
{{#if: {{{neighbor3|}}} | [[Category:Lots in {{Delink|{{{neighbor3}}}}} ]] }} |
||
{{#if: {{{neighbor4|}}} | [[Category:Lots in {{{neighbor4}}}]]}} |
{{#if: {{{neighbor4|}}} | [[Category:Lots in {{Delink|{{{neighbor4}}}}} ]] }} |
||
{{#if: {{{world|}}} | [[Category:Lots in {{Delink|{{{world}}}}} ]] }} |
|||
|<!--Not in Main: namespace-->}}}}}} |
|||
|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)]] }} |
|||
}} |
|||
}} |
|||
⚫ |
Latest revision as of 14:26, 7 May 2019
Infobox apartment | |
---|---|
{{{image}}} | |
Number of units | {{{slot}}} |
Value | §{{{value}}} |
Price range | §{{{rent}}} |
Size | {{{size}}} |
Number of floors | {{{floors}}} |
Occupants | {{{occupant}}} |
Neighborhood | [[{{{neighbor}}}]] |
World | [[{{{world}}}]] |
Game | [[{{{game}}}]] |
Description[edit source]
An infobox for apartments.
Syntax[edit source]
{{Infobox apartment|<...>}}
- Any type
{{Infobox apartment |name = |image = |slot = |value = |rent = |size = |floors = |occupant = |neighbor = }}
Parameters[edit source]
- 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.
Visit Template:Infobox apartment/doc to edit this text! (How does this work?) (Refresh this text - why?)