Difference between revisions of "Template:Infobox weapon"
Jump to navigation
Jump to search
Margotbean (talk | contribs) |
Margotbean (talk | contribs) (add type) |
||
Line 7: | Line 7: | ||
|colspan="2" id="infoboxdetail" style="text-align: center; font-style: italic;"|{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}} | |colspan="2" id="infoboxdetail" style="text-align: center; font-style: italic;"|{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}} | ||
|- | |- | ||
− | |colspan="2" id="infoboxsection" style="text-align: center;"|Information | + | |colspan="2" id="infoboxsection" style="text-align: center;"|Information<!-- |
− | |- | + | -->{{#if:{{{type|}}} | <nowiki /> |
− | + | {{!}}- | |
− | + | {{!}}id="infoboxsection"{{!}}Type: | |
− | + | {{!}}id="infoboxdetail"{{!}}{{ucfirst:{{{type|}}}}} |}}<!-- | |
− | + | -->{{#if:{{{level|}}} | <nowiki /> | |
− | + | {{!}}- | |
− | + | {{!}}id="infoboxsection"{{!}}Level: | |
− | + | {{!}}id="infoboxdetail"{{!}}{{{level|}}} |}}<!-- | |
− | + | -->{{#if:{{{source|}}} | <nowiki /> | |
− | |- | + | {{!}}- |
− | + | {{!}}id="infoboxsection"{{!}}Source: | |
− | + | {{!}}id="infoboxdetail"{{!}}{{{source|}}} |}}<!-- | |
− | {{#if:{{{stats|}}}|<nowiki/> | + | -->{{#if:{{{damage|}}} | <nowiki /> |
+ | {{!}}- | ||
+ | {{!}}id="infoboxsection"{{!}}Damage: | ||
+ | {{!}}id="infoboxdetail"{{!}}{{{damage|}}} |N/A}}<!-- | ||
+ | -->{{#if:{{{csc|}}} | <nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}}id="infoboxsection"{{!}}Critical Strike Chance: | ||
+ | {{!}}id="infoboxdetail"{{!}}{{{csc|}}} |}}<!-- | ||
+ | -->{{#if:{{{stats|}}}| <nowiki/> | ||
{{!}}- | {{!}}- | ||
{{!}}id="infoboxsection"{{!}}Stats: | {{!}}id="infoboxsection"{{!}}Stats: | ||
− | {{!}}id="infoboxdetail"{{!}}{{{stats|}}}|}} | + | {{!}}id="infoboxdetail"{{!}}{{{stats|}}} |}} |
|- | |- | ||
|colspan="2" id="infoboxsection" style="text-align: center;"|Adventurer's Guild | |colspan="2" id="infoboxsection" style="text-align: center;"|Adventurer's Guild |
Revision as of 17:59, 7 August 2019
Description
This template is used to provide a template that displays an infobox for clothing.
Use
This template can be used by entering the following onto a relevant page. Do not use this on your user page. It is reserved for content pages.
Parameters
{{Infobox weapon |name = Optional, populated by pagename if omitted |image = Weapon image (usually .png format) |description = Description (optional -- populated by Template:Description if omitted) |type = Optional, valid types are Sword, Club, Dagger, or Slingshot |level = Level of weapon |source = Where it comes from |damage = Range of weapon damage |csc = Critical Strike Chance |gprice = How much it costs to purchase at the Adventurer's Guild |value = How much you can sell it for at the Adventurer's Guild |stats = Defense, Speed, Weight, etc. (optional) }}
Example
{{Infobox weapon |name = Fake Example Sword |image = Pirate's Sword.png |description = {{Description|Pirate's Sword}} |type = Sword |level = 99 |source = [[Adventurer's Guild]], [[The Mines]] |damage = 08-14 |csc = .02 |gprice = 850 |value = 200 |stats = {{name|Defense|+3}}{{name|Crit. Power|-7}} }}
Fake Example Sword | |
It looks like a pirate owned this once. | |
Information | |
Type: | Sword |
Level: | 99 |
Source: | Adventurer's Guild, The Mines |
Damage: | 08-14 |
Critical Strike Chance: | .02 |
Stats: | ![]() ![]() |
Adventurer's Guild | |
Purchase Price: | ![]() |
Sell Price: | ![]() |
Error: {{#seo:}} must contain at least one non-empty attribute.