Template:Infobox pet: Difference between revisions

no edit summary
sims>SimDestroyer
(Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image1"> <caption source="caption1"/> </image> <data...")
 
sims>SimDestroyer
No edit summary
Line 1:
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" cellpadding="1.5"
<infobox>
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}}
<title source="title1">
<includeonly>{{Checkmns|[[Category:Pets]]}}{{Checkfns|[[Category:Pets (fanon)]]}}</includeonly>
<default>{{PAGENAME}}</default>
{{!}}-
</title>
 
<image source="image1">
{{#if:{{{game<includeonly>|</includeonly>}}} |
<caption source="caption1"/>
{{!}} class="metainfobox-logo" colspan="2" {{!}} <small><center>{{GetGameImage|{{{game}}}|{{{neighbor|}}}}}</center></small>
</image>
{{!}}-
<data source="row1">
<label>Label</label>
</data>
<data source="row2">
<label>Label</label>
</data>
</infobox>
<noinclude>
Example usage:<pre>
{{Infobox pet
|title1=Example
|image1=Example
|caption1=Example
|row1=Example
|row2=Example
}}
 
</pre>
{{#if:{{{image<includeonly>|</includeonly>}}} |
</noinclude>
{{!}} class="metainfobox-image" colspan="2" {{!}} {{{image}}}
{{!}}-
}}
 
{{#if:{{{sex<includeonly>|</includeonly>}}} |
{{!}} Gender
{{!}} {{#if:{{{sex|}}}|{{GetGenderImage|{{{sex}}} }} }} {{{sex}}}
{{!}}-
}}
 
{{#if:{{{age<includeonly>|</includeonly>}}} |
{{!}} Age
{{!}} {{#ifeq:{{{species|}}}| Cat |{{#if:{{{age|}}}|{{GetPetStageImage|cat|{{{age}}} }} }} }}{{#ifeq:{{{species|}}}| Dog |{{#if:{{{age|}}}|{{GetPetStageImage|dog|{{{age}}} }} }} }} {{{age}}}
{{!}}-
}}
 
{{#if:{{{species<includeonly>|</includeonly>}}} |
{{!}} Species
{{!}} {{#if:{{{species|}}}|{{GetSpeciesImage|{{{species}}} }} }} {{{species}}}
<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>
{{!}}-
}}
 
{{#if:{{{breed<includeonly>|</includeonly>}}} |
{{!}} Breed
{{!}} {{{breed}}}
{{!}}-
}}
 
{{#if:{{{caption<includeonly>|</includeonly>}}} |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Biography
{{!}}-
{{!}} class="metainfobox-caption" colspan="2" {{!}} {{{caption}}}
{{!}}-
}}
 
{{#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:{{{owner<includeonly>|</includeonly>}}} |
{{!}} Owners
{{!}}{{{owner}}}
{{!}}-
}}
 
{{#if:{{{parents<includeonly>|</includeonly>}}} |
{{!}} Progenitors
{{!}} {{{parents}}}
{{!}}-
}}
 
{{#if:{{{siblings<includeonly>|</includeonly>}}} |
{{!}} Littermates
{{!}} {{{siblings}}}
{{!}}-
}}
 
{{#if:{{{mate<includeonly>|</includeonly>}}} |
{{!}} Mates
{{!}} {{{mate}}}
{{!}}-
}}
 
{{#if:{{{child<includeonly>|</includeonly>}}} |
{{!}} Offspring
{{!}} {{{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>
{{!}}-
}}
}}
 
{{#ifeq: {{#expr: {{#if:{{{trait1|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{trait2|}}}|1|0}} or {{#if:{{{trait3|}}}|1|0}} or {{#if:{{{trait4|}}}|1|0}} or {{#if:{{{trait5|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Personality
{{!}}-
 
{{#if:{{{trait1<includeonly>|</includeonly>}}} |
{{!}} rowspan="{{#expr: 1+{{#if:{{{trait2<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{trait3<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{trait4<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{trait5<includeonly>|</includeonly>}}}|1|0}} }}" {{!}} {{#ifeq: {{lc:{{{state2}}}}}| plumbot | Trait chips | Traits}}
{{!}} {{GetPetTraitImage|{{{trait1}}}|{{{game}}} }} {{GetPetTraitLink|{{{trait1}}}|{{{game}}} }}
<includeonly>{{GetPetTraitCat|{{{trait1}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
 
{{#if:{{{trait2<includeonly>|</includeonly>}}} |
{{!}} {{GetPetTraitImage|{{{trait2}}}|{{{game}}} }} {{GetPetTraitLink|{{{trait2}}}|{{{game}}} }}
<includeonly>{{GetPetTraitCat|{{{trait2}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
 
{{#if:{{{trait3<includeonly>|</includeonly>}}} |
{{!}} {{GetPetTraitImage|{{{trait3}}}|{{{game}}} }} {{GetPetTraitLink|{{{trait3}}}|{{{game}}} }}
<includeonly>{{GetPetTraitCat|{{{trait3}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
 
{{#if:{{{trait4<includeonly>|</includeonly>}}} |
{{!}} {{GetPetTraitImage|{{{trait4}}}|{{{game}}} }} {{GetPetTraitLink|{{{trait4}}}|{{{game}}} }}
<includeonly>{{GetPetTraitCat|{{{trait4}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
 
{{#if:{{{trait5<includeonly>|</includeonly>}}} |
{{!}} {{GetPetTraitImage|{{{trait5}}}|{{{game}}} }} {{GetPetTraitLink|{{{trait5}}}|{{{game}}} }}
<includeonly>{{GetPetTraitCat|{{{trait5}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
}}
 
{{#ifeq: {{#expr: {{#if:{{{game|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{play|}}}|1|0}} or {{#if:{{{neighbor|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Other information
{{!}}-
 
{{#if:{{{game<includeonly>|</includeonly>}}} |
{{!}} Game
{{!}} {{GetGameIcon|{{{game}}}|{{{neighbor}}} }} ''[[{{{game}}}]]''
<includeonly>{{Checkmns|[[Category:Pets from {{vgcoderev|{{{game}}}}}]] }}</includeonly>
{{!}}-
}}
 
{{#if:{{{play<includeonly>|</includeonly>}}} |
{{!}} Playability
{{!}} {{{play}}}<includeonly>{{#switch: {{lc:{{{play}}}}}
|playable = {{Checkmns|[[Category:Playable pets]]}}{{Checkfns|[[Category:Playable pets (fanon)]]}}
|deceased = {{Checkmns|[[Category:Deceased pets]]}}{{Checkfns|[[Category:Deceased pets (fanon)]]}}
|townie
|stray = {{Checkmns|[[Category:Strays]]}}{{Checkfns|[[Category:Strays (fanon)]]}}
|npc = {{Checkmns|[[Category:NPCs]]}}{{Checkfns|[[Category:NPCs (fanon)]]}}
|family bin = {{Checkmns|[[Category:Family bin pets]]}}{{Checkfns|[[Category:Family bin pets (fanon)]]}}
|lots and houses bin = {{Checkmns|[[Category:Lots and houses bin pets]]}}{{Checkfns|[[Category:Lots and houses bin pets (fanon)]]}}
}}</includeonly>
{{!}}-
}}
 
{{#if:{{{neighbor<includeonly>|</includeonly>}}} |
{{!}} {{#switch:{{MGL|{{{game}}} }}
|TS3
|TS4= World
|#default= Neighborhood}}
{{!}}{{Checkmns| {{#switch: {{{neighbor}}}
|Downtown = {{#ifeq:{{{game}}}|The Sims: Hot Date|[[Downtown (The Sims)|Downtown]]|[[Downtown (The Sims 2)|Downtown]]}}
|Pets = [[Pets (neighborhood)|Pets]]
|Weather = [[Weather (neighborhood)|Weather]]
|Hobbies = [[Hobbies (neighborhood)|Hobbies]]
|Magic = [[Magic (neighborhood)|Magic]]
|[[{{{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>
{{!}}-
}}
}}
 
{{#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}}}
}}
|}<noinclude>{{Documentation}}</noinclude>
Anonymous user