Difference between revisions of "Template:Petbox"
Jump to navigation
Jump to search
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= | + | <br/> Item Power: {{#switch: {{lc:{{{colour|}}}}} |white=1|green=2|blue=31|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> }} | ||
{{!}}- | {{!}}- |
Revision as of 19:52, 12 October 2017
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
The above documentation is transcluded from Template:Petbox/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |