Template:Infobox pet: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
imported>AireDaleDogz (Added a check for pets that can be downloaded from The Sims 4 Gallery.) |
(Update for CC namespace) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<templatestyles src="Metainfobox/styles.css" /> |
|||
{| 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 28: | 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 83: | 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 138: | 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 = {{ |
|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> |
|||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
}} |
}} |
||
<!---*****FANON COMMENTS LINK***** - not used on Miraheze |
|||
{{#ifeq: {{#expr: {{#if:{{{fanoncomments|<noinclude>-</noinclude>}}}|1|0}} }} | 1 | |
{{#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}}} |
{{!}} class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2"{{!}} {{{fanoncomments}}} |
||
}} - Closing bracket for "Fanon Comments" section--> |
|||
⚫ | |||
|}<noinclude> |
|}<noinclude>{{clr}}{{Documentation}}</noinclude> |
Latest revision as of 15:45, 4 October 2020
Description
Infobox for pets.
Syntax
{{Infobox pet |name = |image = |caption = |sex = |age = |species = |breed = |trait1 = |trait2 = |trait3 = |trait4 = |trait5 = |owner = |parents = |siblings = |mate = |child = |family = |game = |play = |neighbor = }}
- See also: Template:Newpage Pet
Parameters
- name: Name of the Pet.
- image: [[File:Example.jpg|width]] The image should be no larger than 256px wide. The width may be left out if it is smaller than that.
- caption: Caption for the image.
- sex: Male or female
- species: Dog, Cat or Horse
- progenitors: Name of the progenitors
- mate: Name of mate(s)
- personal or trait1 ... trait5: The personalities of the pet (e.g: Loud, Vocal or Hushed, Hyper/Energetic, Laid back or Lazy, Clever/Genius, Sensible or Doofus, Pigpen or Finicky, Aggressive or Cowardly, Grouchy, Good-natured, or Highly Social, Independent, Compliant or Devoted, Friendly or Independent).
- child: List of offspring.
- family: Name of family, i.e.:
[[Goth Family]]
,[[Landgraab Family]]
, etc. - play: Playable, NPC, Deceased, Townie. If more than one applies you will also need to add the respective category markup, i.e.:
[[Category:Playable pets]]
,[[Category:NPCs]]
,[[Category:Deceased pets]]
, or[[Category:Townie pets]]
) - neighbor: The neighborhood they exist(ed) in, Family bin or Lots and Houses bin
Visit Template:Infobox pet/doc to edit this text! (How does this work?) (Refresh this text - why?)