Difference between revisions of "Template:Rune infobox"

From Isleward Wiki
Jump to navigation Jump to search
Line 4: Line 4:
  
 
Has game description -->{{#if: {{{description|}}}|{{#set:Has game description={{{description}}}}}}}<!--
 
Has game description -->{{#if: {{{description|}}}|{{#set:Has game description={{{description}}}}}}}<!--
Has ability mana cost -->{{#if: {{{mana cost|}}}|{{#set:Has ability mana cost={{{mana cost}}}}}}}<!--
 
Has ability cooldown -->{{#if: {{{cooldown|}}}|{{#set:Has ability cooldown={{{cooldown}}}}}}}<!--
 
Has ability cast time -->{{#if: {{{cast time|}}}|{{#set:Has ability cast time={{{cast time}}}}}}}<!--
 
Has ability range -->{{#if: {{{range|}}}|{{#set:Has ability range={{{range}}}}}}}<!--
 
Has ability element -->{{#if: {{{element|}}}|{{#set:Has ability element={{{element}}}}}}}<!--
 
 
(Page top level heading) -->= {{PAGENAME}} =
 
(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::{{{icon|{{{name|{{PAGENAME}}}}}.png}}}|100x100px]]</div>
+
<div class="icon">[[Has game icon::File:{{{icon|{{{name|{{PAGENAME}}}}}.png}}}|100x100px]]</div>
 +
<div class="wrapper">
 +
<dl>
 +
{{#if: {{{mana cost|}}}|
 +
<dt>
 +
Mana cost
 +
</dt>
 +
<dd>
 +
[[Has ability mana cost::{{{mana cost}}}]]
 +
</dd>
 +
}}
 +
{{#if: {{{Cooldown|}}}|
 +
<dt>
 +
Cooldown
 +
</dt>
 +
<dd>
 +
[[Has ability cooldown::{{{cooldown}}}]]
 +
</dd>
 +
}}
 +
{{#if: {{{cast time|}}}|
 +
<dt>
 +
Cast time
 +
</dt>
 +
<dd>
 +
[[Has ability cast time::{{{cast time}}}]]
 +
</dd>
 +
}}
 +
{{#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>
 
</div>
 
{{#if: {{{description|}}}|{{quotation|game|{{{description}}}}}}}<!--
 
{{#if: {{{description|}}}|{{quotation|game|{{{description}}}}}}}<!--

Revision as of 00:26, 30 May 2022

Description

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

Usage

{{Rune infobox
| name =
| icon =
| description =
<!-- | rune icon -->

| mana cost =
| cooldown =
| cast time =
| range =
| element =
| stat type =
<!-- | stat mult = -->
| threat mult =
<!-- | aura effect = -->
<!-- | mana reserve = -->
<!-- | need los = -->
<!-- | is attack = -->
<!-- | use weapon range = -->
<!-- | auto = -->
}}

Parameters

All parameters are optional.

name
Ability name (without "Rune of"). Defaults to Rune infobox
icon
Ability icon filename. Defaults to File:<name>.png
description
Ability description