Difference between revisions of "Template:Petbox"
Jump to navigation
Jump to search
(Created page with "<includeonly><!-- ----------------------------- -- PAGE OR TRANSCLUSION ----- ----------------------------- -->{{#switch:{{PAGENAME}}|{{{name}}}|{{{name}}} (Elite)|{{{name}}}...") |
m |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
--><div style="float:right;"><div style="border:3px solid #bbbbbb; border-radius:15px; color:white; line-height:normal; background-color:#404040; padding:5px; width:285px;"> | --><div style="float:right;"><div style="border:3px solid #bbbbbb; border-radius:15px; color:white; line-height:normal; background-color:#404040; padding:5px; width:285px;"> | ||
{{{!}} width="275" cellpadding=2 | {{{!}} width="275" cellpadding=2 | ||
− | {{!}} style="border-bottom:1px solid #777777;" {{!}} [[File:{{{invicon|}}}| | + | {{!}} style="border-bottom:1px solid #777777;" {{!}} [[File:{{{invicon|}}}|30px]] |
+ | <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}}) | ||
+ | <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> }} | ||
{{!}}- | {{!}}- | ||
− | {{!}} {{#if:{{{invdesc|}}}|{{{invdesc}}}|Summons the {{font color| | + | {{!}} {{#if:{{{invdesc|}}}|{{{invdesc}}}|Summons the {{font color|darkorange|{{{name}}}}}}} pet. |
{{!}}} | {{!}}} | ||
</div> | </div> | ||
<div style="border:3px solid #bbbbbb; border-radius:15px; color:white; line-height:normal; background-color:#404040; padding:5px; float:right; width:285px;"> | <div style="border:3px solid #bbbbbb; border-radius:15px; color:white; line-height:normal; background-color:#404040; padding:5px; float:right; width:285px;"> | ||
{{{!}} width="275" cellpadding=2 | {{{!}} width="275" cellpadding=2 | ||
− | {{!}} style="border-bottom:1px solid #777777;" {{!}} [[File:{{{guiicon|}}}| | + | {{!}} 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> | ||
+ | <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/> | |
{{!}}- | {{!}}- | ||
{{!}} Source: {{{source}}} | {{!}} Source: {{{source}}} | ||
− | {{!}}} | + | {{!}}} <!-- |
− | </div></div | + | --></div></div> |
− | + | [[Category:Pets]] | |
− | + | {{#if: {{{sourcetype|}}} | [[Category:{{{sourcetype}}} pets]]}} | |
− | + | </includeonly> | |
− | [[Category:Pets]] | ||
− | |||
− | |||
− | |||
− | |||
− | }}</includeonly> | ||
<noinclude> | <noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 03:58, 22 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. |