Difference between revisions of "Template:Rune infobox"

From Isleward Wiki
Jump to navigation Jump to search
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><!--
 
<includeonly><!--
 
+
Page top level heading -->= {{PAGENAME}} =
PROPERTIES
 
 
 
Has game description -->{{#if: {{{description|}}}|{{#set:Has game description={{{description}}}}}}}<!--
 
(Page top level heading) -->= {{PAGENAME}} =
 
 
<div class="infobox">
 
<div class="infobox">
 
<div class="heading">[[Has canonical name::{{{name|{{PAGENAME}}}}}]]</div>
 
<div class="heading">[[Has canonical name::{{{name|{{PAGENAME}}}}}]]</div>
<div class="icon">[[Has game icon::File:{{{icon|{{{name|{{PAGENAME}}}}}.png}}}|100x100px]]</div>
+
<div class="icon">{{#if: {{{rune icon|}}}|[[Has ability rune icon::File:{{{rune icon}}}|100x100px]]}}<!--
<div class="wrapper">
+
-->[[Has game icon::File:{{{icon|{{{name|{{PAGENAME}}}}}.png}}}|100x100px]]</div><!--
<dl>
+
-->{{Ability infobox helper
{{#if: {{{mana cost|}}}|
+
|stat type={{{stat type|}}}
<dt>
+
|mana cost={{{mana cost|}}}
Mana cost
+
|cooldown={{{cooldown|}}}
</dt>
+
|cast time={{{cast time|}}}
<dd>
+
|range={{{range|}}}
[[Has ability mana cost::{{{mana cost}}}]]
+
|element={{{element|}}}
</dd>
+
|stat1={{{stat1|}}}
}}
+
|stat1 min={{{stat1 min|}}}
{{#if: {{{cooldown|}}}|
+
|stat1 max={{{stat1 max|}}}
<dt>
+
|stat2={{{stat2|}}}
Cooldown
+
|stat2 min={{{stat2 min|}}}
</dt>
+
|stat2 max={{{stat2 max|}}}
<dd>
+
|stat3={{{stat3|}}}
[[Has ability cooldown::{{{cooldown}}}]]
+
|stat3 min={{{stat3 min|}}}
</dd>
+
|stat3 max={{{stat3 max|}}}
}}
+
|stat4={{{stat4|}}}
{{#if: {{{cast time|}}}|
+
|stat4 min={{{stat4 min|}}}
<dt>
+
|stat4 max={{{stat4 max|}}}
Cast time
+
|stat5={{{stat5|}}}
</dt>
+
|stat5 min={{{stat5 min|}}}
<dd>
+
|stat5 max={{{stat5 max|}}}
[[Has ability cast time::{{{cast time}}}]]
+
}}</div><!--
</dd>
+
description quote -->{{#if: {{{description|}}}|{{quotation|game|[[Has game description::{{{description}}}]]}}}}<!--
}}
 
{{#if: {{{range|}}}|
 
<dt>
 
Range
 
</dt>
 
<dd>
 
[[Has ability range::{{{range}}}]]
 
</dd>
 
}}
 
{{#if: {{{element|}}}|
 
<dt>
 
Element
 
</dt>
 
<dd>
 
[[Has ability element::{{{element}}}]]
 
</dd>
 
}}
 
</dl>
 
</div>
 
</div>
 
{{#if: {{{description|}}}|{{quotation|game|{{{description}}}}}}}<!--
 
  
 
AUTOCATEGORIZATION
 
AUTOCATEGORIZATION
  
-->{{#if: {{NAMESPACE}}<!-- no categories if outside of article namespace -->
+
-->{{#if: {{NAMESPACE}} <!-- no categories if outside of article namespace -->
 
{{#ifeq: {{{categorize|y}}} | n | do not categorize | <!-- categorize --> }}
 
{{#ifeq: {{{categorize|y}}} | n | do not categorize | <!-- categorize --> }}
 
<!-- todo: categorize on status -->
 
<!-- todo: categorize on status -->
Line 63: Line 38:
 
<!-- categorize -->
 
<!-- categorize -->
 
[[Category:Runes]]
 
[[Category:Runes]]
}}
+
}}</includeonly><noinclude>
</includeonly><noinclude>
 
 
== Description ==
 
== Description ==
 
Creates an ability page for a rune, including the title, infobox, description quote, etc.
 
Creates an ability page for a rune, including the title, infobox, description quote, etc.
Line 73: Line 47:
 
| name =
 
| name =
 
| icon =
 
| icon =
 +
| rune icon =
 
| description =
 
| description =
<!-- | rune icon -->
 
  
 +
| stat type =
 
| mana cost =
 
| mana cost =
 
| cooldown =
 
| cooldown =
Line 81: Line 56:
 
| range =
 
| range =
 
| element =
 
| element =
| stat type =
+
 
<!-- | stat mult = -->
+
| stat1 =
 +
| stat1 min =
 +
| stat1 max =
 +
| stat2 =
 +
...
 +
}}
 +
 
 +
not implemented yet:
 +
| stat mult =
 
| threat mult =
 
| threat mult =
<!-- | aura effect = -->
+
| aura effect =
<!-- | mana reserve = -->
+
| mana reserve =
<!-- | need los = -->
+
| need los =
<!-- | is attack = -->
+
| is attack =
<!-- | use weapon range = -->
+
| use weapon range =
<!-- | auto = -->
+
| auto =
}}</pre>
+
| stat1 negative =
 +
| stat1 integer =
 +
</pre>
  
 
=== Parameters ===
 
=== Parameters ===
 
All parameters are optional.
 
All parameters are optional.
 
;name
 
;name
: Ability name (without "Rune of"). Defaults to <code>{{PAGENAME}}</code>
+
: Ability name (without "Rune of"). Defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>.
 
;icon
 
;icon
 
: Ability icon filename. Defaults to <code><nowiki>File:<name>.png</nowiki></code>
 
: Ability icon filename. Defaults to <code><nowiki>File:<name>.png</nowiki></code>
 +
;rune icon
 +
: Rune icon filename.
 
;description
 
;description
: Ability description
+
: Ability description.
 +
;stat type
 +
: Stats that scale the ability. One of Strength, Intellect, Dexterity. If there's two or more, separate them with a single comman.
 +
;mana cost
 +
: Ability mana cost.
 +
;cooldown
 +
: Ability cooldown.
 +
;cast time
 +
: Ability cast time.
 +
;range
 +
: Ability range.
 +
;element
 +
: Ability element. One of arcane, fire, frost, holy, poison, physical.
 +
;statN
 +
: Name of stat. Up to 5 stats (from stat1 to stat5) are supported.
 +
;statN min
 +
: Min roll of stat.
 +
;statN max
 +
: Max roll of stat.
  
 
</noinclude>
 
</noinclude>

Latest revision as of 09:55, 1 June 2022

Description[edit]

Creates an ability page for a rune, including the title, infobox, description quote, etc. Sets SMW properties.

Usage[edit]

{{Rune infobox
| name =
| icon =
| rune icon =
| description =

| stat type =
| mana cost =
| cooldown =
| cast time =
| range =
| element =

| stat1 =
| stat1 min =
| stat1 max =
| stat2 =
...
}}

not implemented yet:
| stat mult =
| threat mult =
| aura effect =
| mana reserve =
| need los =
| is attack =
| use weapon range =
| auto =
| stat1 negative =
| stat1 integer =

Parameters[edit]

All parameters are optional.

name
Ability name (without "Rune of"). Defaults to {{PAGENAME}}.
icon
Ability icon filename. Defaults to File:<name>.png
rune icon
Rune icon filename.
description
Ability description.
stat type
Stats that scale the ability. One of Strength, Intellect, Dexterity. If there's two or more, separate them with a single comman.
mana cost
Ability mana cost.
cooldown
Ability cooldown.
cast time
Ability cast time.
range
Ability range.
element
Ability element. One of arcane, fire, frost, holy, poison, physical.
statN
Name of stat. Up to 5 stats (from stat1 to stat5) are supported.
statN min
Min roll of stat.
statN max
Max roll of stat.