Template:Infobox pet: Difference between revisions

Update for CC namespace
sims>SimDestroyer
No edit summary
(Update for CC namespace)
 
(10 intermediate revisions by 4 users not shown)
Line 1:
<templatestyles src="Metainfobox/styles.css" />
{| 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:Pets]]}}{{Checkfns |fanon=[[Category:Pets (fanon)]] |custom content=[[Category:Pets (custom)]]}}</includeonly>
{{!}}-
 
Line 28 ⟶ 29:
{{#if:{{{species<includeonly>|</includeonly>}}} |
{{!}} Species
{{!}} {{#if:{{{species|}}}|{{GetSpeciesImage|{{{species}}} }} }} {{{species}}} {{GetSpeciesCat|species={{{species}}} |sex={{{sex}}} |age={{{age}}} }}
<includeonly>{{#ifeq:{{NAMESPACE}}| |{{#ifeq:{{{species|}}}| Cat |[[Category:{{{species}}}s]] [[Category:{{{sex}}} {{lc:{{{species}}}}}s]] {{#ifeq: {{{age|}}}| Kitten |[[Category:Kittens]]|[[Category:{{{age}}} {{lc:{{{species}}}}}s]]}} }}{{#ifeq:{{{species|}}}| Dog |[[Category:{{{species}}}s]] [[Category:{{{sex}}} {{lc:{{{species}}}}}s]] {{#ifeq: {{{age|}}}| Puppy |[[Category:Puppies]]|[[Category:{{{age}}} {{lc:{{{species}}}}}s]]}} }}{{#ifeq:{{{species|}}}| Wolf | [[Category:Wolves]] [[Category:{{{sex}}} wolves]] {{#ifeq: {{{age|}}}| Puppy |[[Category:Puppies]]|[[Category:{{{age}}} wolves]]}} }}{{#ifeq:{{{species|}}}| Horse |[[Category:{{{species}}}s]] [[Category:{{{sex}}} {{lc:{{{species}}}}}s]] {{#ifeq: {{{age|}}}| Foal |[[Category:Foals]]|[[Category:{{{age}}} {{lc:{{{species}}}}}s]]}} }} }}{{#ifeq:{{NAMESPACE}}| Fanon |[[Category:Pets (fanon)]] {{#ifeq:{{{species|}}}| Cat |[[Category:{{{species}}}s (fanon)]]}}{{#ifeq:{{{species|}}}| Dog |[[Category:{{{species}}}s (fanon)]]}}{{#ifeq:{{{species|}}}| Wolf | [[Category:Wolves (fanon)]]}}{{#ifeq:{{{species|}}}| Horse |[[Category:{{{species}}}s (fanon)]]}} }}</includeonly>
{{!}}-
}}
Line 47:
 
{{#ifeq: {{#expr: {{#if:{{{owner|<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
{{!}} {{{family}}}
{{!}}-
}}
 
{{#if:{{{owner<includeonly>|</includeonly>}}} |
Line 77 ⟶ 83:
{{!}} Offspring
{{!}} {{{child}}}
<includeonly>{{#ifeq: {{lc:{{{child|}}}}}| none | | {{#ifeq: {{lc:{{{child|}}}}}| unknown |<!-- Not known to have children --> | {{CheckmnsNamespace detect |main=[[Category:Parent {{lc:{{{species}}}}}s]]}} |fanon=[[Category:Parent {{Checkfnslc:{{{species}}}}}s (fanon)]] |custom content=[[Category:Parent {{lc:{{{species}}}}}s (fanoncustom)]]}} }} }}</includeonly>
{{!}}-
}}
Line 132 ⟶ 138:
{{!}} Playability
{{!}} {{{play}}}<includeonly>{{#switch: {{lc:{{{play}}}}}
|playable = {{CheckmnsNamespace detect |main=[[Category:Playable pets]]}}{{Checkfns |fanon=[[Category:Playable pets (fanon)]] |custom content=[[Category:Playable pets (custom)]]}}
|deceased = {{CheckmnsNamespace detect |main=[[Category:Deceased pets]]}}{{Checkfns |fanon=[[Category:Deceased pets (fanon)]] |custom content=[[Category:Deceased pets (custom)]]}}
|townie
|stray = {{CheckmnsNamespace detect |main=[[Category:Strays]]}}{{Checkfns |fanon=[[Category:Strays (fanon)]] |custom content=[[Category:Strays (custom)]]}}
|npc = {{CheckmnsNamespace detect |main=[[Category:NPCs]]}}{{Checkfns |fanon=[[Category:NPCs (fanon)]] |custom content=[[Category:NPCs (custom)]]}}
|family bin = {{CheckmnsNamespace detect |main=[[Category:Family bin pets]]}}{{Checkfns |fanon=[[Category:Family bin pets (fanon)]] |custom content=[[Category:Family bin pets (custom)]]}}
|lots and houses bin = {{CheckmnsNamespace detect |main=[[Category:Lots and houses bin pets]]}}{{Checkfns |fanon=[[Category:Lots and houses bin pets (fanon)]] |custom content=[[Category:Lots and houses bin pets (custom)]]}}
|gallery = {{Namespace detect |main = |[[Category:Gallery pets]] |fanon=[[Category:Gallery pets (fanon)]] |custom content=[[Category:Gallery pets (custom)]]}}
}}</includeonly>
{{!}}-
Line 148 ⟶ 155:
|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 154 ⟶ 162:
|Hobbies = [[Hobbies (neighborhood)|Hobbies]]
|Magic = [[Magic (neighborhood)|Magic]]
|[[{{Addlink|{{{neighbor}}}]]}}
}}
}} }}{{Checkfns| {{#ifexist: Fanon:{{{neighbor}}}|[[Fanon:{{{neighbor}}}]]|{{{neighbor}}} }} }}
<includeonly>{{Checkmns |fanon = {{#ifeqifexist: Fanon:{{{neighbor|}}}|Pets|[[Category:Pets from the pets sub-neighborhood]]|[[CategoryFanon:{{{neighbor}}} pets]]}} }}|{{CheckfnsAddlink|[[Category:{{{neighbor}}}}} pets (fanon)]]}}</includeonly>
|other = {{Addlink|{{{neighbor}}}}}
}}
 
<includeonly>{{Namespace detect |main={{#ifeq: {{{neighbor|}}}|Pets|[[Category:Pets from the pets sub-neighborhood]]|[[Category:{{Delink|{{{neighbor}}}}} pets]]}} |fanon=[[Category:{{Delink|{{{neighbor}}}}} pets (fanon)]] |custom=[[Category:{{Delink|{{{neighbor}}}}} pets (custom)]]}}</includeonly>
{{!}}-
}}
}}
 
<!---*****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>[[Category:Metainfobox templates|Pet]]{{clr}}{{Documentation}}</noinclude>