Template:Infobox Sim: Difference between revisions

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
sims>LostInRiverview
m (Clubs will now properly trigger appearance of Social Standing header)
(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)
 
(28 intermediate revisions by 7 users not shown)
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*****--->
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" cellpadding="1.5"
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}}
<includeonly>{{CheckmnsNamespace detect |main=[[Category:Sims]]}}{{Checkfns |fanon=[[Category:Sims (fanon)]] |custom=[[Category:Sims (custom)]]}}</includeonly>
{{!}}-
 
Line 27 ⟶ 19:
 
<!---*****BASIC SIMOLOGY*****--->
{{#if:{{{name<includeonly>|</includeonly>}}} |
{{!}} Name
{{!}} {{{name}}}
{{!}}-
}}
 
{{#if:{{{sex<includeonly>|</includeonly>}}} |
{{!}} Gender
{{!}} {{GetGenderImage|{{{sex}}} }} {{#ifeq: {{{sex}}}| Ambiguous |[[Gender#Gender_ambiguity|Ambiguous]]|{{{sex}}} }}
<includeonly>{{#ifeq: {{lc:{{{sex}}}}}| male |{{CheckmnsNamespace detect |main=[[Category:Male Sims]]}}{{Checkfns |fanon=[[Category:Male Sims (fanon)]] |custom=[[Category:Male Sims (custom)]]}} }}{{#ifeq: {{lc:{{{sex}}}}}| female |{{CheckmnsNamespace detect |main=[[Category:Female Sims]]}}{{Checkfns |fanon=[[Category:Female Sims (fanon)]] |custom=[[Category:Female Sims (custom)]]}} }}{{#ifeq: {{lc:{{{sex}}}}}| ambiguous |{{CheckmnsNamespace 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 ⟶ 31:
{{!}} Gender
{{!}} {{GetGender2Image|{{{sex2}}} }} {{#ifeq: {{{sex2}}}| Ambiguous |[[Gender#Gender_ambiguity|Ambiguous]]|{{{sex2}}} }}
<includeonly>{{#ifeq: {{lc:{{{sex2}}}}}| male |{{CheckmnsNamespace detect |main=[[Category:Male Sims]]}}{{Checkfns |fanon=[[Category:Male Sims (fanon)]] |custom=[[Category:Male Sims (custom)]]}} }}{{#ifeq: {{lc:{{{sex2}}}}}| female |{{CheckmnsNamespace detect |main=[[Category:Female Sims]]}}{{Checkfns |fanon=[[Category:Female Sims (fanon)]] |custom=[[Category:Female Sims (custom)]]}} }}{{#ifeq: {{lc:{{{sex2}}}}}| ambiguous |{{CheckmnsNamespace 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 ⟶ 59:
<!---*****BIOGRAPHY SECTION*****--->
{{#if:{{{caption<includeonly>|</includeonly>}}} |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Biography
{{!}}-
{{!}} class="metainfobox-caption" colspan="2" {{!}} {{{caption}}}
Line 77 ⟶ 66:
 
<!---*****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}} or {{#if:{{{degree|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Education and employment
{{!}}-
 
Line 97 ⟶ 86:
{{!}} Major
{{!}}[[File:{{{major}}}.png|20px]] {{{major}}}
<includeonly>{{CheckmnsNamespace detect |main=[[Category:{{{major}}} majors]]}} |fanon=[[Category:{{Checkfns{major}}} majors (fanon)]] |custom=[[Category:{{{major}}} majors (fanoncustom)]]}}</includeonly>
{{!}} Name-
}}
 
{{#if:{{{namedegree<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 ⟶ 99:
{{!}} Year
{{!}} {{{year}}}
<includeonly>{{#ifeq: {{lc:{{{year}}}}} | freshman | {{CheckmnsNamespace detect |main=[[Category:Freshmen]]}}{{Checkfns |fanon=[[Category:Freshmen (fanon)]] |custom=[[Category:Freshmen (custom)]]}} }}{{#ifeq: {{lc:{{{year}}}}} | sophomore | {{CheckmnsNamespace detect |main=[[Category:Sophomores]]}}{{Checkfns |fanon=[[Category:Sophomores (fanon)]] |custom=[[Category:Sophomores (custom)]]}} }}{{#ifeq: {{lc:{{{year}}}}} | junior | {{CheckmnsNamespace detect |main=[[Category:Juniors]]}}{{Checkfns |fanon=[[Category:Juniors (fanon)]] |custom=[[Category:Juniors (custom)]]}} }}{{#ifeq: {{lc:{{{year}}}}} | senior | {{CheckmnsNamespace detect |main=[[Category:Seniors]]}}{{Checkfns |fanon=[[Category:Seniors (fanon)]] |custom=[[Category:Seniors (custom)]]}} }}</includeonly>
{{!}}-
}}
Line 111 ⟶ 106:
{{!}} Career
{{!}} {{GetCareerImage|{{{career}}}|{{{game}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career}}} }}|{{{careerlevel}}}]] | {{{career}}} }}
<includeonly>{{CheckmnsNamespace detect |main={{GetCareerCat|{{{career}}}}}}} |fanon={{CheckfnsGetCareerCat|{{{career}}}}} |custom content={{GetCareerCat|{{{career}}}}} }}</includeonly>
{{!}}-
}}
Line 118 ⟶ 113:
{{!}} Career
{{!}} {{GetCareer2Image|{{{career2}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career2}}} }}|{{{careerlevel}}}]] | {{{career2}}} }}
<includeonly>{{CheckmnsNamespace detect |main={{GetCareerCat|{{{career2}}}}}}} |fanon={{CheckfnsGetCareerCat|{{{career2}}}}} |custom content={{GetCareerCat|{{{career2}}}}} }}</includeonly>
{{!}}-
}}
Line 125 ⟶ 120:
{{!}} Career
{{!}}{{GetCareer3Image|{{{career3}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career3}}} }}|{{{careerlevel}}}]] | {{{career3}}} }}
<includeonly>{{CheckmnsNamespace detect |main={{GetCareerCat|{{{career3}}}}}}} |fanon={{CheckfnsGetCareerCat|{{{career3}}}}} |custom content={{GetCareerCat|{{{career3}}}}} }}</includeonly>
{{!}}-
}}
Line 131 ⟶ 126:
 
