Template:Infobox Sim: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>LostInRiverview (Testing addition of TS4 Get Together clubs) |
sims>LostInRiverview (Implementing refined code from http://sims.wikia.com/wiki/User:Nikel23/Sandbox6?oldid=797102) |
||
Line 9:
</noinclude>
<!---*****OVERALL DESIGN CODE*****--->
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" cellpadding="1.5"
!
<includeonly>{{
{{!}}-
<!---*****GAME LOGO*****--->
{{#if:{{{game<includeonly>|</includeonly>}}} |
{{!}}
{{!}}-
}}
<!---*****HEADSHOT*****--->
{{#if:{{{image<includeonly>|</includeonly>}}} |
{{!}} class="metainfobox-image" colspan="2" {{!}} {{{image}}}
{{!}}-
}}
<!---*****BIOGRAPHY SECTION*****--->
{{#if:{{{caption<includeonly>|</includeonly>}}} |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Biography
{{!}}-
{{!}} class="metainfobox-caption" colspan="2" {{!}} {{{caption}}}
{{!}}-
{{!}} class="metainfobox-header line" colspan="2" {{!}}
{{!}}-
}}
<!---*****BASIC SIMOLOGY*****--->
{{#if:{{{name<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{{name}}}
{{!}}-
}}
{{#if:{{{sex<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetGenderImage|{{{sex}}} }} {{#ifeq: {{{sex}}}| Ambiguous |[[Gender#Gender_ambiguity|Ambiguous]]|{{{sex}}} }}
<includeonly>{{#ifeq: {{lc:{{{sex}}}}}|
{{!}}-
}}
{{#if:{{{sex2<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetGender2Image|{{{sex2}}} }} {{#ifeq: {{{sex2}}}| Ambiguous |[[Gender#Gender_ambiguity|Ambiguous]]|{{{sex2}}} }}
<includeonly>{{#ifeq: {{lc:{{{sex2}}}}}|
{{!}}-
}}
{{#if:{{{age<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetStageImage|{{{age}}} }} {{{age}}}
<includeonly>{{GetStageCat|{{{age}}}}}</includeonly>
{{!}}-
}}
{{#if:{{{state<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetStateImage|{{{state}}} }} {{#ifeq:{{{state}}}|Mannequin|[[Mannequin (The Sims 2)|Mannequin]]|[[{{{state}}}]]}}
<includeonly>{{GetStateCat|{{{state}}}}}</includeonly>
{{!}}-
}}
{{#if:{{{state2<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetState2Image|{{{state2}}} }} [[{{{state2}}}]]
<includeonly>{{GetStateCat|{{{state2}}}}}</includeonly>
{{!}}-
}}
<!---*****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 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Education and employment
{{!}}-
{{#if:{{{school<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetSchoolImage|{{{school}}} }} {{{school}}}
<includeonly>{{GetSchoolCat|{{{school}}}}}</includeonly>
{{!}}-
}}
{{#if:{{{grade<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{{grade}}}
{{!}}-
}}
{{#if:{{{year<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{{year}}}
<includeonly>{{#
{{!}}-
}}
{{#if:{{{career<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetCareerImage|{{{career}}}|{{{game}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career}}} }}|{{{careerlevel}}}]] | {{{career}}} }}
<includeonly>{{Checkmns|{{GetCareerCat|{{{career}}}}}}}{{Checkfns|{{GetCareerCat|{{{career}}}}}}}</includeonly>
{{!}}-
}}
{{#if:{{{career2<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetCareer2Image|{{{career2}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career2}}} }}|{{{careerlevel}}}]] | {{{career2}}} }}
<includeonly>{{Checkmns|{{GetCareerCat|{{{career2}}}}}}}{{Checkfns|{{GetCareerCat|{{{career2}}}}}}}</includeonly>
{{!}}-
}}
{{#if:{{{career3<includeonly>|</includeonly>}}} |
{{!}}
{{!}}{{GetCareer3Image|{{{career3}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career3}}} }}|{{{careerlevel}}}]] | {{{career3}}} }}
<includeonly>{{Checkmns|{{GetCareerCat|{{{career3}}}}}}}{{Checkfns|{{GetCareerCat|{{{career3}}}}}}}</includeonly>
{{!}}-
}}
}}<!--Closing bracket for "Education and Employment" header section-->
<!---*****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 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} {{#if:{{{family<includeonly>|</includeonly>}}} | {{{family}}} | Family}}
{{!}}-
{{#if:{{{parents<includeonly>|</includeonly>}}} |
{{!}}
{{!}}
{{!}}-
}}
{{#if:{{{siblings<includeonly>|</includeonly>}}} |
{{!}} Siblings
{{!}}
{{!}}-
}}
{{#if:{{{maritalstatus<includeonly>|</includeonly>}}} |
{{!}}
{{!}}
<includeonly>{{GetMaritalCat|{{{maritalstatus}}}}}</includeonly>
{{!}}-
}}
{{#if:{{{spouse<includeonly>|</includeonly>}}} |
{{!}}
{{!}}
{{!}}-
}}
{{#if:{{{child<includeonly>|</includeonly>}}} |
{{!}} Children
<includeonly>{{#ifeq: {{lc:{{{child|}}}}}|
{{!}}-
}}
}}
<!---*****HOUSEHOLD/PETS*****--->
{{#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}}
{{!}}-
{{#if:{{{roommates<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{{roommates}}}
{{!}}-
}}
{{#if:{{{pets<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{{pets}}}
<includeonly>{{
{{!}}-
}}
}}<!--Closing bracket for "Household" header section-->
<!---*****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 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Personality
{{!}}-
<!--THE SIMS 3 / THE SIMS 4 TRAITS-->
{{#if:{{{trait1<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetTraitImage|{{{trait1}}}|{{{game}}} }}
<includeonly>{{GetTraitCat|{{{trait1}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{trait2<includeonly>|</includeonly>}}} |
{{!}} {{GetTraitImage|{{{trait2}}}|{{{game}}} }}
<includeonly>{{GetTraitCat|{{{trait2}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{trait3<includeonly>|</includeonly>}}} |
{{!}} {{GetTraitImage|{{{trait3}}}|{{{game}}} }} {{GetTraitLink|{{{trait3}}}|{{{game}}} }}
<includeonly>{{GetTraitCat|{{{trait3}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{trait4<includeonly>|</includeonly>}}} |
{{!}} {{GetTraitImage|{{{trait4}}}|{{{game}}} }} {{GetTraitLink|{{{trait4}}}|{{{game}}} }}
<includeonly>{{GetTraitCat|{{{trait4}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{trait5<includeonly>|</includeonly>}}} |
{{!}} {{GetTraitImage|{{{trait5}}}|{{{game}}} }} {{GetTraitLink|{{{trait5}}}|{{{game}}} }}
<includeonly>{{GetTraitCat|{{{trait5}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{trait6<includeonly>|</includeonly>}}} |
{{!}} {{GetTraitImage|{{{trait6}}}|{{{game}}} }} {{GetTraitLink|{{{trait6}}}|{{{game}}} }}
<includeonly>{{GetTraitCat|{{{trait6}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{trait7<includeonly>|</includeonly>}}} |
{{!}} {{GetTraitImage|{{{trait7}}}|{{{game}}} }} {{GetTraitLink|{{{trait7}}}|{{{game}}} }}
<includeonly>{{GetTraitCat|{{{trait7}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{hiddentrait1<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetTraitImage|{{{hiddentrait1}}}|{{{game}}} }}
<includeonly>{{GetTraitCat|{{{hiddentrait1}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{hiddentrait2<includeonly>|</includeonly>}}} |
{{!}} {{GetTraitImage|{{{hiddentrait2}}}|{{{game}}} }}
<includeonly>{{GetTraitCat|{{{hiddentrait2}}}|{{{game}}}}}</includeonly>
{{!}}-
}}
{{#if:{{{hiddentrait3<includeonly>|</includeonly>}}} |
{{!}}{{GetTraitImage|{{{hiddentrait3}}}|{{{game}}} }}
<includeonly>{{GetTraitCat|{{{hiddentrait3}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
<!--THE SIMS MEDIEVAL TRAITS/FLAWS-->
{{#if:{{{medievaltrait1<includeonly>|</includeonly>}}} |
{{!}} rowspan="{{#expr: 1+{{#if:{{{medievaltrait2<includeonly>|</includeonly>}}}|1|0}} }}
{{!}} {{GetMedievalTraitImage|trait|{{{medievaltrait1}}} }}
<includeonly>{{GetTraitCat|{{{medievaltrait1}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{medievaltrait2<includeonly>|</includeonly>}}} |
{{!}} {{GetMedievalTraitImage|trait|{{{medievaltrait2}}} }}
<includeonly>{{GetTraitCat|{{{medievaltrait2}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{flaw<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetMedievalTraitImage|flaw|{{{flaw}}} }} {{GetTraitLink|{{{flaw}}}|{{{game}}} }}
<includeonly>{{GetTraitCat|{{{flaw}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{legendary<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetMedievalTraitImage|legendary|{{{legendary}}} }}
<includeonly>{{GetTraitCat|{{{legendary}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
<!--ZODIAC-->
{{#if:{{{sign<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetSignImage|{{{sign}}} }}
<includeonly>{{
{{!}}-
}}
{{#if:{{{sign2<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetSign2Image|{{{sign2}}} }}
<includeonly>{{
{{!}}-
}}
<!--ASPIRATIONS (TS2/TS4)/LIFETIME WANT (TS2)/LIFETIME WISH (TS3)-->
{{#if:{{{asp<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetAspirationImage|{{{asp}}} }}
<includeonly>{{Checkmns|[[Category:{{{asp}}} Sims]]}}{{Checkfns|[[Category:{{{asp}}} Sims (fanon)]]}}</includeonly>
{{!}}-
}}
{{#if:{{{asp2<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetAspirationImage|{{{asp2}}} }}
<includeonly>{{Checkmns|[[Category:{{{asp2}}} Sims]]}}{{Checkfns|[[Category:{{{asp2}}} Sims (fanon)]]}}</includeonly>
{{!}}-
}}
{{#if:{{{asp3<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetAspiration3Image|{{{asp3}}} }}
{{!}}-
}}
{{#if:{{{want<includeonly>|</includeonly>}}} |
{{!}}
{{!}}
{{!}}-
}}
{{#if:{{{wish<includeonly>|</includeonly>}}} |
{{!}}
{{!}}
{{!}}-
}}
<!--FAVORITES-->
{{#ifeq: {{#expr: {{#if:{{{music|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{food|}}}|1|0}} or {{#if:{{{color|}}}|1|0}} }} | 1 |
{{!}}
{{#if:{{{music<includeonly>|</includeonly>}}} |
{{!}} {{GetFavoritesImage|music|{{{music}}} }} {{{music}}}
<includeonly>{{GetFavoritesCat|music|{{{music}}}}}</includeonly>
{{!}}-
}}
{{#if:{{{food<includeonly>|</includeonly>}}} |
{{!}} {{GetFavoritesImage|food|{{{food}}} }}
<includeonly>{{GetFavoritesCat|food|{{{food}}}}}</includeonly>
{{!}}-
}}
{{#if:{{{color<includeonly>|</includeonly>}}} |
{{!}} {{GetFavoritesImage|color|{{{color}}} }}
<includeonly>{{GetFavoritesCat|color|{{{color}}}}}</includeonly>
{{!}}-
Line 304 ⟶ 349:
}}<!--Closing bracket for "Favorites" section-->
}}<!--Closing bracket for "Personality" header section-->
<!---*****CHEMISTRY*****--->
{{#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
{{!}}-
{{#if:{{{turnon1<includeonly>|</includeonly>}}} |
{{!}} rowspan="{{#expr: 1+{{#if:{{{turnon2<includeonly>|</includeonly>}}}|1|0}} }}
{{!}} {{GetChemistryImage|{{{turnon1}}} }}
<includeonly>{{GetChemistryCat|turnon1|{{{turnon1}}}}}</includeonly>
{{!}}-
}}
{{#if:{{{turnon2<includeonly>|</includeonly>}}} |
{{!}} {{GetChemistryImage|{{{turnon2}}} }}
<includeonly>{{GetChemistryCat|turnon2|{{{turnon2}}}}}</includeonly>
{{!}}-
}}
{{#if:{{{turnoff<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetChemistryImage|{{{turnoff}}} }}
<includeonly>{{GetChemistryCat|turnoff|{{{turnoff}}}}}</includeonly>
{{!}}-
}}
}}<!--Closing bracket for "Chemistry" header section-->
<!---*****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 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Appearance
{{!}}-
{{#if:{{{hair<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetAppearanceImage|hair|{{{hair}}} }}
<includeonly>{{GetAppearanceCat|hair|{{{hair}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{hair2<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetAppearance2Image|hair|{{{hair2}}} }}
<includeonly>{{GetAppearanceCat|hair|{{{hair2}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{eye<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetAppearanceImage|eye|{{{eye}}} }}
<includeonly>{{GetAppearanceCat|eye|{{{eye}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{eye2<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetAppearance2Image|eye|{{{eye2}}} }}
<includeonly>{{GetAppearanceCat|eye|{{{eye2}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{skin<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetAppearanceImage|skin|{{{skin}}} }}
<includeonly>{{GetAppearanceCat|skin|{{{skin}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{skin2<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetAppearance2Image|skin|{{{skin2}}} }}
<includeonly>{{GetAppearanceCat|skin|{{{skin2}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{body<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetAppearanceImage|body|{{{body}}} }}
<includeonly>{{GetAppearanceCat|body|{{{body}}} }}</includeonly>
{{!}}-
Line 374 ⟶ 431:
<!---Editor note: Removed previously-defined parameter "build" that appeared to have no usage on the wiki. If this causes problems, please restore the body parameter - ~~LiR~~ --->
}}<!--Closing bracket for "Appearance" header section-->
<!---*****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
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Social standing
{{!}}-
{{#if:{{{celebritystatus<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetCelebrityImage|{{{celebritystatus}}} }}
<includeonly>{{
{{!}}-
}}
{{#if:{{{rep<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{{rep}}}
<includeonly>{{GetRepGroupCat|{{{rep}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{district<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{{district}}}
<includeonly>{{GetDistrictCat|{{{district}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{reputation<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetReputationImage|{{{reputation}}} }} {{{reputation}}}
{{!}}-
}}
{{#if:{{{social<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{{social}}}<includeonly>{{GetSocialClassCat|{{{social}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{group1<includeonly>|</includeonly>}}} |
{{!}} rowspan="{{#expr: 1+{{#if:{{{group2<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{group3<includeonly>|</includeonly>}}}|1|0}} }}"
{{!}} [[File:{{{group1}}} social group.png|20px]] {{{group1}}}
{{!}}-
}}
{{#if:{{{group2<includeonly>|</includeonly>}}} |
{{!}} [[File:{{{group2}}} social group.png|20px]] {{{group2}}}
<includeonly>{{GetSocialGroupCat|{{{group2}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{group3<includeonly>|</includeonly>}}} |
{{!}} [[File:{{{group3}}} social group.png|20px]] {{{group3}}}
<includeonly>{{GetSocialGroupCat|{{{group3}}} }}</includeonly>
{{!}}-
}}
{{#if:{{{club1<includeonly>|</includeonly>}}} |
{{!}} rowspan="{{#expr: {{#if:{{{club1<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{club2<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{club3<includeonly>|</includeonly>}}}|1|0}} }}"
{{!}} {{GetClub|{{{club1}}}}}
{{!}}-
}}
{{#if:{{{club2<includeonly>|</includeonly>}}} |
{{!}} {{GetClub|{{{club2}}}}}
{{!}}-
}}
{{#if:{{{club3<includeonly>|</includeonly>}}} |
{{!}} {{GetClub|{{{club3}}}}}
{{!}}-
}}
}}<!--Closing bracket for "
<!---*****OTHER INFORMATION*****--->
{{#ifeq: {{#expr: {{#if:{{{game|<noinclude>-</noinclude>
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Social standing
{{!}}-
{{#if:{{{game<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{GetGameIcon|{{{game}}}|{{{neighbor}}} }} ''[[{{{game}}}]]''
<includeonly>{{
{{!}}-
}}
{{#if:{{{play<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{{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>
{{!}}-
}}
{{#if:{{{cod<includeonly>|</includeonly>}}} |
{{!}}
{{!}} {{{cod}}}
<includeonly>{{GetCodCat|{{{cod}}}}}</includeonly>
{{!}}-
}}
{{#if:{{{neighbor<includeonly>|</includeonly>}}} |
{{!}} {{#switch:{{MGL|{{{game}}} }}
|TS3
|TS4=
|#default=
{{!}}{{Checkmns| {{#switch: {{{neighbor}}}
|Downtown = {{#ifeq:{{{game}}}|The Sims: Hot Date|[[Downtown (The Sims)|Downtown]]|[[Downtown (The Sims 2)|Downtown]]}}
Line 472 ⟶ 548:
<includeonly>{{Checkmns|[[Category:{{{neighbor}}} Sims]]}}{{Checkfns|[[Category:{{{neighbor}}} Sims (fanon)]]}}</includeonly>
{{!}}-
}}
}}<!--Closing bracket for "Other Information" header section-->
<!---*****FANON COMMENTS LINK*****-->
{{#ifeq: {{#expr: {{#if:{{{fanoncomments|<noinclude>-</noinclude>}}}|1|0}} }} | 1 |
{{!}}
}}<!--Closing bracket for "Fanon Comments" section-->
|}<noinclude>{{Documentation}}</noinclude>
|
Revision as of 02:18, 17 January 2018
NOT A "LIVE" TEMPLATE
This template is still being worked on and tested. Please do not use this template on any articles!
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}}
.
- Make the changes to
{{Infobox Sim/test}}
, add any new parameters to{{Infobox Sim1/test}}
,{{Infobox Sim2/test}}
or{{Infobox Sim3/test}}
- Preview the changes on an article page by changing the template to
{{Infobox SimX/test|...}}
. - 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
- Template:Infobox Sim1
- Template:Infobox Urb
- Template:Infobox Sim2
- Template:Infobox Sim3
- Template:Infobox Medsim
- 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?)