Template:Infobox family: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>SimDestroyer No edit summary |
|||
(28 intermediate revisions by 6 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}}}}} |
||
<includeonly>{{ |
<includeonly>{{Namespace detect |main=[[Category:Premade families]] |fanon=[[Category:Families (fanon)]] |custom content = [[Category:Families (custom)]]}}</includeonly> |
||
{{!}}- |
{{!}}- |
||
Line 37: | Line 38: | ||
{{#if:{{{generations<includeonly>|</includeonly>}}} | |
{{#if:{{{generations<includeonly>|</includeonly>}}} | |
||
{{!}} Number of generations |
{{!}} Number of generations |
||
⚫ | |||
{{!}} {{{generations}}} |
|||
⚫ | <includeonly>{{Namespace detect |main={{#if: {{{generations|}}} | {{#ifeq: {{{generations|}}} | 1 | [[Category:Families with 1 generation]] | [[Category:Families with {{{generations}}} generations]] }} }} |fanon={{#if: {{{generations|}}} | {{#ifeq: {{#switch:{{{generations}}} | 1 | 2 | 3 | 4 | 5 | 6 = 1 }} | 1 | {{#ifeq: {{{generations|}}} | 1 | [[Category:Families with 1 generation (fanon)]] | [[Category:Families with {{{generations}}} generations (fanon)]] }} | [[Category:Families with other generations (fanon)]]}} }} |custom content = {{#if: {{{generations|}}} | {{#ifeq: {{#switch:{{{generations}}} | 1 | 2 | 3 | 4 | 5 | 6 = 1 }} | 1 | {{#ifeq: {{{generations|}}} | 1 | [[Category:Families with 1 generation (custom)]] | [[Category:Families with {{{generations}}} generations (custom)]] }} | [[Category:Families with other generations (custom)]]}} }} }}</includeonly> |
||
⚫ | |||
⚫ | <includeonly>{{ |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 82: | Line 82: | ||
{{!}} Difficulty level |
{{!}} Difficulty level |
||
{{!}} [[File:Difficulty{{{difficulty}}}.png|{{{difficulty}}} of 6]] |
{{!}} [[File:Difficulty{{{difficulty}}}.png|{{{difficulty}}} of 6]] |
||
<includeonly>{{ |
<includeonly>{{Namespace detect |main={{#if: {{{difficulty|}}} | [[Category:Families with difficulty level {{{difficulty}}}]] }} |fanon={{#if: {{{difficulty|}}} | [[Category:Families with difficulty level {{{difficulty}}} (fanon)]] }} |custom content={{#if: {{{difficulty|}}} | [[Category:Families with difficulty level {{{difficulty}}} (custom)]] }} }}</includeonly> |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 92: | Line 92: | ||
{{#if:{{{game<includeonly>|</includeonly>}}} | |
{{#if:{{{game<includeonly>|</includeonly>}}} | |
||
{{!}} Game |
{{!}} Game |
||
{{!}} {{GetGameIcon|{{{game}}}|{{{neighbor}}} }} '' |
{{!}} {{GetGameIcon|{{{game}}}|{{{neighbor}}} }} ''{{Addlink|{{{game}}}}}'' |
||
<includeonly> |
<includeonly>{{GetFamilyGameCat|{{{game}}}}}</includeonly> |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 99: | Line 99: | ||
{{#if:{{{play<includeonly>|</includeonly>}}} | |
{{#if:{{{play<includeonly>|</includeonly>}}} | |
||
{{!}} Playability |
{{!}} Playability |
||
{{!}}{{{play}}}<includeonly>{{ |
{{!}}{{{play}}}<includeonly>{{GetFamilyPlayCat| {{{play}}} }}</includeonly> |
||
{{#ifeq: {{{play}}}| Playable |[[Category:Playable families]] }} |
|||
{{#ifeq: {{{play}}}| Unplayable |[[Category:Unplayable families]] }} |
|||
{{#ifeq: {{{play}}}| Family Bin |[[Category:Family bin families]] }} |
|||
{{#ifeq: {{{play}}}| Deceased |[[Category:Deceased families]] }} |
|||
{{#ifeq: {{{play}}}| NPC |[[Category:NPC families]] }} |
|||
{{#ifeq: {{{play}}}| Downloadable |[[Category:Downloadable families]] }} |
|||
|<!--Not in Main: namespace-->}} |
|||
</includeonly> |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 116: | Line 108: | ||
|TS4= World |
|TS4= World |
||
|#default= Neighborhood}} |
|#default= Neighborhood}} |
||
{{!}}{{ |
{{!}}{{Namespace detect |main= {{#switch: {{{neighbor}}} |
||
|Downtown = {{#ifeq:{{{game}}}|The Sims: Hot Date|[[Downtown (The Sims)|Downtown]]|[[Downtown (The Sims 2)|Downtown]]}} |
|Downtown = {{#ifeq:{{{game}}}|The Sims: Hot Date|[[Downtown (The Sims)|Downtown]]|[[Downtown (The Sims 2)|Downtown]]}} |
||
|Pets = [[Pets (neighborhood)|Pets]] |
|Pets = [[Pets (neighborhood)|Pets]] |
||
Line 122: | Line 114: | ||
|Hobbies = [[Hobbies (neighborhood)|Hobbies]] |
|Hobbies = [[Hobbies (neighborhood)|Hobbies]] |
||
|Magic = [[Magic (neighborhood)|Magic]] |
|Magic = [[Magic (neighborhood)|Magic]] |
||
| |
|{{Addlink|{{{neighbor}}}}} |
||
}} |
|||
}} }}{{Checkfns| {{#ifexist: Fanon:{{{neighbor}}}|[[Fanon:{{{neighbor}}}]]|{{{neighbor}}} }} }} |
|||
|other = {{Addlink|{{{neighbor}}}}} |
|||
<includeonly>{{Checkmns|[[Category:{{{neighbor}}} families]]}}{{Checkfns|[[Category:{{{neighbor}}} families (fanon)]]}}</includeonly> |
|||
}} |
|||
<includeonly>{{Namespace detect |main=[[Category:{{Delink|{{{neighbor}}}}} families]] |fanon=[[Category:{{Delink|{{Remove fanon prefix|{{{neighbor}}}}}}} families (fanon)]] |custom content=[[Category:{{Delink|{{Remove custom prefix|{{{neighbor}}}}}}} families (custom)]]}}</includeonly> |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
}} |
}} |
||
<!-- Not used on Miraheze: |
|||
{{#ifeq: {{#expr: {{#if:{{{fanoncomments|<noinclude>-</noinclude>}}}|1|0}} }} | 1 | |
{{#ifeq: {{#expr: {{#if:{{{fanoncomments|<noinclude>-</noinclude>}}}|1|0}} }} | 1 | |
||
{{!}} class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2"{{!}} {{{fanoncomments}}} |
{{!}} class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2"{{!}} {{{fanoncomments}}} |
||
}} |
}} --> |
||
|}< |
|}<noinclude> |
||
{{clr}} |
|||
{{Documentation}} |
|||
</noinclude> |
Latest revision as of 03:28, 22 January 2020
Description
Infobox for a family or household's page.
Syntax
{{Infobox family|<...>}}
.
- If placing many infoboxes in one article, enclose them in
<div style="float:right;">...</div>
{{Infobox family |name = |image = |caption = |members = |generations = |connect = |lot = |funds = |worth = |difficulty = |game = |play = |neighbor = }}
Parameters
- name - The name of the family.
- image - The image of the family. Must be in 250px.
- caption - The family biography.
- members - The playable members of the household.
- generations - The number of generations in the family.
- connect - Other families they are connected to.
- lot - The lot the family lives in.
- funds - The total of household funds.
- worth - The total of household's net worth.
- difficulty - The difficulty of the household in The Sims 3 families.
- game - The game the family appears in.
- play - The family playability: Playable, Unplayable, Family Bin, Deceased, or Downloadable.
- neighbor - The neighborhood the family is playable in.
Visit Template:Infobox family/doc to edit this text! (How does this work?) (Refresh this text - why?)