Difference between revisions of "Template:Rune infobox"

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

Revision as of 01:07, 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 =
| rune icon =
| description =

| 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