Template:Infobox Sim: Difference between revisions

Adding degree parameter for TS4:DU students
(Updating some more fields for the CC namespace)
imported>LostInRiverview
(Adding degree parameter for TS4:DU students)
Line 1:
</noinclude>{{Metabox
<noinclude>{{Widely-used}}{{era|PR}}</noinclude><templatestyles src="Metainfobox/styles.css" />
|type = notice
|image = Icon-warning-48x48.png
|headline = This template is used on thousands of pages
|text = 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 [[w:Help:User page|user space]], or in the [[The Sims Wiki:Sandbox|sandbox]]. Consider proposing your changes on the [[Template talk:Sim|talk page]] before editing this template.
|nocat = true
}}{{era|PR}}</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>{{Namespace detect Checkmns|main=[[Category:Sims]] }}{{Checkfns|fanon=[[Category:Sims (fanon)]] |custom=[[Category:Sims (custom)]]}}</includeonly>
{{!}}-
 
Line 23 ⟶ 29:
{{!}} Gender
{{!}} {{GetGenderImage|{{{sex}}} }} {{#ifeq: {{{sex}}}| Ambiguous |[[Gender#Gender_ambiguity|Ambiguous]]|{{{sex}}} }}
<includeonly>{{#ifeq: {{lc:{{{sex}}}}}| male |{{Namespace detect Checkmns|main=[[Category:Male Sims]] }}{{Checkfns|fanon=[[Category:Male Sims (fanon)]] |custom=[[Category:Male Sims (custom)]]}} }}{{#ifeq: {{lc:{{{sex}}}}}| female |{{Namespace detect Checkmns|main=[[Category:Female Sims]] }}{{Checkfns|fanon=[[Category:Female Sims (fanon)]] |custom=[[Category:Female Sims (custom)]]}} }}{{#ifeq: {{lc:{{{sex}}}}}| ambiguous |{{Namespace detect Checkmns|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 Checkmns|main=[[Category:Sims with no gender]] }}{{Checkfns|fanon=[[Category:Sims with no gender (fanon)]] |custom=[[Category:Sims with no gender (custom)]]}}</includeonly>}}
}}
 
Line 31 ⟶ 37:
{{!}} Gender
{{!}} {{GetGender2Image|{{{sex2}}} }} {{#ifeq: {{{sex2}}}| Ambiguous |[[Gender#Gender_ambiguity|Ambiguous]]|{{{sex2}}} }}
<includeonly>{{#ifeq: {{lc:{{{sex2}}}}}| male |{{Namespace detect Checkmns|main=[[Category:Male Sims]] }}{{Checkfns|fanon=[[Category:Male Sims (fanon)]] |custom=[[Category:Male Sims (custom)]]}} }}{{#ifeq: {{lc:{{{sex2}}}}}| female |{{Namespace detect Checkmns|main=[[Category:Female Sims]] }}{{Checkfns|fanon=[[Category:Female Sims (fanon)]] |custom=[[Category:Female Sims (custom)]]}} }}{{#ifeq: {{lc:{{{sex2}}}}}| ambiguous |{{Namespace detect Checkmns|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 Checkmns|main=[[Category:Sims with no gender]] }}{{Checkfns|fanon=[[Category:Sims with no gender (fanon)]] |custom=[[Category:Sims with no gender (custom)]]}}</includeonly>}}
}}
 
Line 66 ⟶ 72:
 
<!---*****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 86 ⟶ 92:
{{!}} Major
{{!}}[[File:{{{major}}}.png|20px]] {{{major}}}
<includeonly>{{Namespace detect Checkmns|main=[[Category:{{{major}}} majors]] |fanon=[[Category:}}{{{major}}} majors (fanon)]] Checkfns|custom=[[Category:{{{major}}} majors (customfanon)]]}}</includeonly>
{{clr!}}-
}}
 
