Template:FamilyInfobox: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>Lost Labyrinth (fixing for Opera users) |
SimDestroyer (talk | contribs) 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))) |
||
(41 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
<div style="width:260px;float:right;clear:right;margin-left:5px;margin-right:0px;margin-top:0px;margin-bottom:0px; border-right: {{Vgbordercolor|{{Vgcode|{{{game}}} }} }} 1px solid;border-left:{{Vgbordercolor|{{Vgcode|{{{game}}} }} }} 1px solid; border-top:{{Vgbordercolor|{{Vgcode|{{{game}}} }} }} 1px solid;border-bottom:{{Vgbordercolor|{{Vgcode|{{{game}}} }} }} 1px solid; background:{{Vgsecondaryheadercolor|{{Vgcode|{{{game}}} }} }}; color:black; vertical-align:top; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius:5px; background-position:-40px -15px;"> |
|||
{| cellspacing="1.5" <div style="float:right;background:#99bbff;color:black;"> |
|||
! colspan="2" style="font-size:110%; text-align:center;" | {{#if:{{{family|}}}|{{{family}}}|{{PAGENAME}}}} |
|||
| |
| |
||
{| cellpadding="3" cellspacing="0" style="float:center; width:255px; font-size: 90%; background-color: #ffffff; text-align: left" |
|||
| colspan="2" style="text-align:center;" | {{#if:{{{image<includeonly>|</includeonly>}}}|{{{image}}}|{{needs-image|picture of this family}}}}{{#if:{{{caption<includeonly>|</includeonly>}}}|<br /><span style="font-size:80%;">{{{caption}}}</span>}} |
|||
|- |
|- |
||
{{#ifeq: {{#expr: {{#if:{{{header|<noinclude>-</noinclude>}}}|1|0}} }} | 1 | |
|||
{{!}} align="center" colspan="2" bgcolor="{{Vgmainheadercolor|{{Vgcode|{{{game}}} }} }}" style="font-size:110%; padding:1px; color:#FFFFFF;" {{!}} '''{{{header|{{PAGENAME}}}}}''' |
|||
<includeonly>{{#ifeq:{{NAMESPACE}}| |[[Category:Premade families]]|<!--Not in Main: namespace-->}}{{#ifeq:{{NAMESPACE}}|Fanon|[[Category:Families (fanon)]]|<!--Not in Main: namespace-->}}</includeonly> |
|||
{{!}}- |
|||
}} |
|||
{{#if:{{{game<includeonly>|</includeonly>}}} | |
|||
{{!}} colspan="2" style="float:center; text-align:center" {{!}}<small><center>{{GetGameImage|{{{game}}}|{{{neighbor|}}}}}</center></small> |
|||
{{!}}- |
|||
}} |
|||
{{#if:{{{image<includeonly>|</includeonly>}}} | |
|||
{{!}} colspan="2" style="float:center; border-top:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; text-align:center" {{!}}{{{image}}} |
|||
{{!}}- |
|||
}} |
|||
{{#if:{{{caption<includeonly>|</includeonly>}}} | |
|||
{{!}} 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> |
|||
{{!}}- |
|||
}} |
|||
{{#if:{{{name<includeonly>|</includeonly>}}} | |
|||
{{!}} 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}}} |
|||
{{!}}- |
|||
}} |
|||
{{#if:{{{members<includeonly>|</includeonly>}}} | |
{{#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}}} |
|||
{{!}}{{{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''' |
||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{generations}}} {{#ifeq: {{{generations|}}} | 1 | generation | generations}} |
|||
{{!}}{{{generations}}} |
|||
<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> |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{ |
{{#if:{{{connect<includeonly>|</includeonly>}}} | |
||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Family connections''' |
|||
{{!}} valign="top" style="text-align:left;" {{!}} '''Difficulty level''' |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{connect}}} |
|||
{{!}}{{Checkmns|[[File:Difficulty{{{difficulty}}}.png|{{{difficulty}}} of 6]]|{{{difficulty}}}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{ |
{{#if:{{{lot<includeonly>|</includeonly>}}} | |
||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Lot''' |
|||
{{!}} valign="top" style="text-align:left;" {{!}} '''Economic status''' |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{lot}}} |
|||
{{!}}{{{economicstatus}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{ |
{{#if:{{{funds<includeonly>|</includeonly>}}} | |
||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Funds''' |
|||
{{!}} valign="top" style="text-align:left;" {{!}} '''Neighborhood''' |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}§{{{funds}}} |
|||
{{!}}{{Checkmns|[[{{{neighbor}}}]]|{{{neighbor}}}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{ |
{{#if:{{{worth<includeonly>|</includeonly>}}} | |
||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Net worth''' |
|||
{{!}} valign="top" style="text-align:left;" {{!}} '''Family Connections''' |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}§{{{worth}}} |
|||
{{!}}{{{connect}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{ |
{{#if:{{{resources<includeonly>|</includeonly>}}} | |
||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Resources''' |
|||
{{!}} valign="top" style="text-align:left;" {{!}} '''Appearance''' |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{resources}}} |
|||
{{!}}{{{games}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{ |
{{#if:{{{food<includeonly>|</includeonly>}}} | |
||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Food''' |
|||
{{!}} valign="top" style="text-align:left;" {{!}} '''Download''' |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{food}}} |
|||
{{!}}{{{download}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{difficulty<includeonly>|</includeonly>}}} | |
|||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B; font-size:89%;"{{!}}'''Difficulty level''' |
|||
! colspan="2" style="text-align:center;" | |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}[[File:Difficulty{{{difficulty}}}.png|{{{difficulty}}} of 6]] |
|||
<includeonly>{{Checkmns|</includeonly> |
|||
<includeonly>{{Checkmns|{{#if: {{{difficulty|}}} | [[Category:Families with difficulty level {{{difficulty}}}]] }} }}{{Checkfns|{{#if: {{{difficulty|}}} | [[Category:Families with difficulty level {{{difficulty}}} (fanon)]] }} }}</includeonly> |
|||
---- |
|||
{{!}}- |
|||
'''{{#ifexist:{{FULLPAGENAME}}/Player stories|[[{{PAGENAME}}/Player stories{{!}}Player stories]]|<span class="red-link">[{{fullurl:{{FULLPAGENAME}}/Player stories|action=edit&preload=Template:Family_Player_Stories/preload}} Create 'Player stories' page]</span>}}''' |
|||
{{#if: {{{theories<includeonly>|</includeonly>}}} | <br />'''[[{{PAGENAME}}/theories|{{{theories}}}]]'''}} |
|||
<includeonly>}}</includeonly> |
|||
|}<includeonly> |
|||
{{Checkmns|{{#if: {{{download|}}} | [[Category:Downloadable families]]|[[Category:Premade families]]}} |
|||
{{#if: {{{generations|}}} | [[Category:Families with {{{generations}}} generations]] }}{{ |
|||
#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]]}} }} }} }} |
|||
{{#if:{{{difficulty|}}}| [[Category:Families with difficulty level {{{difficulty}}}]]}} |
|||
{{#if:{{{economicstatus|}}} | [[Category:{{{economicstatus}}} families]] }} |
|||
}} |
}} |
||
|} |
|||
{| cellpadding="3" cellspacing="0" style="float:center; width:255px; font-size:90%; background-color: #ffffff; text-align:left" |
|||
|- |
|||
{{#ifeq: {{#expr: {{#if:{{{game|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{play|}}}|1|0}} or {{#if:{{{neighbor|}}}|1|0}} }} | 1 | |
|||
{{!}} align="center" colspan="2" bgcolor="{{Vgsecondaryheadercolor|{{Vgcode|{{{game}}} }} }}" style="font-size:110%; padding:1px; color:{{Vgsecondaryfontcolor|{{Vgcode|{{{game}}} }} }};" {{!}} '''Other Information''' |
|||
{{!}}- |
|||
{{#if:{{{game<includeonly>|</includeonly>}}} | |
|||
{{!}} 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}}}|{{{neighbor}}} }} }} ''[[{{{game}}}]]'' |
|||
<includeonly>{{#ifeq:{{NAMESPACE}}| |{{GetFamilyGameCat|{{{game}}}}}|<!--Not in Main: namespace-->}}</includeonly> |
|||
{{!}}- |
|||
}} |
|||
{{#if:{{{play<includeonly>|</includeonly>}}} | |
|||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; color:#4b4b4b; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;"{{!}}'''Playability''' |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{play}}}<includeonly>{{#ifeq:{{NAMESPACE}}| | |
|||
{{#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> |
</includeonly> |
||
{{!}}- |
|||
<noinclude>{{documentation}}</noinclude> |
|||
}} |
|||
{{#if:{{{neighbor<includeonly>|</includeonly>}}} | |
|||
{{!}} 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;"{{!}}{{Checkmns| {{#switch: {{{neighbor}}} |
|||
|Downtown = {{#ifeq:{{{game}}}|The Sims: Hot Date|[[Downtown (The Sims)|Downtown]]|[[Downtown (The Sims 2)|Downtown]]}} |
|||
|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:{{{theories|<noinclude>-</noinclude>}}}|1|0}} }} | 1 | |
|||
{{!}}- |
|||
{{!}} align="center" colspan="2" bgcolor="{{Vgsecondaryheadercolor|{{Vgcode|{{{game}}} }} }}" style="font-size:110%; padding:1px; color:{{Vgsecondaryfontcolor|{{Vgcode|{{{game}}} }} }};" {{!}} '''{{{theories}}}''' |
|||
{{!}}- |
|||
}} |
|||
|} |
|||
{| cellpadding="3" cellspacing="0" style="float:center; width:255px; font-size: 90%; background-color: #ffffff; text-align: left" |
|||
|- |
|||
{{#ifeq: {{#expr: {{#if:{{{fanoncomments|<noinclude>-</noinclude>}}}|1|0}} }} | 1 | |
|||
{{!}} align="center" colspan="2" bgcolor="{{Vgsecondaryheadercolor|{{Vgcode|{{{game}}} }} }}" style="font-size:110%; padding:1px; color:{{Vgsecondaryfontcolor|{{Vgcode|{{{game}}} }} }};" {{!}} '''{{{fanoncomments}}}''' |
|||
{{!}}- |
|||
}} |
|||
|} |
|||
</div> |
|||
|} |
|||
</div><includeonly>{{checkmns|[[Category:Pages using familybio templates]]}}</includeonly><noinclude>{{clr}}{{documentation}}</noinclude> |
Latest revision as of 15:44, 10 March 2019
- 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?)