Template:Infobox pet/test: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
(Created page with "<templatestyles src="Metainfobox/styles.css" /> {| class="metainfobox {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</inclu...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" cellpadding="1.5"
{| 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}}}}}
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}}
<includeonly>{{Checkmns|[[Category:Pets]]}}{{Checkfns|[[Category:Pets (fanon)]]}}</includeonly>
<includeonly>{{Namespace detect |main=[[Category:Pets]] |fanon=[[Category:Pets (fanon)]] |custom content=[[Category:Pets (custom)]]}}</includeonly>
{{!}}-
{{!}}-


Line 29: Line 29:
{{#if:{{{species<includeonly>|</includeonly>}}} |
{{#if:{{{species<includeonly>|</includeonly>}}} |
{{!}} Species
{{!}} Species
{{!}} {{#if:{{{species|}}}|{{GetSpeciesImage|{{{species}}} }} }} {{{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 84: Line 83:
{{!}} Offspring
{{!}} Offspring
{{!}} {{{child}}}
{{!}} {{{child}}}
<includeonly>{{#ifeq: {{lc:{{{child|}}}}}| none | | {{#ifeq: {{lc:{{{child|}}}}}| unknown |<!-- Not known to have children --> | {{Checkmns|[[Category:Parent {{lc:{{{species}}}}}s]]}}{{Checkfns|[[Category:Parent {{lc:{{{species}}}}}s (fanon)]]}} }} }}</includeonly>
<includeonly>{{#ifeq: {{lc:{{{child|}}}}}| none | | {{#ifeq: {{lc:{{{child|}}}}}| unknown |<!-- Not known to have children --> | {{Namespace detect |main=[[Category:Parent {{lc:{{{species}}}}}s]] |fanon=[[Category:Parent {{lc:{{{species}}}}}s (fanon)]] |custom content=[[Category:Parent {{lc:{{{species}}}}}s (custom)]]}} }} }}</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 139: Line 138:
{{!}} Playability
{{!}} Playability
{{!}} {{{play}}}<includeonly>{{#switch: {{lc:{{{play}}}}}
{{!}} {{{play}}}<includeonly>{{#switch: {{lc:{{{play}}}}}
|playable = {{Checkmns|[[Category:Playable pets]]}}{{Checkfns|[[Category:Playable pets (fanon)]]}}
|playable = {{Namespace detect |main=[[Category:Playable pets]] |fanon=[[Category:Playable pets (fanon)]] |custom content=[[Category:Playable pets (custom)]]}}
|deceased = {{Checkmns|[[Category:Deceased pets]]}}{{Checkfns|[[Category:Deceased pets (fanon)]]}}
|deceased = {{Namespace detect |main=[[Category:Deceased pets]] |fanon=[[Category:Deceased pets (fanon)]] |custom content=[[Category:Deceased pets (custom)]]}}
|townie
|townie
|stray = {{Checkmns|[[Category:Strays]]}}{{Checkfns|[[Category:Strays (fanon)]]}}
|stray = {{Namespace detect |main=[[Category:Strays]] |fanon=[[Category:Strays (fanon)]] |custom content=[[Category:Strays (custom)]]}}
|npc = {{Checkmns|[[Category:NPCs]]}}{{Checkfns|[[Category:NPCs (fanon)]]}}
|npc = {{Namespace detect |main=[[Category:NPCs]] |fanon=[[Category:NPCs (fanon)]] |custom content=[[Category:NPCs (custom)]]}}
|family bin = {{Checkmns|[[Category:Family bin pets]]}}{{Checkfns|[[Category:Family bin pets (fanon)]]}}
|family bin = {{Namespace detect |main=[[Category:Family bin pets]] |fanon=[[Category:Family bin pets (fanon)]] |custom content=[[Category:Family bin pets (custom)]]}}
|lots and houses bin = {{Checkmns|[[Category:Lots and houses bin pets]]}}{{Checkfns|[[Category:Lots and houses bin pets (fanon)]]}}
|lots and houses bin = {{Namespace detect |main=[[Category:Lots and houses bin pets]] |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>
}}</includeonly>
{{!}}-
{{!}}-
Line 155: Line 155:
|TS4= World
|TS4= World
|#default= Neighborhood}}
|#default= Neighborhood}}
{{!}}{{Namespace detect
{{!}}{{Checkmns| {{#switch: {{{neighbor}}}
|main = {{#switch: {{{neighbor}}}
|Downtown = {{#ifeq:{{{game}}}|The Sims: Hot Date|[[Downtown (The Sims)|Downtown]]|[[Downtown (The Sims 2)|Downtown]]}}
|Downtown = {{#ifeq:{{{game}}}|The Sims: Hot Date|[[Downtown (The Sims)|Downtown]]|[[Downtown (The Sims 2)|Downtown]]}}
|Pets = [[Pets (neighborhood)|Pets]]
|Pets = [[Pets (neighborhood)|Pets]]
Line 161: Line 162:
|Hobbies = [[Hobbies (neighborhood)|Hobbies]]
|Hobbies = [[Hobbies (neighborhood)|Hobbies]]
|Magic = [[Magic (neighborhood)|Magic]]
|Magic = [[Magic (neighborhood)|Magic]]
|[[{{{neighbor}}}]]
|{{Addlink|{{{neighbor}}}}}
}}
}} }}{{Checkfns| {{#ifexist: Fanon:{{{neighbor}}}|[[Fanon:{{{neighbor}}}]]|{{{neighbor}}} }} }}
<includeonly>{{Checkmns|{{#ifeq: {{{neighbor|}}}|Pets|[[Category:Pets from the pets sub-neighborhood]]|[[Category:{{{neighbor}}} pets]]}} }}{{Checkfns|[[Category:{{{neighbor}}} pets (fanon)]]}}</includeonly>
|fanon = {{#ifexist: Fanon:{{{neighbor}}}|[[Fanon:{{{neighbor}}}]]|{{Addlink|{{{neighbor}}}}} }}
|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>
{{!}}-
{{!}}-
}}
}}

Latest revision as of 15:30, 4 October 2020

Infobox pet/test
{{{image}}}
Gender {{{sex}}}
Age {{{age}}}
Species {{{species}}}
Breed {{{breed}}}
Biography
{{{caption}}}
Family
Family/Families {{{family}}}
Owners {{{owner}}}
Progenitors {{{parents}}}
Littermates {{{siblings}}}
Mates {{{mate}}}
Offspring {{{child}}}
Personality
Traits {{{trait1}}}
{{{trait2}}}
{{{trait3}}}
{{{trait4}}}
{{{trait5}}}
Other information
Game [[{{{game}}}]]
Playability {{{play}}}
Neighborhood [[{{{neighbor}}}]]


Template documentation (View · Edit · History · Purge)
This template currently doesn't have any documentation! Help out by writing some.