3,311
edits
sims>K6ka (adds hidden category if the "sex" parameter is not used or left blank) |
(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) |
||
(18 intermediate revisions by 6 users not shown) | |||
Line 1:
<noinclude>{{Widely-used}}{{era|PR}}</noinclude><templatestyles src="Metainfobox/styles.css" />
<noinclude>{{Metabox▼
<!---*****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>{{
{{!}}-
Line 29 ⟶ 23:
{{!}} Gender
{{!}} {{GetGenderImage|{{{sex}}} }} {{#ifeq: {{{sex}}}| Ambiguous |[[Gender#Gender_ambiguity|Ambiguous]]|{{{sex}}} }}
<includeonly>{{#ifeq: {{lc:{{{sex}}}}}| male |{{
{{!}}-
| {{#if:{{{sex2|}}}|<!-- If "sex2" used, ignore --> | <includeonly>{{
}}
Line 37 ⟶ 31:
{{!}} Gender
{{!}} {{GetGender2Image|{{{sex2}}} }} {{#ifeq: {{{sex2}}}| Ambiguous |[[Gender#Gender_ambiguity|Ambiguous]]|{{{sex2}}} }}
<includeonly>{{#ifeq: {{lc:{{{sex2}}}}}| male |{{
{{!}}-
| {{#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 71 ⟶ 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 91 ⟶ 86:
{{!}} Major
{{!}}[[File:{{{major}}}.png|20px]] {{{major}}}
<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 98 ⟶ 99:
{{!}} Year
{{!}} {{{year}}}
<includeonly>{{#ifeq: {{lc:{{{year}}}}} | freshman | {{
{{!}}-
}}
Line 105 ⟶ 106:
{{!}} Career
{{!}} {{GetCareerImage|{{{career}}}|{{{game}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career}}} }}|{{{careerlevel}}}]] | {{{career}}} }}
<includeonly>{{
{{!}}-
}}
Line 112 ⟶ 113:
{{!}} Career
{{!}} {{GetCareer2Image|{{{career2}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career2}}} }}|{{{careerlevel}}}]] | {{{career2}}} }}
<includeonly>{{
{{!}}-
}}
Line 119 ⟶ 120:
{{!}} Career
{{!}}{{GetCareer3Image|{{{career3}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career3}}} }}|{{{careerlevel}}}]] | {{{career3}}} }}
<includeonly>{{
{{!}}-
}}
Line 125 ⟶ 126:
<!---*****FAMILY*****--->
{{#ifeq: {{#expr: {{#if:{{{
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Family
{{!}}-
Line 163 ⟶ 164:
{{!}} Children
{{!}} {{{child}}}
<includeonly>{{#ifeq: {{lc:{{{child|}}}}}| none | | {{#ifeq: {{lc:{{{child|}}}}}| unknown |<!-- Not known to have children --> | {{
{{!}}-
}}
Line 188 ⟶ 189:
{{!}} Pets
{{!}} {{{pets}}}
<includeonly>{{
{{!}}-
}}
Line 293 ⟶ 294:
{{!}} Zodiac sign
{{!}} {{GetSignImage|{{{sign}}} }} {{{sign}}}
<includeonly>{{
{{!}}-
}}
Line 300 ⟶ 301:
{{!}} Zodiac sign
{{!}} {{GetSign2Image|{{{sign2}}} }} {{{sign2}}}
<includeonly>{{
{{!}}-
}}
Line 307 ⟶ 308:
{{#if:{{{asp<includeonly>|</includeonly>}}} |
{{!}} Aspiration
{{!}} {{GetAspirationImage|{{{asp}}}|{{{game}}} }} {{{asp}}}
<includeonly>{{
{{!}}-
}}
Line 314 ⟶ 315:
{{#if:{{{asp2<includeonly>|</includeonly>}}} |
{{!}} Secondary aspiration
{{!}} {{GetAspirationImage|{{{asp2}}}|{{{game}}} }} {{{asp2}}}
<includeonly>{{
{{!}}-
}}
Line 321 ⟶ 322:
{{#if:{{{asp3<includeonly>|</includeonly>}}} |
{{!}} Aspiration
{{!}} {{
<includeonly>{{GetAspirationCat|{{{asp3}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
Line 451 ⟶ 453:
{{!}} Celebrity status
{{!}} {{GetCelebrityImage|{{{celebritystatus}}} }}
<includeonly>{{
{{!}}-
}}
Line 525 ⟶ 527:
{{!}} Game
{{!}} {{GetGameIcon|{{{game}}}|{{{neighbor}}} }} ''[[{{{game}}}]]''
<includeonly>
{{!}}-
}}
Line 532 ⟶ 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 || {{
{{!}}-
}}
Line 548 ⟶ 550:
|TS4= World
|#default= Neighborhood}}
{{!}}{{Namespace detect
|Downtown = {{#ifeq:{{{game}}}|The Sims: Hot Date|[[Downtown (The Sims)|Downtown]]|[[Downtown (The Sims 2)|Downtown]]}}
|Pets = [[Pets (neighborhood)|Pets]]
Line 554 ⟶ 557:
|Hobbies = [[Hobbies (neighborhood)|Hobbies]]
|Magic = [[Magic (neighborhood)|Magic]]
|
}}
|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***** -
{{#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}}}
}}
|}<
{{clr}}
{{Documentation}}
|