Template:Infobox Sim: Difference between revisions

Update some parts for new custom namespace
imported>SimDestroyer
(Made it so that "Family/Families" appear even when parents, siblings, children, etc. aren't listed.)
(Update some parts for new custom namespace)
Line 1:
<noinclude>{{Widely-used}}{{era|PR}}</noinclude><templatestyles src="Metainfobox/styles.css" />
<noinclude>{{Metabox
|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"
Line 106 ⟶ 100:
{{!}} 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 113 ⟶ 107:
{{!}} Career
{{!}} {{GetCareer2Image|{{{career2}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career2}}} }}|{{{careerlevel}}}]] | {{{career2}}} }}
<includeonly>{{CheckmnsNamespace detect |main={{GetCareerCat|{{{career2}}}}}}} |fanon={{CheckfnsGetCareerCat|{{{career2}}}}} |custom content={{GetCareerCat|{{{career2}}}}} }}</includeonly>
{{!}}-
}}
Line 120 ⟶ 114:
{{!}} Career
{{!}}{{GetCareer3Image|{{{career3}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career3}}} }}|{{{careerlevel}}}]] | {{{career3}}} }}
<includeonly>{{CheckmnsNamespace detect |main={{GetCareerCat|{{{career3}}}}}}} |fanon={{CheckfnsGetCareerCat|{{{career3}}}}} |custom content={{GetCareerCat|{{{career3}}}}} }}</includeonly>
{{!}}-
}}
Line 126 ⟶ 120:
 
<!---*****FAMILY*****--->
{{#ifeq: {{#expr: {{#if:{{{familyparents|<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" {{!}} Family
{{!}}-
Line 550 ⟶ 544:
|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 556 ⟶ 551:
|Hobbies = [[Hobbies (neighborhood)|Hobbies]]
|Magic = [[Magic (neighborhood)|Magic]]
|[[{{Addlink|{{{neighbor}}}]]}}
}}
}} }}{{Checkfns| {{#ifexist: Fanon:{{{neighbor}}}|[[Fanon:{{{neighbor}}}]]|{{{neighbor}}} }} }}
|fanon = {{Addlink|{{{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>
{{!}}-
}}
Line 567 ⟶ 565:
{{!}} 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}}
}}{{era|PRDocumentation}}</noinclude>