Template:Infobox Sim: 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>LostInRiverview
mNo edit summary
(copy over LiR's changes from https://sims.fandom.com/index.php?title=Template:Infobox_Sim&diff=904220&oldid=874333 with support for custom content namespace)
 
(29 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude>{{Widely-used}}{{era|PR}}</noinclude><templatestyles src="Metainfobox/styles.css" />
<noinclude>{{under construction}}
{{Metabox
|type = Notice
|image = Icon-warning-48x48.png
|headline = NOT A "LIVE" TEMPLATE
|text = This template is still being worked on and tested. ''Please do not use this template on any articles!''
|nocat = true
}}
</noinclude>
<!---*****OVERALL DESIGN CODE*****--->
<!---*****OVERALL DESIGN CODE*****--->
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{{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 | {{{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>{{Checkmns|[[Category:Sims]]}}{{Checkfns|[[Category:Sims (fanon)]]}}</includeonly>
<includeonly>{{Namespace detect |main=[[Category:Sims]] |fanon=[[Category:Sims (fanon)]] |custom=[[Category:Sims (custom)]]}}</includeonly>
{{!}}-
{{!}}-


Line 27: Line 19:


<!---*****BASIC SIMOLOGY*****--->
<!---*****BASIC SIMOLOGY*****--->
{{#if:{{{name<includeonly>|</includeonly>}}} |
{{!}} Name
{{!}} {{{name}}}
{{!}}-
}}


{{#if:{{{sex<includeonly>|</includeonly>}}} |
{{#if:{{{sex<includeonly>|</includeonly>}}} |
{{!}} Gender
{{!}} Gender
{{!}} {{GetGenderImage|{{{sex}}} }} {{#ifeq: {{{sex}}}| Ambiguous |[[Gender#Gender_ambiguity|Ambiguous]]|{{{sex}}} }}
{{!}} {{GetGenderImage|{{{sex}}} }} {{#ifeq: {{{sex}}}| Ambiguous |[[Gender#Gender_ambiguity|Ambiguous]]|{{{sex}}} }}
<includeonly>{{#ifeq: {{lc:{{{sex}}}}}| male |{{Checkmns|[[Category:Male Sims]]}}{{Checkfns|[[Category:Male Sims (fanon)]]}} }}{{#ifeq: {{lc:{{{sex}}}}}| female |{{Checkmns|[[Category:Female Sims]]}}{{Checkfns|[[Category:Female Sims (fanon)]]}} }}{{#ifeq: {{lc:{{{sex}}}}}| ambiguous |{{Checkmns|[[Category:Sims with an ambiguous gender]]}} }}</includeonly>
<includeonly>{{#ifeq: {{lc:{{{sex}}}}}| male |{{Namespace detect |main=[[Category:Male Sims]] |fanon=[[Category:Male Sims (fanon)]] |custom=[[Category:Male Sims (custom)]]}} }}{{#ifeq: {{lc:{{{sex}}}}}| female |{{Namespace detect |main=[[Category:Female Sims]] |fanon=[[Category:Female Sims (fanon)]] |custom=[[Category:Female Sims (custom)]]}} }}{{#ifeq: {{lc:{{{sex}}}}}| ambiguous |{{Namespace detect |main=[[Category:Sims with an ambiguous gender]] |custom=[[Category:Sims with an ambiguous gender (custom)]]}} }}</includeonly>
{{!}}-
{{!}}-
| {{#if:{{{sex2|}}}|<!-- If "sex2" used, ignore --> | <includeonly>{{Namespace detect |main=[[Category:Sims with no gender]] |fanon=[[Category:Sims with no gender (fanon)]] |custom=[[Category:Sims with no gender (custom)]]}}</includeonly>}}
}}
}}


Line 43: Line 31:
{{!}} Gender
{{!}} Gender
{{!}} {{GetGender2Image|{{{sex2}}} }} {{#ifeq: {{{sex2}}}| Ambiguous |[[Gender#Gender_ambiguity|Ambiguous]]|{{{sex2}}} }}
{{!}} {{GetGender2Image|{{{sex2}}} }} {{#ifeq: {{{sex2}}}| Ambiguous |[[Gender#Gender_ambiguity|Ambiguous]]|{{{sex2}}} }}
<includeonly>{{#ifeq: {{lc:{{{sex2}}}}}| male |{{Checkmns|[[Category:Male Sims]]}}{{Checkfns|[[Category:Male Sims (fanon)]]}} }}{{#ifeq: {{lc:{{{sex2}}}}}| female |{{Checkmns|[[Category:Female Sims]]}}{{Checkfns|[[Category:Female Sims (fanon)]]}} }}{{#ifeq: {{lc:{{{sex2}}}}}| ambiguous |{{Checkmns|[[Category:Sims with an ambiguous gender]]}} }}</includeonly>
<includeonly>{{#ifeq: {{lc:{{{sex2}}}}}| male |{{Namespace detect |main=[[Category:Male Sims]] |fanon=[[Category:Male Sims (fanon)]] |custom=[[Category:Male Sims (custom)]]}} }}{{#ifeq: {{lc:{{{sex2}}}}}| female |{{Namespace detect |main=[[Category:Female Sims]] |fanon=[[Category:Female Sims (fanon)]] |custom=[[Category:Female Sims (custom)]]}} }}{{#ifeq: {{lc:{{{sex2}}}}}| ambiguous |{{Namespace detect |main=[[Category:Sims with an ambiguous gender]] |custom=[[Category:Sims with an ambiguous gender (custom)]]}} }}</includeonly>
{{!}}-
{{!}}-
| {{#if:{{{sex|}}}|<!-- If "sex" used, ignore --> | <includeonly>{{Namespace detect |main=[[Category:Sims with no gender]] |fanon=[[Category:Sims with no gender (fanon)]] |custom=[[Category:Sims with no gender (custom)]]}}</includeonly>}}
}}
}}


Line 70: Line 59:
<!---*****BIOGRAPHY SECTION*****--->
<!---*****BIOGRAPHY SECTION*****--->
{{#if:{{{caption<includeonly>|</includeonly>}}} |
{{#if:{{{caption<includeonly>|</includeonly>}}} |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Biography
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Biography
{{!}}-
{{!}}-
{{!}} class="metainfobox-caption" colspan="2" {{!}} {{{caption}}}
{{!}} class="metainfobox-caption" colspan="2" {{!}} {{{caption}}}
Line 77: Line 66:


<!---*****EDUCATION/EMPLOYMENT*****--->
<!---*****EDUCATION/EMPLOYMENT*****--->
{{#ifeq: {{#expr: {{#if:{{{school|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{grade|}}}|1|0}} or {{#if:{{{career|}}}|1|0}} or {{#if:{{{career2|}}}|1|0}} or {{#if:{{{career3|}}}|1|0}} or {{#if:{{{major|}}}|1|0}} or {{#if:{{{year|}}}|1|0}} }} | 1 |
{{#ifeq: {{#expr: {{#if:{{{school|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{grade|}}}|1|0}} or {{#if:{{{career|}}}|1|0}} or {{#if:{{{career2|}}}|1|0}} or {{#if:{{{career3|}}}|1|0}} or {{#if:{{{major|}}}|1|0}} or {{#if:{{{year|}}}|1|0}} or {{#if:{{{degree|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Education and employment
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Education and employment
{{!}}-
{{!}}-


Line 97: Line 86:
{{!}} Major
{{!}} Major
{{!}}[[File:{{{major}}}.png|20px]] {{{major}}}
{{!}}[[File:{{{major}}}.png|20px]] {{{major}}}
<includeonly>{{Checkmns|[[Category:{{{major}}} majors]]}}{{Checkfns|[[Category:{{{major}}} majors (fanon)]]}}</includeonly>
<includeonly>{{Namespace detect |main=[[Category:{{{major}}} majors]] |fanon=[[Category:{{{major}}} majors (fanon)]] |custom=[[Category:{{{major}}} majors (custom)]]}}</includeonly>
{{!}}-
}}

{{#if:{{{degree<includeonly>|</includeonly>}}} |
{{!}} Degree
{{!}} [[File:TS4 Degree {{{degree}}}.png|20px|{{{degree}}} degree]] {{{degree}}}<includeonly>{{Namespace detect |main=[[Category:{{{degree}}} students]] |fanon=[[Category:{{{degree}}} students (fanon)]] |custom=[[Category:{{{degree}}} students (custom)]]}}</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 104: Line 99:
{{!}} Year
{{!}} Year
{{!}} {{{year}}}
{{!}} {{{year}}}
<includeonly>{{#ifeq: {{lc:{{{year}}}}} | freshman | {{Checkmns|[[Category:Freshmen]]}}{{Checkfns|[[Category:Freshmen (fanon)]]}} }}{{#ifeq: {{lc:{{{year}}}}} | sophomore | {{Checkmns|[[Category:Sophomores]]}}{{Checkfns|[[Category:Sophomores (fanon)]]}} }}{{#ifeq: {{lc:{{{year}}}}} | junior | {{Checkmns|[[Category:Juniors]]}}{{Checkfns|[[Category:Juniors (fanon)]]}} }}{{#ifeq: {{lc:{{{year}}}}} | senior | {{Checkmns|[[Category:Seniors]]}}{{Checkfns|[[Category:Seniors (fanon)]]}} }}</includeonly>
<includeonly>{{#ifeq: {{lc:{{{year}}}}} | freshman | {{Namespace detect |main=[[Category:Freshmen]] |fanon=[[Category:Freshmen (fanon)]] |custom=[[Category:Freshmen (custom)]]}} }}{{#ifeq: {{lc:{{{year}}}}} | sophomore | {{Namespace detect |main=[[Category:Sophomores]] |fanon=[[Category:Sophomores (fanon)]] |custom=[[Category:Sophomores (custom)]]}} }}{{#ifeq: {{lc:{{{year}}}}} | junior | {{Namespace detect |main=[[Category:Juniors]] |fanon=[[Category:Juniors (fanon)]] |custom=[[Category:Juniors (custom)]]}} }}{{#ifeq: {{lc:{{{year}}}}} | senior | {{Namespace detect |main=[[Category:Seniors]] |fanon=[[Category:Seniors (fanon)]] |custom=[[Category:Seniors (custom)]]}} }}</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 111: Line 106:
{{!}} Career
{{!}} Career
{{!}} {{GetCareerImage|{{{career}}}|{{{game}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career}}} }}|{{{careerlevel}}}]] | {{{career}}} }}
{{!}} {{GetCareerImage|{{{career}}}|{{{game}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career}}} }}|{{{careerlevel}}}]] | {{{career}}} }}
<includeonly>{{Checkmns|{{GetCareerCat|{{{career}}}}}}}{{Checkfns|{{GetCareerCat|{{{career}}}}}}}</includeonly>
<includeonly>{{Namespace detect |main={{GetCareerCat|{{{career}}}}} |fanon={{GetCareerCat|{{{career}}}}} |custom content={{GetCareerCat|{{{career}}}}} }}</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 118: Line 113:
{{!}} Career
{{!}} Career
{{!}} {{GetCareer2Image|{{{career2}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career2}}} }}|{{{careerlevel}}}]] | {{{career2}}} }}
{{!}} {{GetCareer2Image|{{{career2}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career2}}} }}|{{{careerlevel}}}]] | {{{career2}}} }}
<includeonly>{{Checkmns|{{GetCareerCat|{{{career2}}}}}}}{{Checkfns|{{GetCareerCat|{{{career2}}}}}}}</includeonly>
<includeonly>{{Namespace detect |main={{GetCareerCat|{{{career2}}}}} |fanon={{GetCareerCat|{{{career2}}}}} |custom content={{GetCareerCat|{{{career2}}}}} }}</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 125: Line 120:
{{!}} Career
{{!}} Career
{{!}}{{GetCareer3Image|{{{career3}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career3}}} }}|{{{careerlevel}}}]] | {{{career3}}} }}
{{!}}{{GetCareer3Image|{{{career3}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career3}}} }}|{{{careerlevel}}}]] | {{{career3}}} }}
<includeonly>{{Checkmns|{{GetCareerCat|{{{career3}}}}}}}{{Checkfns|{{GetCareerCat|{{{career3}}}}}}}</includeonly>
<includeonly>{{Namespace detect |main={{GetCareerCat|{{{career3}}}}} |fanon={{GetCareerCat|{{{career3}}}}} |custom content={{GetCareerCat|{{{career3}}}}} }}</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 131: Line 126:


<!---*****FAMILY*****--->
<!---*****FAMILY*****--->
{{#ifeq: {{#expr: {{#if:{{{parents|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{siblings|}}}|1|0}} or {{#if:{{{spouse|}}}|1|0}} or {{#if:{{{maritalstatus|}}}|1|0}} or {{#if:{{{child|}}}|1|0}} }} | 1 |
{{#ifeq: {{#expr: {{#if:{{{family|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{parents|}}}|1|0}} or {{#if:{{{siblings|}}}|1|0}} or {{#if:{{{spouse|}}}|1|0}} or {{#if:{{{maritalstatus|}}}|1|0}} or {{#if:{{{child|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} {{#if:{{{family<includeonly>|</includeonly>}}} | {{{family}}} | Family}}
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Family
{{!}}-
{{!}}-

{{#if:{{{family</includeonly>|</includeonly>}}} |
{{!}} Family/Families
{{!}} {{{family}}}
{{!}}-
}}


{{#if:{{{parents<includeonly>|</includeonly>}}} |
{{#if:{{{parents<includeonly>|</includeonly>}}} |
Line 163: Line 164:
{{!}} Children
{{!}} Children
{{!}} {{{child}}}
{{!}} {{{child}}}
<includeonly>{{#ifeq: {{lc:{{{child|}}}}}| none | | {{#ifeq: {{lc:{{{child|}}}}}| unknown |<!-- Not known to have children --> | {{Checkmns|[[Category:Parents]]}}{{Checkfns|[[Category:Parents (fanon)]]}} }} }}</includeonly>
<includeonly>{{#ifeq: {{lc:{{{child|}}}}}| none | | {{#ifeq: {{lc:{{{child|}}}}}| unknown |<!-- Not known to have children --> | {{Namespace detect |main=[[Category:Parents]] |fanon=[[Category:Parents (fanon)]] |custom=[[Category:Parents (custom)]]}} }} }}</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 170: Line 171:
<!---*****HOUSEHOLD/PETS*****--->
<!---*****HOUSEHOLD/PETS*****--->
{{#ifeq: {{#expr: {{#if:{{{roommates|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{pets|}}}|1|0}} }} | 1 |
{{#ifeq: {{#expr: {{#if:{{{roommates|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{pets|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} {{#if:{{{household<includeonly>|</includeonly>}}} | {{{household}}} | Household}}
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Household
{{!}}-
{{!}}-

{{#if:{{{household<includeonly>|</includeonly>}}} |
{{!}} Household
{{!}} {{{household}}}
{{!}}-
}}


{{#if:{{{roommates<includeonly>|</includeonly>}}} |
{{#if:{{{roommates<includeonly>|</includeonly>}}} |
Line 182: Line 189:
{{!}} Pets
{{!}} Pets
{{!}} {{{pets}}}
{{!}} {{{pets}}}
<includeonly>{{Checkmns|[[Category:Pet owners]]}}{{Checkfns|[[Category:Pet owners (fanon)]]}}</includeonly>
<includeonly>{{Namespace detect |main=[[Category:Pet owners]] |fanon=[[Category:Pet owners (fanon)]] |custom=[[Category:Pet owners (custom)]]}}</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 189: Line 196:
<!---*****PERSONALITY/TRAITS/FAVORITES/ZODIAC/ASPIRATIONS/ETC*****--->
<!---*****PERSONALITY/TRAITS/FAVORITES/ZODIAC/ASPIRATIONS/ETC*****--->
{{#ifeq: {{#expr: {{#if:{{{trait1|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{trait2|}}}|1|0}} or {{#if:{{{trait3|}}}|1|0}} or {{#if:{{{trait4|}}}|1|0}} or {{#if:{{{trait5|}}}|1|0}} or {{#if:{{{trait6|}}}|1|0}} or {{#if:{{{trait7|}}}|1|0}} or {{#if:{{{hiddentrait1|}}}|1|0}} or {{#if:{{{hiddentrait2|}}}|1|0}} or {{#if:{{{hiddentrait3|}}}|1|0}} or {{#if:{{{medievaltrait1|}}}|1|0}} or {{#if:{{{medievaltrait2|}}}|1|0}} or {{#if:{{{flaw|}}}|1|0}} or {{#if:{{{legendary|}}}|1|0}} or {{#if:{{{sign|}}}|1|0}} or {{#if:{{{sign2|}}}|1|0}} or {{#if:{{{asp|}}}|1|0}} or {{#if:{{{asp2|}}}|1|0}} or {{#if:{{{asp3|}}}|1|0}} or {{#if:{{{want|}}}|1|0}} or {{#if:{{{wish|}}}|1|0}} or {{#if:{{{music|}}}|1|0}} or {{#if:{{{food|}}}|1|0}} or {{#if:{{{color|}}}|1|0}} }} | 1 |
{{#ifeq: {{#expr: {{#if:{{{trait1|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{trait2|}}}|1|0}} or {{#if:{{{trait3|}}}|1|0}} or {{#if:{{{trait4|}}}|1|0}} or {{#if:{{{trait5|}}}|1|0}} or {{#if:{{{trait6|}}}|1|0}} or {{#if:{{{trait7|}}}|1|0}} or {{#if:{{{hiddentrait1|}}}|1|0}} or {{#if:{{{hiddentrait2|}}}|1|0}} or {{#if:{{{hiddentrait3|}}}|1|0}} or {{#if:{{{medievaltrait1|}}}|1|0}} or {{#if:{{{medievaltrait2|}}}|1|0}} or {{#if:{{{flaw|}}}|1|0}} or {{#if:{{{legendary|}}}|1|0}} or {{#if:{{{sign|}}}|1|0}} or {{#if:{{{sign2|}}}|1|0}} or {{#if:{{{asp|}}}|1|0}} or {{#if:{{{asp2|}}}|1|0}} or {{#if:{{{asp3|}}}|1|0}} or {{#if:{{{want|}}}|1|0}} or {{#if:{{{wish|}}}|1|0}} or {{#if:{{{music|}}}|1|0}} or {{#if:{{{food|}}}|1|0}} or {{#if:{{{color|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Personality
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Personality
{{!}}-
{{!}}-


Line 287: Line 294:
{{!}} Zodiac sign
{{!}} Zodiac sign
{{!}} {{GetSignImage|{{{sign}}} }} {{{sign}}}
{{!}} {{GetSignImage|{{{sign}}} }} {{{sign}}}
<includeonly>{{Checkmns|[[Category:{{{sign}}} Sims]]}}{{Checkfns|[[Category:{{{sign}}} Sims (fanon)]]}}</includeonly>
<includeonly>{{#if:{{{sign|}}}|{{GetZodiacCat|{{{sign}}} }} }}</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 294: Line 301:
{{!}} Zodiac sign
{{!}} Zodiac sign
{{!}} {{GetSign2Image|{{{sign2}}} }} {{{sign2}}}
{{!}} {{GetSign2Image|{{{sign2}}} }} {{{sign2}}}
<includeonly>{{Checkmns|[[Category:{{{sign2}}} Sims]]}}{{Checkfns|[[Category:{{{sign2}}} Sims (fanon)]]}}</includeonly>
<includeonly>{{#if:{{{sign2|}}}|{{GetZodiacCat|{{{sign2}}} }} }}</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 301: Line 308:
{{#if:{{{asp<includeonly>|</includeonly>}}} |
{{#if:{{{asp<includeonly>|</includeonly>}}} |
{{!}} Aspiration
{{!}} Aspiration
{{!}} {{GetAspirationImage|{{{asp}}} }} {{{asp}}}
{{!}} {{GetAspirationImage|{{{asp}}}|{{{game}}} }} {{{asp}}}
<includeonly>{{Checkmns|[[Category:{{{asp}}} Sims]]}}{{Checkfns|[[Category:{{{asp}}} Sims (fanon)]]}}</includeonly>
<includeonly>{{GetAspirationCat|{{{asp}}}|{{{game}}} }}</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 308: Line 315:
{{#if:{{{asp2<includeonly>|</includeonly>}}} |
{{#if:{{{asp2<includeonly>|</includeonly>}}} |
{{!}} Secondary aspiration
{{!}} Secondary aspiration
{{!}} {{GetAspirationImage|{{{asp2}}} }} {{{asp2}}}
{{!}} {{GetAspirationImage|{{{asp2}}}|{{{game}}} }} {{{asp2}}}
<includeonly>{{Checkmns|[[Category:{{{asp2}}} Sims]]}}{{Checkfns|[[Category:{{{asp2}}} Sims (fanon)]]}}</includeonly>
<includeonly>{{GetAspirationCat|{{{asp2}}}|{{{game}}} }}</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 315: Line 322:
{{#if:{{{asp3<includeonly>|</includeonly>}}} |
{{#if:{{{asp3<includeonly>|</includeonly>}}} |
{{!}} Aspiration
{{!}} Aspiration
{{!}} {{GetAspiration3Image|{{{asp3}}} }} {{{asp3}}}
{{!}} {{GetAspirationImage|{{{asp3}}}|{{{game}}} }} {{{asp3}}}
<includeonly>{{GetAspirationCat|{{{asp3}}}|{{{game}}} }}</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 357: Line 365:
<!---*****CHEMISTRY*****--->
<!---*****CHEMISTRY*****--->
{{#ifeq: {{#expr: {{#if:{{{turnon1|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{turnon2|}}}|1|0}} or {{#if:{{{turnoff|}}}|1|0}} }} | 1 |
{{#ifeq: {{#expr: {{#if:{{{turnon1|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{turnon2|}}}|1|0}} or {{#if:{{{turnoff|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Chemistry
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Chemistry
{{!}}-
{{!}}-


Line 383: Line 391:
<!---*****APPEARANCE*****--->
<!---*****APPEARANCE*****--->
{{#ifeq: {{#expr: {{#if:{{{hair|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{hair2|}}}|1|0}} or {{#if:{{{eye|}}}|1|0}} or {{#if:{{{eye2|}}}|1|0}} or {{#if:{{{skin|}}}|1|0}} or {{#if:{{{skin2|}}}|1|0}} or {{#if:{{{body|}}}|1|0}} or {{#if:{{{build|}}}|1|0}} }} | 1 |
{{#ifeq: {{#expr: {{#if:{{{hair|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{hair2|}}}|1|0}} or {{#if:{{{eye|}}}|1|0}} or {{#if:{{{eye2|}}}|1|0}} or {{#if:{{{skin|}}}|1|0}} or {{#if:{{{skin2|}}}|1|0}} or {{#if:{{{body|}}}|1|0}} or {{#if:{{{build|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Appearance
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Appearance
{{!}}-
{{!}}-


Line 438: Line 446:


<!---*****REPUTATION/CELEBRITY STATUS/GROUP*****--->
<!---*****REPUTATION/CELEBRITY STATUS/GROUP*****--->
{{#ifeq: {{#expr: {{#if:{{{celebritystatus|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{rep|}}}|1|0}} or {{#if:{{{district|}}}|1|0}} or {{#if:{{{reputation|}}}|1|0}} or {{#if:{{{social|}}}|1|0}} or {{#if:{{{group1|}}}|1|0}} or {{#if:{{{group2|}}}|1|0}} or {{#if:{{{group3|}}}|1|0}} }} | 1 |
{{#ifeq: {{#expr: {{#if:{{{celebritystatus|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{rep|}}}|1|0}} or {{#if:{{{district|}}}|1|0}} or {{#if:{{{reputation|}}}|1|0}} or {{#if:{{{social|}}}|1|0}} or {{#if:{{{group1|}}}|1|0}} or {{#if:{{{group2|}}}|1|0}} or {{#if:{{{group3|}}}|1|0}} or {{#if:{{{club1|}}}|1|0}} or {{#if:{{{club2|}}}|1|0}} or {{#if:{{{club3|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Social standing
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Social standing
{{!}}-
{{!}}-


Line 445: Line 453:
{{!}} Celebrity status
{{!}} Celebrity status
{{!}} {{GetCelebrityImage|{{{celebritystatus}}} }}
{{!}} {{GetCelebrityImage|{{{celebritystatus}}} }}
<includeonly>{{Checkmns|[[Category:Celebrities]]}}{{Checkfns|[[Category:Celebrities (fanon)]]}}</includeonly>
<includeonly>{{Namespace detect |main=[[Category:Celebrities]] |fanon=[[Category:Celebrities (fanon)]] |custom=[[Category:Celebrities (custom)]]}}</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 513: Line 521:
<!---*****OTHER INFORMATION*****--->
<!---*****OTHER INFORMATION*****--->
{{#ifeq: {{#expr: {{#if:{{{game|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{play|}}}|1|0}} or {{#if:{{{cod|}}}|1|0}} or {{#if:{{{neighbor|}}}|1|0}} }} | 1 |
{{#ifeq: {{#expr: {{#if:{{{game|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{play|}}}|1|0}} or {{#if:{{{cod|}}}|1|0}} or {{#if:{{{neighbor|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Other information
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Other information
{{!}}-
{{!}}-


Line 519: Line 527:
{{!}} Game
{{!}} Game
{{!}} {{GetGameIcon|{{{game}}}|{{{neighbor}}} }} ''[[{{{game}}}]]''
{{!}} {{GetGameIcon|{{{game}}}|{{{neighbor}}} }} ''[[{{{game}}}]]''
<includeonly>{{Checkmns|{{GetGameCat|{{{game}}}}} }}</includeonly>
<includeonly>{{GetGameCat|{{{game}}} }}</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 526: Line 534:
{{!}} Playability
{{!}} Playability
{{!}} {{{play}}}
{{!}} {{{play}}}
<includeonly>{{GetPlayCat|{{{play}}} }}{{#if: {{{neighbor|}}} | {{#ifeq: {{{play|}}}| Townie | {{#ifeq: {{{neighbor|}}}| Downtown | [[Category:Downtownies]]}} }} }}{{#ifeq: {{#expr: {{#ifeq:{{{play|}}}|Deceased|1|0}} or {{#ifeq:{{{state|}}}|Ghost|1|0}} }}| 1 | {{#ifeq: {{{age|}}}| Elder || {{Checkmns|[[Category:Sims that died young]]}}{{Checkfns|[[Category:Sims that died young (fanon)]]}} }} }}</includeonly>
<includeonly>{{GetPlayCat|{{{play}}} }}{{#if: {{{neighbor|}}} | {{#ifeq: {{{play|}}}| Townie | {{#ifeq: {{{neighbor|}}}| Downtown | {{Checkmns|[[Category:Downtownies]]}} }} }} }}{{#ifeq: {{#expr: {{#ifeq:{{{play|}}}|Deceased|1|0}} or {{#ifeq:{{{state|}}}|Ghost|1|0}} }}| 1 | {{#ifeq: {{{age|}}}| Elder || {{Namespace detect |main=[[Category:Sims that died young]] |fanon=[[Category:Sims that died young (fanon)]] |custom=[[Category:Sims that died young (custom)]]}} }} }}</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 542: Line 550:
|TS4= World
|TS4= World
|#default= Neighborhood}}
|#default= Neighborhood}}
{{!}}{{Namespace detect
{{!}}{{Checkmns| {{#switch: {{{neighbor}}}
|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 548: Line 557:
|Hobbies = [[Hobbies (neighborhood)|Hobbies]]
|Hobbies = [[Hobbies (neighborhood)|Hobbies]]
|Magic = [[Magic (neighborhood)|Magic]]
|Magic = [[Magic (neighborhood)|Magic]]
|[[{{{neighbor}}}]]
|{{Addlink|{{{neighbor}}}}}
}}
}} }}{{Checkfns| {{#ifexist: Fanon:{{{neighbor}}}|[[Fanon:{{{neighbor}}}]]|{{{neighbor}}} }} }}
|other = {{Addlink|{{{neighbor}}}}}
<includeonly>{{Checkmns|[[Category:{{{neighbor}}} Sims]]}}{{Checkfns|[[Category:{{{neighbor}}} Sims (fanon)]]}}</includeonly>
}}
<includeonly>{{Namespace detect |main = [[Category:{{Delink|{{{neighbor}}}}} Sims]] |fanon = [[Category:{{Delink|{{Remove fanon prefix|{{{neighbor}}}}}}} Sims (fanon)]] |custom = [[Category:{{Delink|{{Remove custom prefix|{{{neighbor}}}}}}} Sims (custom)]]}}</includeonly>
{{!}}-
{{!}}-
}}
}}
}}<!--Closing bracket for "Other Information" header section-->
}}<!--Closing bracket for "Other Information" header section-->


<!---*****FANON COMMENTS LINK*****-->
<!---*****FANON COMMENTS LINK***** - 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 | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2"{{!}} {{{fanoncomments}}}
{{!}} class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2"{{!}} {{{fanoncomments}}}
}}<!--Closing bracket for "Fanon Comments" section-->
}} - Closing bracket for "Fanon Comments" section-->
|}<noinclude>{{Documentation}}</noinclude>
|}<noinclude>
{{clr}}
{{Documentation}}
</noinclude>

Latest revision as of 16:00, 27 December 2019

This template is used on many pages
To avoid large-scale disruption and unnecessary server load, consider testing your changes elsewhere, such as by copying the source code of this template and pasting it into your user space, or in the sandbox. Consider proposing your changes on the talk page before editing this template.
This page is fully protected.


Infobox Sim
{{{image}}}
Gender {{{sex}}}
Gender {{{sex2}}}
Age {{{age}}}
Life state [[{{{state}}}]]
Life state [[{{{state2}}}]]
Biography
{{{caption}}}
Education and employment
School {{{school}}}
Grade {{{grade}}}
Major [[File:{{{major}}}.png|20px]] {{{major}}}
Degree [[File:TS4 Degree {{{degree}}}.png|20px|{{{degree}}} degree]] {{{degree}}}
Year {{{year}}}
Career {{{career}}}
Career {{{career2}}}
Career {{{career3}}}
Family
Family/Families {{{family}}}
Parents {{{parents}}}
Siblings {{{siblings}}}
Marital status {{{maritalstatus}}}
Romances {{{spouse}}}
Children {{{child}}}
Household
Household {{{household}}}
Roommates {{{roommates}}}
Pets {{{pets}}}
Personality
Traits {{{trait1}}}
{{{trait2}}}
{{{trait3}}}
{{{trait4}}}
{{{trait5}}}
{{{trait6}}}
{{{trait7}}}
Hidden traits {{{hiddentrait1}}}
{{{hiddentrait2}}}
{{{hiddentrait3}}}
Traits {{{medievaltrait1}}}
{{{medievaltrait2}}}
Fatal flaw  {{{flaw}}}
Legendary trait {{{legendary}}}
Zodiac sign {{{sign}}}
Zodiac sign {{{sign2}}}
Aspiration {{{asp}}}
Secondary aspiration {{{asp2}}}
Aspiration {{{asp3}}}
Lifetime want {{{want}}}
Lifetime wish {{{wish}}}
Favorites {{{music}}}
{{{food}}}
{{{color}}}
Chemistry
Turn-ons {{{turnon1}}}
{{{turnon2}}}
Turn-off {{{turnoff}}}
Appearance
Hair color {{{hair}}}
Hair color {{{hair2}}}
Eye color {{{eye}}}
Eye color {{{eye2}}}
Skin color {{{skin}}}
Skin color {{{skin2}}}
Body shape {{{body}}}
Social standing
Celebrity status
Rep group {{{rep}}}
District {{{district}}}
Reputation {{{reputation}}}
Social class {{{social}}}
Social group [[File:{{{group1}}} social group.png|20px]] {{{group1}}}
[[File:{{{group2}}} social group.png|20px]] {{{group2}}}
[[File:{{{group3}}} social group.png|20px]] {{{group3}}}
Clubs {{{club1}}}
{{{club2}}}
{{{club3}}}
Other information
Game [[{{{game}}}]]
Playability {{{play}}}
Cause of death {{{cod}}}
Neighborhood [[{{{neighbor}}}]]
Template documentation (View · Edit · History · Purge)

Description

The Master Sim infobox template, to be used for the creation of all other Sim infobox templates. This is meant to be used by templates; do not use this for individual Sim pages.

Discussion

Discuss the Sim bio templates and Sim page structure at The Sims Wiki talk:Project Sims/Manual of style.

Testing

Use {{Infobox Sim/test}} for testing changes before editing {{Infobox Sim}}.

  1. Make the changes to {{Infobox Sim/test}}, add any new parameters to {{Infobox Sim1/test}}, {{Infobox Sim2/test}} or {{Infobox Sim3/test}}
  2. Preview the changes on an article page by changing the template to {{Infobox SimX/test|...}}.
  3. If the code works, copy the test template(s) to the original(s) (use "Show changes" to make sure they are in sync) and update the documentation. If the code does not work return to step one or undo the changes to the test template(s).

Syntax

Only use the parameters needed for that specific template and add any default values, ex. if it is for The Sims 2, give game the value of {{{game|The Sims 2}}}

{{Infobox Sim
|name      = {{{name<includeonly>|{{PAGENAME}}</includeonly>}}}
|image     = {{{image<includeonly>|</includeonly>}}}
|caption   = {{{caption<includeonly>|Hi! My name is {{PAGENAME}}!</includeonly>}}}
|game      = {{{game}}}
|sex       = {{{sex<includeonly>|</includeonly>}}}
|age       = {{{age<includeonly>|</includeonly>}}}
|asp       = {{{asp<includeonly>|</includeonly>}}}
|sign      = {{{sign<includeonly>|</includeonly>}}}
|state     = {{{state|Sim{{!}}Normal}}}
|cod       = {{{cod<includeonly>|</includeonly>}}}
|social    = {{{social<includeonly>|</includeonly>}}}
|traits    = {{{traits<includeonly>|</includeonly>}}}
|trait1    = {{{trait1<includeonly>|</includeonly>}}}
|trait2    = {{{trait2<includeonly>|</includeonly>}}}
|trait3    = {{{trait3<includeonly>|</includeonly>}}}
|trait4    = {{{trait4<includeonly>|</includeonly>}}}
|trait5    = {{{trait5<includeonly>|</includeonly>}}}
|wish      = {{{wish<includeonly>|</includeonly>}}}
|favorites = {{{favorites<includeonly>|</includeonly>}}}
|music     = {{{music<includeonly>|</includeonly>}}}
|food      = {{{food<includeonly>|</includeonly>}}}
|color     = {{{color<includeonly>|</includeonly>}}}
|rep       = {{{rep<includeonly>|</includeonly>}}}
|major     = {{{major<includeonly>|</includeonly>}}}
|year      = {{{year<includeonly>|</includeonly>}}}
|hair      = {{{hair<includeonly>|</includeonly>}}}
|eye       = {{{eye<includeonly>|</includeonly>}}}
|skin      = {{{skin<includeonly>|</includeonly>}}}
|body      = {{{body<includeonly>|</includeonly>}}}
|family    = {{{family<includeonly>|</includeonly>}}}
|parents   = {{{parents<includeonly>|</includeonly>}}}
|siblings  = {{{siblings<includeonly>|</includeonly>}}}
|spouse    = {{{spouse<includeonly>|</includeonly>}}}
|maritalstatus = {{{maritalstatus<includeonly>|</includeonly>}}}
|child     = {{{child<includeonly>|</includeonly>}}}
|household = {{{household<includeonly>|</includeonly>}}}
|roommates = {{{roommates<includeonly>|</includeonly>}}}
|pets      = {{{pets<includeonly>|</includeonly>}}}
|play      = {{{play<includeonly>|</includeonly>}}}
|neighbor  = {{{neighbor<includeonly>|</includeonly>}}}
}}
Templates that use this template
  1. Template:Infobox Sim1
  2. Template:Infobox Urb
  3. Template:Infobox Sim2
  4. Template:Infobox Sim3
  5. Template:Infobox Medsim
  6. Template:Infobox Sim4

Parameters

Common parameters
game: The game title (required)
name: The name of the Sim, used if it is different than the page name (optional)
image: An image of the Sim.
caption: A custom caption for the image (optional)
sex: The sex of the Sim.
family: Used as a header if blank, else linked to the Sim's family's page
parents: List of links to parents
spouse: List of links to Sims that have or have had a romantic relationship with the Sim
maritalstatus: Current marital status of the Sim
siblings: List of links to siblings
child: List of links to children
hair: Hair color
eye: Eye color
skin: Skin color
body: Body shape
household: Used as a header if blank, else linked to the Sim's household's page
roommates: List of links to roommates
pets: List of pets the Sim owns
play: The ability to play the character from game start. Playable, Family bin or Lots and Houses bin, NPC, Deceased, Townie, Promotional, Downloadable.
neighbor: The neighborhood they exist(ed) in
Game specific
state: The life state of a Sim if it is other than normal
cod: The cause of death of a Sim
age: The life stage of a Sim
sign: The Sim's sign
asp: The Sim's aspiration
social: The Sim's social class
group: The Sim's social group
trait1 ... trait7: The Sim's traits. trait1 ... trait7 is preferred.
flaw: The Sim's fatal flaw.
wish: The Sim's lifetime wish
favorites or music, food and color: List of the Sim's favorites. music, food color is preferred.
rep: Rep group designation for Urbz
major: The major of a Sim in college
year: The year of study of a Sim in college

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