Template:FamilyInfobox: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>Lost Labyrinth (fixing for Opera users) |
sims>Random Ranaun No edit summary |
||
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" |
|||
|- |
|- |
||
{{#ifeq: {{#expr: {{#if:{{{header|<noinclude>-</noinclude>}}}|1|0}} }} | 1 | |
|||
| 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>}} |
|||
{{!}} 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:{{{members<includeonly>|</includeonly>}}} | |
|||
{{!}} valign="top" style="text-align:left;" {{!}} '''Members''' |
|||
{{!}}{{{members}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{ |
{{#if:{{{game<includeonly>|</includeonly>}}} | |
||
{{!}} |
{{!}} colspan="2" style="float:center; text-align:center" {{!}}<small><center>{{GetGameImage|{{{game}}}}}</center></small> |
||
{{!}}{{{generations}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{ |
{{#if:{{{image<includeonly>|</includeonly>}}} | |
||
{{!}} |
{{!}} colspan="2" style="float:center; border-top:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; text-align:center" {{!}}{{{image}}} |
||
{{!}}{{Checkmns|[[File:Difficulty{{{difficulty}}}.png|{{{difficulty}}} of 6]]|{{{difficulty}}}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{ |
{{#if:{{{caption<includeonly>|</includeonly>}}} | |
||
{{!}} |
{{!}} colspan="2" style="background: {{Vgmainheadercolor|{{Vgcode|{{{game}}} }} }}; text-align:center; color: white"{{!}}<small>'''Description'''</small> |
||
{{!}}- |
|||
{{!}}{{{economicstatus}}} |
|||
{{!}} 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:{{{ |
{{#if:{{{name<includeonly>|</includeonly>}}} | |
||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Name''' |
|||
{{!}} valign="top" style="text-align:left;" {{!}} '''Neighborhood''' |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{name}}} |
|||
{{!}}{{Checkmns|[[{{{neighbor}}}]]|{{{neighbor}}}}} |
|||
{{!}}- |
|||
}} |
|||
{{#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}}} |
|||
<includeonly>{{Checkmns|{{#if: {{{generations|}}} | [[Category:Families with {{{generations}}} generations]] }} }}{{Checkfns|{{#if: {{{generations|}}} | [[Category:Families with {{{generations}}} generations]] }} }}</includeonly> |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{connect<includeonly>|</includeonly>}}} | |
{{#if:{{{connect<includeonly>|</includeonly>}}} | |
||
{{!}} |
{{!}} 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}}} |
|||
{{!}}{{{connect}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{ |
{{#if:{{{members<includeonly>|</includeonly>}}} | |
||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Members''' |
|||
{{!}} valign="top" style="text-align:left;" {{!}} '''Appearance''' |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{members}}} |
|||
{{!}}{{{games}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#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;" {{!}} '''Download''' |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{lot}}} |
|||
{{!}}{{{download}}} |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{{funds<includeonly>|</includeonly>}}} | |
|||
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Funds''' |
|||
! colspan="2" style="text-align:center;" | |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{{funds}}} |
|||
<includeonly>{{Checkmns|</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]] }} |
|||
}} |
}} |
||
{{#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''' |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}[[File:Difficulty{{{difficulty}}}.png|{{{difficulty}}} of 6]] |
|||
{{!}}- |
|||
}} |
|||
|} |
|||
{| 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}}} }} }}''[[{{{game}}}]]'' |
|||
<includeonly>{{#ifeq:{{NAMESPACE}}| |{{GetGameCat|{{{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}}}| Deceased |[[Category:Deceased families]] }} |
|||
{{#ifeq: {{{play}}}| Townie |[[Category:Townie 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;"{{!}}'''Neighborhood''' |
|||
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;"{{!}}[[{{{neighbor}}}]] |
|||
<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> |
|||
{{!}}- |
|||
}} |
|||
| |
|||
}} |
|||
|} |
|||
{| 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}}}''' |
|||
{{!}}- |
|||
}} |
|||
|} |
|||
{| 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><noinclude>{{documentation}}</noinclude> |
Revision as of 01:45, 16 November 2011
- 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?)