<!---*****FAMILY*****--->
{{#ifeq: {{#expr: {{#if:{{{parentsfamily|<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 | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} {{#if:{{{family<includeonly>|</includeonly>}}} | {{{family}}} | Family}}
{{!}}-
 
{{#if:{{{family</includeonly>|</includeonly>}}} |
{{!}} Family/Families
{{!}} {{{namefamily}}}
{{!}}-
}}
 
{{#if:{{{parents<includeonly>|</includeonly>}}} |
Line 163 ⟶ 164:
{{!}} Children
{{!}} {{{child}}}
<includeonly>{{#ifeq: {{lc:{{{child|}}}}}| none | | {{#ifeq: {{lc:{{{child|}}}}}| unknown |<!-- Not known to have children --> | {{CheckmnsNamespace detect |main=[[Category:Parents]]}}{{Checkfns |fanon=[[Category:Parents (fanon)]] |custom=[[Category:Parents (custom)]]}} }} }}</includeonly>
{{!}}-
}}
Line 170 ⟶ 171:
<!---*****HOUSEHOLD/PETS*****--->
{{#ifeq: {{#expr: {{#if:{{{roommates|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{pets|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} {{#if:{{{household<includeonly>|</includeonly>}}} | {{{household}}} | Household}}
{{!}}-
 
{{#if:{{{household<includeonly>|</includeonly>}}} |
{{!}} Household
{{!}} {{{household}}}
{{!}}-
}}
 
{{#if:{{{roommates<includeonly>|</includeonly>}}} |
Line 182 ⟶ 189:
{{!}} Pets
{{!}} {{{pets}}}
<includeonly>{{CheckmnsNamespace detect |main=[[Category:Pet owners]]}}{{Checkfns |fanon=[[Category:Pet owners (fanon)]] |custom=[[Category:Pet owners (custom)]]}}</includeonly>
{{!}}-
}}
Line 189 ⟶ 196:
<!---*****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 | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Personality
{{!}}-
 
Line 287 ⟶ 294:
{{!}} Zodiac sign
{{!}} {{GetSignImage|{{{sign}}} }} {{{sign}}}
<includeonly>{{Checkmns|[[Category#if:{{{sign|}}} Sims]]}}|{{CheckfnsGetZodiacCat|[[Category:{{{sign}}} Sims}} (fanon)]]}}</includeonly>
{{!}}-
}}
Line 294 ⟶ 301:
{{!}} Zodiac sign
{{!}} {{GetSign2Image|{{{sign2}}} }} {{{sign2}}}
<includeonly>{{Checkmns|[[Category#if:{{{sign2|}}} Sims]]}}|{{CheckfnsGetZodiacCat|[[Category:{{{sign2}}} Sims}} (fanon)]]}}</includeonly>
{{!}}-
}}
Line 301 ⟶ 308:
{{#if:{{{asp<includeonly>|</includeonly>}}} |
{{!}} Aspiration
{{!}} {{GetAspirationImage|{{{asp}}}|{{{game}}} }} {{{asp}}}
<includeonly>{{CheckmnsGetAspirationCat|[[Category:{{{asp}}} Sims]]}}{{Checkfns|[[Category:{{{aspgame}}} Sims (fanon)]]}}</includeonly>
{{!}}-
}}
Line 308 ⟶ 315:
{{#if:{{{asp2<includeonly>|</includeonly>}}} |
{{!}} Secondary aspiration
{{!}} {{GetAspirationImage|{{{asp2}}}|{{{game}}} }} {{{asp2}}}
<includeonly>{{CheckmnsGetAspirationCat|[[Category:{{{asp2}}} Sims]]}}{{Checkfns|[[Category:{{{asp2game}}} Sims (fanon)]]}}</includeonly>
{{!}}-
}}
Line 315 ⟶ 322:
{{#if:{{{asp3<includeonly>|</includeonly>}}} |
{{!}} Aspiration
{{!}} {{GetAspiration3ImageGetAspirationImage|{{{asp3}}}|{{{game}}} }} {{{asp3}}}
<includeonly>{{GetAspirationCat|{{{asp3}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
Line 357 ⟶ 365:
<!---*****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 | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Chemistry
{{!}}-
 
Line 383 ⟶ 391:
<!---*****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 | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Appearance
{{!}}-
 
Line 439 ⟶ 447:
<!---*****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}} or {{#if:{{{club1|}}}|1|0}} or {{#if:{{{club2|}}}|1|0}} or {{#if:{{{club3|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Social standing
{{!}}-
 
Line 445 ⟶ 453:
{{!}} Celebrity status
{{!}} {{GetCelebrityImage|{{{celebritystatus}}} }}
<includeonly>{{CheckmnsNamespace detect |main=[[Category:Celebrities]]}}{{Checkfns |fanon=[[Category:Celebrities (fanon)]] |custom=[[Category:Celebrities (custom)]]}}</includeonly>
{{!}}-
}}
Line 513 ⟶ 521:
<!---*****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 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Other information
{{!}}-
 
Line 519 ⟶ 527:
{{!}} Game
{{!}} {{GetGameIcon|{{{game}}}|{{{neighbor}}} }} ''[[{{{game}}}]]''
<includeonly>{{Checkmns|{{GetGameCat|{{{game}}}}} }}</includeonly>
{{!}}-
}}
Line 526 ⟶ 534:
{{!}} Playability
{{!}} {{{play}}}
<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 || {{CheckmnsNamespace detect |main=[[Category:Sims that died young]]}}{{Checkfns |fanon=[[Category:Sims that died young (fanon)]] |custom=[[Category:Sims that died young (custom)]]}} }} }}</includeonly>
{{!}}-
}}
Line 542 ⟶ 550:
|TS4= World
|#default= Neighborhood}}
{{!}}{{Namespace detect
{{!}}{{Checkmns |main = {{#switch: {{{neighbor}}}
|Downtown = {{#ifeq:{{{game}}}|The Sims: Hot Date|[[Downtown (The Sims)|Downtown]]|[[Downtown (The Sims 2)|Downtown]]}}
|Pets = [[Pets (neighborhood)|Pets]]
Line 548 ⟶ 557:
|Hobbies = [[Hobbies (neighborhood)|Hobbies]]
|Magic = [[Magic (neighborhood)|Magic]]
|[[{{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-->
 
<!---*****FANON COMMENTS LINK***** --> not used on Miraheze
{{#ifeq: {{#expr: {{#if:{{{fanoncomments|<noinclude>-</noinclude>}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2"{{!}} {{{fanoncomments}}}
}}<!- - Closing bracket for "Fanon Comments" section-->
|}<noinclude>{{Documentation}}</noinclude>
{{clr}}
{{Documentation}}
</noinclude>