{{#if:{{{degree<includeonly>|</includeonly>}}} |
{{!}} Degree
{{!}} [[File:TS4 Degree {{{degree}}}.png|20px|{{{degree}}} degree]] {{{degree}}}<includeonly>{{Checkmns|[[Category:{{{degree}}} students]]}}{{checkfns|[[Category:{{{degree}}} students (fanon)]]}}</includeonly>
{{!}}-
}}
Line 93 ⟶ 105:
{{!}} Year
{{!}} {{{year}}}
<includeonly>{{#ifeq: {{lc:{{{year}}}}} | freshman | {{Namespace detect Checkmns|main=[[Category:Freshmen]] }}{{Checkfns|fanon=[[Category:Freshmen (fanon)]] |custom=[[Category:Freshmen (custom)]]}} }}{{#ifeq: {{lc:{{{year}}}}} | sophomore | {{Namespace detect Checkmns|main=[[Category:Sophomores]] }}{{Checkfns|fanon=[[Category:Sophomores (fanon)]] |custom=[[Category:Sophomores (custom)]]}} }}{{#ifeq: {{lc:{{{year}}}}} | junior | {{Namespace detect Checkmns|main=[[Category:Juniors]] }}{{Checkfns|fanon=[[Category:Juniors (fanon)]] |custom=[[Category:Juniors (custom)]]}} }}{{#ifeq: {{lc:{{{year}}}}} | senior | {{Namespace detect Checkmns|main=[[Category:Seniors]] }}{{Checkfns|fanon=[[Category:Seniors (fanon)]] |custom=[[Category:Seniors (custom)]]}} }}</includeonly>
{{!}}-
}}
Line 100 ⟶ 112:
{{!}} Career
{{!}} {{GetCareerImage|{{{career}}}|{{{game}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career}}} }}|{{{careerlevel}}}]] | {{{career}}} }}
<includeonly>{{Namespace detect Checkmns|main={{GetCareerCat|{{{career}}}}} |fanon=}}{{GetCareerCat|{{{career}}}}} Checkfns|custom content={{GetCareerCat|{{{career}}}}} }}</includeonly>
{{!}}-
}}
Line 107 ⟶ 119:
{{!}} Career
{{!}} {{GetCareer2Image|{{{career2}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career2}}} }}|{{{careerlevel}}}]] | {{{career2}}} }}
<includeonly>{{Namespace detect Checkmns|main={{GetCareerCat|{{{career2}}}}} |fanon=}}{{GetCareerCat|{{{career2}}}}} Checkfns|custom content={{GetCareerCat|{{{career2}}}}} }}</includeonly>
{{!}}-
}}
Line 114 ⟶ 126:
{{!}} Career
{{!}}{{GetCareer3Image|{{{career3}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career3}}} }}|{{{careerlevel}}}]] | {{{career3}}} }}
<includeonly>{{Namespace detect Checkmns|main={{GetCareerCat|{{{career3}}}}} |fanon=}}{{GetCareerCat|{{{career3}}}}} Checkfns|custom content={{GetCareerCat|{{{career3}}}}} }}</includeonly>
{{!}}-
}}
Line 158 ⟶ 170:
{{!}} Children
{{!}} {{{child}}}
<includeonly>{{#ifeq: {{lc:{{{child|}}}}}| none | | {{#ifeq: {{lc:{{{child|}}}}}| unknown |<!-- Not known to have children --> | {{Namespace detect Checkmns|main=[[Category:Parents]] }}{{Checkfns|fanon=[[Category:Parents (fanon)]] |custom=[[Category:Parents (custom)]]}} }} }}</includeonly>
{{!}}-
}}
Line 183 ⟶ 195:
{{!}} Pets
{{!}} {{{pets}}}
<includeonly>{{Namespace detect Checkmns|main=[[Category:Pet owners]] }}{{Checkfns|fanon=[[Category:Pet owners (fanon)]] |custom=[[Category:Pet owners (custom)]]}}</includeonly>
{{!}}-
}}
Line 447 ⟶ 459:
{{!}} Celebrity status
{{!}} {{GetCelebrityImage|{{{celebritystatus}}} }}
<includeonly>{{Namespace detect Checkmns|main=[[Category:Celebrities]] }}{{Checkfns|fanon=[[Category:Celebrities (fanon)]] |custom=[[Category:Celebrities (custom)]]}}</includeonly>
{{!}}-
}}
Line 521 ⟶ 533:
{{!}} Game
{{!}} {{GetGameIcon|{{{game}}}|{{{neighbor}}} }} ''[[{{{game}}}]]''
<includeonly>{{Checkmns|{{GetGameCat|{{{game}}}}} }}</includeonly>
{{!}}-
}}
Line 528 ⟶ 540:
{{!}} 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 || {{Namespace detect Checkmns|main=[[Category:Sims that died young]] }}{{Checkfns|fanon=[[Category:Sims that died young (fanon)]] |custom=[[Category:Sims that died young (custom)]]}} }} }}</includeonly>
{{!}}-
}}
Line 544 ⟶ 556:
|TS4= World
|#default= Neighborhood}}
{{!}}{{Checkmns|main = {{#switch: {{{neighbor}}}
{{!}}{{Namespace detect
|main = {{#switch: {{{neighbor}}}
|Downtown = {{#ifeq:{{{game}}}|The Sims: Hot Date|[[Downtown (The Sims)|Downtown]]|[[Downtown (The Sims 2)|Downtown]]}}
|Pets = [[Pets (neighborhood)|Pets]]
Line 551 ⟶ 562:
|Hobbies = [[Hobbies (neighborhood)|Hobbies]]
|Magic = [[Magic (neighborhood)|Magic]]
|{{Addlink|[[{{{neighbor}}}}}]]
}} }}{{Checkfns| {{#ifexist: Fanon:{{{neighbor}}}|[[Fanon:{{{neighbor}}}]]|{{{neighbor}}} }} }}
}}
<includeonly>{{Checkmns|[[Category:{{{neighbor}}} Sims]]}}{{Checkfns|[[Category:{{{neighbor}}} Sims (fanon)]]}}</includeonly>
|other = {{Addlink|{{{neighbor}}}}}
}}
<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>