Template:FamilyInfobox: 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>Random Ranaun
No edit summary
m (Protected "Template:FamilyInfobox" ([Edit=Allow only autoconfirmed and confirmed users] (indefinite) [Move=Allow only administrators and content moderators] (indefinite) [Delete=Allow only administrators and content moderators] (indefinite)))
 
(36 intermediate revisions by 7 users not shown)
Line 10: Line 10:
}}
}}
{{#if:{{{game<includeonly>|</includeonly>}}} |
{{#if:{{{game<includeonly>|</includeonly>}}} |
{{!}} colspan="2" style="float:center; text-align:center" {{!}}<small><center>{{GetGameImage|{{{game}}}}}</center></small>
{{!}} colspan="2" style="float:center; text-align:center" {{!}}<small><center>{{GetGameImage|{{{game}}}|{{{neighbor|}}}}}</center></small>
{{!}}-
{{!}}-
}}
}}
Line 20: Line 20:
{{!}} colspan="2" style="background: {{Vgmainheadercolor|{{Vgcode|{{{game}}} }} }}; text-align:center; color: white"{{!}}<small>'''Description'''</small>
{{!}} colspan="2" style="background: {{Vgmainheadercolor|{{Vgcode|{{{game}}} }} }}; text-align:center; color: white"{{!}}<small>'''Description'''</small>
{{!}}-
{{!}}-
{{!}} colspan="2" style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; text-align:center"{{!}}<small><font color="{{Vgmainheadercolor|{{Vgcode|{{{game}}} }} }}">{{{caption}}}</font></small>
{{!}} colspan="2" style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; text-align:center"{{!}}<small><font color="{{Vgmainheadercolor|{{Vgcode|{{{game}}} }} }}">''{{{caption}}}''</font></small>
{{!}}-
{{!}}-
}}
}}
Line 26: Line 26:
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Name'''
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Name'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{name}}}
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{name}}}
{{!}}-
}}
{{#if:{{{members<includeonly>|</includeonly>}}} |
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Members'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{members}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{generations<includeonly>|</includeonly>}}} |
{{#if:{{{generations<includeonly>|</includeonly>}}} |
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B;"{{!}}'''Number of generations'''
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B;"{{!}}'''Number of generations'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{generations}}}
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{generations}}} {{#ifeq: {{{generations|}}} | 1 | generation | generations}}
<includeonly>{{Checkmns|{{#if: {{{generations|}}} | [[Category:Families with {{{generations}}} generations]] }} }}{{Checkfns|{{#if: {{{generations|}}} | [[Category:Families with {{{generations}}} generations]] }} }}</includeonly>
<includeonly>{{Checkmns|{{#if: {{{generations|}}} | {{#ifeq: {{{generations|}}} | 1 | [[Category:Families with 1 generation]] | [[Category:Families with {{{generations}}} generations]] }} }} }}{{Checkfns|{{#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)]]}} }} }}</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 37: Line 42:
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Family connections'''
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Family connections'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{connect}}}
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{connect}}}
{{!}}-
}}
{{#if:{{{members<includeonly>|</includeonly>}}} |
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Members'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{members}}}
{{!}}-
{{!}}-
}}
}}
Line 52: Line 52:
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Funds'''
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Funds'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}§{{{funds}}}
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}§{{{funds}}}
{{!}}-
}}
{{#if:{{{worth<includeonly>|</includeonly>}}} |
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Net worth'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}§{{{worth}}}
{{!}}-
}}
{{#if:{{{resources<includeonly>|</includeonly>}}} |
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Resources'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{resources}}}
{{!}}-
}}
{{#if:{{{food<includeonly>|</includeonly>}}} |
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Food'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{food}}}
{{!}}-
{{!}}-
}}
}}
Line 57: Line 72:
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B; font-size:89%;"{{!}}'''Difficulty level'''
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B; font-size:89%;"{{!}}'''Difficulty level'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}[[File:Difficulty{{{difficulty}}}.png|{{{difficulty}}} of 6]]
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}[[File:Difficulty{{{difficulty}}}.png|{{{difficulty}}} of 6]]
<includeonly>{{Checkmns|{{#if: {{{difficulty|}}} | [[Category:Families with difficulty level {{{difficulty}}}]] }} }}{{Checkfns|{{#if: {{{difficulty|}}} | [[Category:Families with difficulty level {{{difficulty}}} (fanon)]] }} }}</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 67: Line 83:
{{#if:{{{game<includeonly>|</includeonly>}}} |
{{#if:{{{game<includeonly>|</includeonly>}}} |
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; color:#4b4b4b; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;"{{!}}'''Game'''
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; color:#4b4b4b; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;"{{!}}'''Game'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{#if:{{{game|}}}|{{GetGameIcon|{{{game}}} }} }}''[[{{{game}}}]]''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{#if:{{{game|}}}|{{GetGameIcon|{{{game}}}|{{{neighbor}}} }} }} ''[[{{{game}}}]]''
<includeonly>{{GetGameCat|family|{{{game}}} }}</includeonly>
<includeonly>{{#ifeq:{{NAMESPACE}}| |{{GetFamilyGameCat|{{{game}}}}}|<!--Not in Main: namespace-->}}</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 75: Line 91:
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{play}}}<includeonly>{{#ifeq:{{NAMESPACE}}| |
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{play}}}<includeonly>{{#ifeq:{{NAMESPACE}}| |
{{#ifeq: {{{play}}}| Playable |[[Category:Playable families]] }}
{{#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}}}| Deceased |[[Category:Deceased families]] }}
{{#ifeq: {{{play}}}| Townie |[[Category:Townie families]] }}
{{#ifeq: {{{play}}}| NPC |[[Category:NPC families]] }}
{{#ifeq: {{{play}}}| NPC |[[Category:NPC families]] }}
{{#ifeq: {{{play}}}| Downloadable |[[Category:Downloadable families]] }}
{{#ifeq: {{{play}}}| Downloadable |[[Category:Downloadable families]] }}
Line 84: Line 101:
}}
}}
{{#if:{{{neighbor<includeonly>|</includeonly>}}} |
{{#if:{{{neighbor<includeonly>|</includeonly>}}} |
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; color:#4b4b4b; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;"{{!}}'''Neighborhood'''
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; color:#4b4b4b; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;"{{!}}'''{{#ifeq:{{Vgseries|{{{game}}}}} | The Sims 4 | World | Neighborhood}}'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;"{{!}}[[{{{neighbor}}}]]
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;"{{!}}{{Checkmns| {{#switch: {{{neighbor}}}
|Downtown = {{#ifeq:{{{game}}}|The Sims: Hot Date|[[Downtown (The Sims)|Downtown]]|[[Downtown (The Sims 2)|Downtown]]}}
<includeonly>{{#if:{{{neighbor|}}}|{{#ifeq: {{{neighbor|}}} | Sim State University | [[Category:Sim State University households]] | {{#ifeq: {{{neighbor|}}} | La Fiesta Tech | [[Category:La Fiesta Tech households]] |{{#ifeq: {{{neighbor|}}} | Académie Le Tour | [[Category:Académie Le Tour households]] |[[Category:{{{neighbor}}} families]]}} }} }} }}</includeonly>
|Pets = [[Pets (neighborhood)|Pets]]
|Weather = [[Weather (neighborhood)|Weather]]
|Hobbies = [[Hobbies (neighborhood)|Hobbies]]
|Magic = [[Magic (neighborhood)|Magic]]
|[[{{{neighbor}}}]]
}} }}{{Checkfns| {{#ifexist: Fanon:{{{neighbor}}}|[[Fanon:{{{neighbor}}}]]|{{{neighbor}}} }} }}
<includeonly>{{Checkmns|{{#ifeq: {{{game}}}|The Sims 2: University|[[Category:{{{neighbor}}} households]]|[[Category:{{{neighbor}}} families]]}} }}{{Checkfns|[[Category:{{{neighbor}}} families (fanon)]]}}</includeonly>
{{!}}-
{{!}}-
}}
}}
|
|
}}
|}
{| cellpadding="3" cellspacing="0" style="float:center; width:255px; font-size: 90%; background-color: #ffffff; text-align: left"
|-
{{#ifeq: {{#expr: {{#if:{{{playerstories|<noinclude>-</noinclude>}}}|1|0}} }} | 1 |
{{!}}-
{{!}} align="center" colspan="2" bgcolor="{{Vgsecondaryheadercolor|{{Vgcode|{{{game}}} }} }}" style="font-size:110%; padding:1px; color:{{Vgsecondaryfontcolor|{{Vgcode|{{{game}}} }} }};" {{!}} '''{{{playerstories}}}'''
{{!}}-
}}
}}
|}
|}
Line 117: Line 133:
</div>
</div>
|}
|}
</div><noinclude>{{documentation}}</noinclude>
</div><includeonly>{{checkmns|[[Category:Pages using familybio templates]]}}</includeonly><noinclude>{{clr}}{{documentation}}</noinclude>

Latest revision as of 15:44, 10 March 2019

FamilyInfobox
link={{{game}}}
{{{image}}}
Description
{{{caption}}}
Name {{{name}}}
Members {{{members}}}
Number of generations {{{generations}}} generations
Family connections {{{connect}}}
Lot {{{lot}}}
Funds §{{{funds}}}
Net worth §{{{worth}}}
Resources {{{resources}}}
Food {{{food}}}
Difficulty level [[File:Difficulty{{{difficulty}}}.png|{{{difficulty}}} of 6]]
Other Information
Game [[{{{game}}}]]
Playability {{{play}}}
Neighborhood
{{{theories}}}
{{{fanoncomments}}}
Template documentation (View · Edit · History · Purge)
Description
Infobox for a family or household's page. Used by {{Family}}.
Syntax
{{FamilyInfobox|<...>}}.
If placing many infoboxes in one article, enclose them in <div style="float:right;">...</div>
{{FamilyInfobox
|name        = 
|image       = 
|caption     = 
|members     = 
|generations = 
|connect     = 
|lot         = 
|funds       = 
|worth       = 
|difficulty  = 
|game        = 
|play        = 
|neighbor    = 
|theories    = 
}}
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 are playable in.
theories - Whether the family has theories or not. Optional.

Visit Template:FamilyInfobox/doc to edit this text! (How does this work?) (Refresh this text - why?)