Difference between revisions of "Template:Petbox"

From CryGaia Wiki
Jump to navigation Jump to search
m
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
<span style="font-size:130%; color:#{{#switch:{{lc:{{{colour|}}}}}|white=ffffff|green=00ff16|blue=02b6ff|purple=d565f8|orange=ffd001}};">{{{name|}}}</span>
 
<span style="font-size:130%; color:#{{#switch:{{lc:{{{colour|}}}}}|white=ffffff|green=00ff16|blue=02b6ff|purple=d565f8|orange=ffd001}};">{{{name|}}}</span>
 
{{#ifeq: {{lc:{{{content|}}}}} | swl | <br/>Pet (Lv 1 {{#switch: {{lc:{{{colour|}}}}} |white=Worn|green=Standard|blue=Superior|purple=Epic|orange=Mythic|red=Heroic}})
 
{{#ifeq: {{lc:{{{content|}}}}} | swl | <br/>Pet (Lv 1 {{#switch: {{lc:{{{colour|}}}}} |white=Worn|green=Standard|blue=Superior|purple=Epic|orange=Mythic|red=Heroic}})
<br/> Item Power: {{#switch: {{lc:{{{colour|}}}}} |white=1|green=2|blue=Unknown|purple=91|orange=Unknown|red=Unknown}}}}
+
<br/> Item Power: {{#switch: {{lc:{{{colour|}}}}} |white=1|green=2|blue=51|purple=91|orange=Unknown|red=Unknown}}}}
 
{{#ifexpr: {{#ifeq:{{lc:{{{binds|}}}}}|no|0|1}} or {{#ifeq:{{lc:{{{unique|}}}}}|no|0|1}} | <br/><span style="color:#D3D3D3;"> {{#ifeq:{{lc:{{{binds|}}}}}|no||Binds when Picked Up}} {{#ifeq:{{lc:{{{unique}}}}}|no||<span style="float:right;">Unique</span>}}</span> }}
 
{{#ifexpr: {{#ifeq:{{lc:{{{binds|}}}}}|no|0|1}} or {{#ifeq:{{lc:{{{unique|}}}}}|no|0|1}} | <br/><span style="color:#D3D3D3;"> {{#ifeq:{{lc:{{{binds|}}}}}|no||Binds when Picked Up}} {{#ifeq:{{lc:{{{unique}}}}}|no||<span style="float:right;">Unique</span>}}</span> }}
 
{{!}}-
 
{{!}}-
Line 15: Line 15:
 
{{!}} style="border-bottom:1px solid #777777;" {{!}} [[File:{{{guiicon|}}}|30px]]  
 
{{!}} style="border-bottom:1px solid #777777;" {{!}} [[File:{{{guiicon|}}}|30px]]  
 
<span style="font-size:130%; color:#{{#switch:{{lc:{{{colour|}}}}}|white=ffffff|green=00ff16|blue=02b6ff|purple=d565f8|orange=ffd001}};">{{{name|}}}</span>
 
<span style="font-size:130%; color:#{{#switch:{{lc:{{{colour|}}}}}|white=ffffff|green=00ff16|blue=02b6ff|purple=d565f8|orange=ffd001}};">{{{name|}}}</span>
<br/> <span style="color:#D3D3D3;">{{#ifeq: {{lc:{{{content|}}}}} | swl | {{#switch: {{lc:{{{colour|}}}}} |white=Worn|green=Standard|blue=Superior|purple=Epic|orange=Mythic|red=Heroic}} | <span style="color:#D3D3D3;">{{#switch:{{lc:{{{colour}}}}}|green=Uncommon|blue=Rare|purple=Epic|orange=Heroic}} }}</span>
+
<br/> <span style="color:#D3D3D3;">{{#ifeq: {{lc:{{{content|}}}}} | swl | {{#switch: {{lc:{{{colour|}}}}} |white=Worn|green=Standard|blue=Superior|purple=Epic|orange=Mythic|red=Heroic}} | {{#switch:{{lc:{{{colour}}}}}|green=Uncommon|blue=Rare|purple=Epic|orange=Heroic}} }}</span>
 
{{!}}-
 
{{!}}-
 
{{!}} {{{description}}} <br/><br/>
 
{{!}} {{{description}}} <br/><br/>
 
{{!}}-
 
{{!}}-
 
{{!}} Source: {{{source}}}
 
{{!}} Source: {{{source}}}
{{!}}}
+
{{!}}} <!--
</div></div>
+
--></div></div>
 
[[Category:Pets]]
 
[[Category:Pets]]
 
{{#if: {{{sourcetype|}}} | [[Category:{{{sourcetype}}} pets]]}}
 
{{#if: {{{sourcetype|}}} | [[Category:{{{sourcetype}}} pets]]}}

Latest revision as of 03:58, 22 October 2017


[edit] [history] [purge] Documentation icon Template documentation

This template is to be used when creating Category:Pets pages.

The infobox will be beneficial in providing quick snippets of information to the user without forcing him/her to go rifling through blocks of text. They are very easy to use and will make the page look much better.

Usage

Place this at the very top of your page, and fill in the information provided (variable descriptions follow the code). If some variables don't have info, just ignore it, and it will be hidden in the template.

{{Petbox
|name = 
|invicon = 
|guiicon = 
|invdesc = 
|description = 
|source = 
|colour = 
|binds = 
|unique = 
}}

IMPORTANT

  • Do not add the you should not need to add any categories to the page when using this template. They are automatically set by the template!
  • Do not place brackets around Source. Page links are created by the template.

Parameters

Parameter Name Required Description Accepted Values Default
content no Is this article page for SWL or TSW swl, tsw tsw
name Yes The pet name. Used to assist with transclusions and additional templates. <text>
invicon Yes The icon that initially shows up in your inventory when you first receive the pet <filename>.<extension>
guiicon Yes The icon used by the Pet Inventory GUI <filename>.<extension>
invdesc No The description the icon has while it is in your inventory <text> "Summons the <pagename>"
description Yes The description of the pet from the Pet Inventory GUI <text>
source Yes Description name of where it came from, as per the Pet Inventory GUI
sourcetype no Generic source type, for categorization Mission, Achievement, Vendor, Bag, Item Store, Event, Item of the month
colour No The colour/rarity of the pet. White, Green, Blue, Purple, Orange, Red White
binds No Enter "no" if the inventory item for this pet does not bind No Yes
unique No Enter "no" if for some reason this pet is not unique while in your inventory No Yes

Notes

  • This infobox is almost never used on it's own, see Template:Petpage for creating a page that would use this template