Template:Infobox pet/test: Difference between revisions
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>{{ |
<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 --> | {{ |
<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 = {{ |
|playable = {{Namespace detect |main=[[Category:Playable pets]] |fanon=[[Category:Playable pets (fanon)]] |custom content=[[Category:Playable pets (custom)]]}} |
||
|deceased = {{ |
|deceased = {{Namespace detect |main=[[Category:Deceased pets]] |fanon=[[Category:Deceased pets (fanon)]] |custom content=[[Category:Deceased pets (custom)]]}} |
||
|townie |
|townie |
||
|stray = {{ |
|stray = {{Namespace detect |main=[[Category:Strays]] |fanon=[[Category:Strays (fanon)]] |custom content=[[Category:Strays (custom)]]}} |
||
|npc = {{ |
|npc = {{Namespace detect |main=[[Category:NPCs]] |fanon=[[Category:NPCs (fanon)]] |custom content=[[Category:NPCs (custom)]]}} |
||
|family bin = {{ |
|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 = {{ |
|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 |
|||
|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]] |
||
| |
|{{Addlink|{{{neighbor}}}}} |
||
}} |
|||
}} }}{{Checkfns| {{#ifexist: Fanon:{{{neighbor}}}|[[Fanon:{{{neighbor}}}]]|{{{neighbor}}} }} }} |
|||
|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
- This template currently doesn't have any documentation! Help out by writing some.
Visit Template:Infobox pet/test/doc to edit this text! (How does this work?) (Refresh this text - why?)