Difference between revisions of "Template:Ability infobox"

From Project: Gorgon Wiki
Jump to: navigation, search
m
m
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| style="margin:0 0 0.5em 1em; border:1px solid #ccc; float:right; text-align:left; background:#f9f9f9;" cellpadding="5"
+
{| style="margin:1px; border:1px solid#423930; float:right; text-align:left; position:relative; border-radius:5px; background:#1e1615ff;" cellpadding="5"
! colspan="2" style="font-size:17px; text-align:center; background-color:#7de36f;color:#185110;" | {{{name|{{PAGENAME}}}}}
+
! colspan="2"|<div class="ib-tbl-hd">[[File:Button_Orange.png|150px]]</div> <div class="ib-tbl-hdt">{{{name|name}}}</div>
 
|-
 
|-
! style="background:#eee;width:100px;" | Skill
+
| style= "width:300px;" colspan="2" align="center" | {{Ability icon|{{{name}}}}} <br><div class="block2" style="font-size:14px;color:#ffffff;">{{{caption|}}}</div>
| [[{{{skill|-}}}]]
 
 
|-
 
|-
! style="background:#eee;" | Min Level
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" | Description
| {{{level|-}}}
+
| <div class="block2" style="word-wrap:break-word; color:#ffffff;">{{{description|-}}}</div>
 
|-
 
|-
! style="background:#eee;" | Power Cost
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" | Skill
| {{{power cost|-}}}
+
| <div class="block2" style="color:#ffffff;">[[{{{skill|-}}}]]</div>
 
|-
 
|-
! style="background:#eee;" | Reuse Time
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" | Level
| {{{reuse time|-}}}
+
| <div class="block2" style="color:#ffffff;">{{{level|-}}}</div>
 
|-
 
|-
! style="background:#eee;" | Damage
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" | Damage
| {{{damage|-}}}
+
| <div class="block2" style="color:#ffffff;">{{{damage|-}}}</div>
 +
|-
 +
! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" | Power Cost
 +
| <div class="block2" style="color:#ffffff;">{{{power cost|-}}}</div>
 +
|-
 +
! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" | Reuse Time
 +
| <div class="block2" style="color:#ffffff;">{{{reuse time|-}}}</div>
 +
|-
 +
{{ #if:{{{ragemulti|}}}|{{pipe}}- valign="top"
 +
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Rage Multiplier:
 +
{{pipe}} <div class="block2" style="color:#ffffff;">{{{ragemulti}}}</div>
 +
}}
 +
|-
 +
! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" | Special
 +
| <div class="block2" style="color:#ffffff;">{{{special|-}}}</div>
 +
|-
 +
{{ #if:{{{keywords|}}}|{{pipe}}- valign="top"
 +
! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Keywords:
 +
{{pipe}} <div class="block2" style="color:#ffffff;">{{{keywords}}}</div>
 +
}}
 
|}
 
|}
  
; Description
+
<noinclude>
: {{{description|Description not provided (edit page).}}}
+
; name
 +
: Must be the name of the ability.
 +
; description
 +
: The in-game description of the ability.
 +
; skill
 +
: The associated skill the ability is part of.
 +
; level
 +
: The level required to use the ability.
 +
; damage
 +
: Information about the ability.
 +
; power cost
 +
: Information about the ability.
 +
; reuse time
 +
: Information about the ability.
 +
; special
 +
: Information about the ability. (Optional).
  
; Special
 
: {{{special|-}}}
 
  
<!-- categories -->
+
;Sample output
{{ #if: {{{skill|}}} | [[Category:{{{skill}}} abilities]] }}
+
{| class="wikitable"
<!-- end categories --><noinclude>
+
! Code !! Output
{{clear}}__NOTOC__
+
|-
==Syntax==
+
| <pre>{{Ability infobox
<pre>
+
| name = Warmthball
...
+
| description = Throw a vaguely painful ball of warmth.
</pre>
+
| skill = Fire Magic
 
+
| level = 0
==Parameters==
+
| damage = 8 Fire
; ...
+
| power cost = 0
: ...
+
| reuse time = 2
 
+
| range = 30 meters
==Description==
+
| ragemulti = 2
Work in progress.
+
| special = {{Attribute|BOOST_SKILL_FIREMAGIC|+5}}
 
+
| keywords = <p>{{KWAB|Attack}}{{KWAB|FireMagic}}{{KWAB|Fireball}}{{KWAB|FireMagicAttack}}</p><p>{{KWAB|Ranged}}{{KWAB|BasicAttack}}{{KWAB|CombatRefresh}}{{KWAB|FireSpell}}</p>
==Examples==
+
}}</pre>
WIP.
 
<pre>
 
 
{{Ability infobox
 
{{Ability infobox
 +
| name = Warmthball
 +
| description = Throw a vaguely painful ball of warmth.
 +
| skill = Fire Magic
 +
| level = 0
 +
| damage = 8 Fire
 +
| power cost = 0
 +
| reuse time = 2
 +
| range = 30 meters
 +
| ragemulti = 2
 +
| special = {{Attribute|BOOST_SKILL_FIREMAGIC|+5}}
 +
| keywords = <p>{{KWAB|Attack}}{{KWAB|FireMagic}}{{KWAB|Fireball}}{{KWAB|FireMagicAttack}}</p><p>{{KWAB|Ranged}}{{KWAB|BasicAttack}}{{KWAB|CombatRefresh}}{{KWAB|FireSpell}}</p>
 
}}
 
}}
</pre>
+
|}
 
 
 
[[Category:Formatting templates|Ability infobox]]
 
[[Category:Formatting templates|Ability infobox]]
 
</noinclude>
 
</noinclude>

Latest revision as of 14:48, 19 March 2020

Button Orange.png
name
Error: Ability not found
Description
-
Skill
Level
-
Damage
-
Power Cost
-
Reuse Time
-
Special
-


name
Must be the name of the ability.
description
The in-game description of the ability.
skill
The associated skill the ability is part of.
level
The level required to use the ability.
damage
Information about the ability.
power cost
Information about the ability.
reuse time
Information about the ability.
special
Information about the ability. (Optional).


Sample output
Code Output
{{Ability infobox
| name = Warmthball
| description = Throw a vaguely painful ball of warmth.
| skill = Fire Magic
| level = 0
| damage = 8 Fire
| power cost = 0
| reuse time = 2
| range = 30 meters
| ragemulti = 2
| special = {{Attribute|BOOST_SKILL_FIREMAGIC|+5}}
| keywords = <p>{{KWAB|Attack}}{{KWAB|FireMagic}}{{KWAB|Fireball}}{{KWAB|FireMagicAttack}}</p><p>{{KWAB|Ranged}}{{KWAB|BasicAttack}}{{KWAB|CombatRefresh}}{{KWAB|FireSpell}}</p>
}}
Button Orange.png
Warmthball
icon_2239.png
Description
Throw a vaguely painful ball of warmth.
Skill
Level
0
Damage
8 Fire
Power Cost
0
Reuse Time
2
Rage Multiplier:
2
Special
icon_108.png Fire Magic Damage
 
+5
Keywords: