Difference between revisions of "Template:Skill infobox"
(Fix errorneous category embedded in the documentation. Now shows properly and doesn't add template to Combat Skills page.) |
(Updated infobox to use new header image.) |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {| style="margin:1px; border:1px solid#423930; float:right; text-align:left; position:relative; border-radius:5px; background:#1e1615ff;" cellpadding="5" | |
− | {| style="margin: | + | ! colspan="2"|<div class="ib-tbl-hd">[[File:Button_Cyan.png|300px]]</div> <div class="ib-tbl-hdt">{{{title|title}}}</div> |
− | ! colspan="2" | ||
|- | |- | ||
− | | style= "width:250px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}_skill.png{{pipe}}300px{{pipe}}]]}}} <br><div style="font-size:14px;">{{{caption|}}}</div> | + | | style= "width:250px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}_skill.png{{pipe}}300px{{pipe}}]]}}} <br><div style="font-size:14px;color:#ffffff;">{{{caption|}}}</div> |
|- valign="top" | |- valign="top" | ||
− | ! style="background:#eee; width:100px;" align="center" | Skill Type: | + | ! style="background:#eee; color:#000000;border-radius:2px; width:100px;" align="center" | Skill Type: |
− | | {{{skilltype|-}}} | + | | <div class="block2" style="color:#ffffff;">{{{skilltype|-}}}</div> |
|- | |- | ||
− | ! style="background:#eee; width:100px;" align="center" | Max Level: | + | ! style="background:#eee; color:#000000;border-radius:2px; width:100px;" align="center" | Max Level: |
− | | {{{maxlevel|-}}} | + | | <div class="block2" style="color:#ffffff;">{{{maxlevel|-}}}</div> |
|- | |- | ||
{{ #if:{{{req|}}} | | {{ #if:{{{req|}}} | | ||
{{pipe}}- | {{pipe}}- | ||
− | ! style="background:#f4e6d4; width:100px;" align="center" {{pipe}} Requirements: | + | ! style="background:#f4e6d4; color:#000000;border-radius:2px; width:100px;" align="center" {{pipe}} Requirements: |
− | {{pipe}} {{{req}}} | + | {{pipe}} <div class="block2" style="color:#ffffff;">{{{req}}}</div> |
}} | }} | ||
{{ #if:{{{skilltrainers|}}} | | {{ #if:{{{skilltrainers|}}} | | ||
{{pipe}}- | {{pipe}}- | ||
− | ! style="background:#f5e0c7; width:100px;" align="center" {{pipe}} Skill Trainers: | + | ! style="background:#f5e0c7; color:#000000;border-radius:2px; width:100px;" align="center" {{pipe}} Skill Trainers: |
− | {{pipe}} {{{skilltrainers}}} | + | {{pipe}} <div class="block2" style="color:#ffffff;">{{{skilltrainers}}}</div> |
}} | }} | ||
|} | |} | ||
Line 26: | Line 25: | ||
| Template:Skill infobox = | | Template:Skill infobox = | ||
| Skill Template = | | Skill Template = | ||
− | | {{ #if:{{{skilltype|}}} | [[Category:{{{skilltype}}}s]] }} | + | | {{ #if: {{{skilltype|}}} | [[Category:{{{skilltype}}}s]] }}{{ #ifeq: {{{skilltype}}} | Beast Form | [[Category:Combat Skills]][[Category:Beast Skills]] }} |
}} | }} | ||
− | |||
<noinclude> | <noinclude> | ||
__NOTOC__ | __NOTOC__ | ||
Line 52: | Line 50: | ||
:Optional. | :Optional. | ||
;skilltype | ;skilltype | ||
− | :Required, Options:Combat Skill, Trade Skill, Beast Skill, Other Skill. | + | :Required, Options:Combat Skill, Trade Skill, Beast Skill, Other Skill, Anatomy Skill, Phrenology Skill. |
;maxlevel | ;maxlevel | ||
:Required, will remain blank on page. List the currently available max level for the skill (without bonuses). | :Required, will remain blank on page. List the currently available max level for the skill (without bonuses). |
Latest revision as of 10:41, 16 June 2019
title
| |
---|---|
File:Skill infobox skill.png | |
Skill Type: | -
|
Max Level: | -
|
Syntax
{{Skill infobox |title = |image = |caption = |skilltype = |maxlevel = |req = |skilltrainers = }}
Parameters
Long parameters will extend the width of the infobox. To keep it the correct size keep text short or use the "< br>" function
- title
- Not Optional. Defaults to article name.
- image
- Optional. Defaults to a .png image of the article's name. If specified, use
[[Image:pagename_skill.png|300px|]]
- caption
- Optional.
- skilltype
- Required, Options:Combat Skill, Trade Skill, Beast Skill, Other Skill, Anatomy Skill, Phrenology Skill.
- maxlevel
- Required, will remain blank on page. List the currently available max level for the skill (without bonuses).
- skilltrainers
- Optional. List NPCs that teach the skill.
Description
Create an attractive "info card" for Skills. This is another way to liven up the pages. It also provides a consistent "at a glance" information box with vital information that is consistent across all creatures. Note that the goal is not to cover everything that can fit into the card, as that is in the body of the article. If you have any suggestions for what should/could go in the infobox, please comment on the Talk page or the author's talk page.
- Automatic categories
- skilltype- Will automatically add a Category to the page based on skilltype. "Combat Skill" will auto-add "[[Category:Combat Skills]]. This will NOT happen on pages that have been specifically excluded, like this Template's own page and the Skill Template page.
Image
The typical usage is to use this in a new article, save, and THEN upload the image by clicking the image link (which then is pre-set with the article name) If an image already exists which name does not match the article name, or in a different format (png), specify it. If the image is larger/smaller the box will expand/shrink to fit it, have to specify what size you want it to appear(see below) keep in mind that the text will only be 300px in length.
Examples
Don't mind that the Titles are wrong, the title takes the name of the page it is created on.
Here you can see examples of what Hammer templates could look like. Please note the image format is wrong in this example.
{{Skill infobox |title = Hammer |image =[[File:Hammer (skill).jpg|300px]] |caption = If I had a hammer... |skilltype = Combat Skill |maxlevel = 60 |req = |skilltrainers = [[Agrashab]], [[Falkrin Overstrike]] }}
Hammer
| |
---|---|
If I had a hammer...
| |
Skill Type: | Combat Skill
|
Max Level: | 60
|
Skill Trainers: |