Difference between revisions of "Template:Rune infobox"

From Isleward Wiki
Jump to navigation Jump to search
Line 3: Line 3:
 
PROPERTIES
 
PROPERTIES
  
Has canonical name -->{{#set:Has canonical name={{{name|{{PAGENAME}}}}}}}<!--
 
Has game icon -->{{#set:Has game icon={{{icon|{{{name|{{PAGENAME}}}}}}}}}}<!--
 
 
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 mana cost -->{{#if: {{{mana cost|}}}|{{#set:Has ability mana cost={{{mana cost}}}}}}}<!--
Line 11: Line 9:
 
Has ability range -->{{#if: {{{range|}}}|{{#set:Has ability range={{{range}}}}}}}<!--
 
Has ability range -->{{#if: {{{range|}}}|{{#set:Has ability range={{{range}}}}}}}<!--
 
Has ability element -->{{#if: {{{element|}}}|{{#set:Has ability element={{{element}}}}}}}<!--
 
Has ability element -->{{#if: {{{element|}}}|{{#set:Has ability element={{{element}}}}}}}<!--
(Page top level heading) -->= {{{name|{{PAGENAME}}}}} =
+
(Page top level heading) -->= {{PAGENAME}} =
 +
<div class="infobox">
 +
<div class="heading">[[Has canonical name::{{{name|{{PAGENAME}}}}}]]</div>
 +
<div class="icon">[[Has game icon::{{{icon|{{{name|{{PAGENAME}}}}}.png}}}|100x100px]]</div>
 +
</div>
 
{{#if: {{{description|}}}|{{quotation|game|{{{description}}}}}}}<!--
 
{{#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 25: Line 27:
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
== Description ==
 
== Description ==
 +
Creates an ability page for a rune, including the title, infobox, description quote, etc.
 +
Sets SMW properties.
  
 
== Usage ==
 
== Usage ==

Revision as of 00:21, 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