Difference between revisions of "Template:Spell"
From sureai
(Created a spell template) |
m (Fix rounded corners in newer Firefox versions) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {| style="margin: | + | {| style = "float: right; border-collapse: collapse; margin: 5px 5px 10px 20px; width: 300px; max-width: 400px; clear: right; " |
− | | style=" | + | | colspan = "4" style = "text-align: center; color: white; font-weight: bold; " | <div style = "background: RGB(147, 56, 56); border-radius: 5px; vertical-align: middle; text-align: center; font-size: 150%; " >{{{name|{{PAGENAME}}}}}</div> |
− | | style=" | + | |
|- | |- | ||
− | | | + | | colspan = "4" | {{#if: {{{image|}}} |<center><div style = "padding: 5px 0 5px 0; center " >[[File:{{{image}}}|250x250px]]</div></center>|}} |
− | | style=" | + | |
|- | |- | ||
− | | style="text-align: right; | + | | style = "text-align: right; padding-right: 10px; width: 30%; " | '''Effect(s)''' |
− | | style="text-align: left | + | | colspan = 3 style = "text-align: left; " | {{{effects|-}}} |
|- | |- | ||
− | | style="text-align: right; | + | | style = "text-align: right; padding-right: 10px; width: 30%; " | '''School''' |
− | | style=" | + | | style = "width: 20%; " | {{{school|-}}} |
− | + | | style = "text-align: right; padding-right: 10px; width: 25%; " | '''Ranks''' | |
− | | style="text-align: right; | + | | style = "width: 25%; " | {{{ranks|-}}} |
− | | style=" | + | |
|- | |- | ||
+ | | style = "text-align: right; padding-right: 10px; " | '''Memories''' | ||
+ | | style = "width: 25%; " | {{{memories|-}}} | ||
|} | |} | ||
+ | <noinclude> | ||
+ | == Usage == | ||
+ | === Parameters === | ||
+ | ''All parameters are optional.'' | ||
+ | |||
+ | * '''Text Parameters:''' image, name, school, effects, ranks, memories | ||
+ | |||
+ | If the parameter "name" is left empty, the template will use the current page's title (without the namespace) as the spell name. | ||
+ | |||
+ | === Available Images === | ||
+ | <gallery mode = "nolines" showfilename = true> | ||
+ | File:EN-Combat-Elementarism-icon.png | ||
+ | File:EN-Combat-Light Magic-icon.png | ||
+ | File:EN-Combat-Mentalism-icon.png | ||
+ | File:EN-Combat-Psionics-icon.png | ||
+ | File:EN-Combat-Entropy-icon.png | ||
+ | </gallery> | ||
+ | |||
+ | == Examples == | ||
+ | |||
+ | <pre> | ||
+ | {{Spell | ||
+ | | name = The Great Spell | ||
+ | | image = EN-Combat-Entropy-icon.png | ||
+ | | school = [[Enteral:Entropy|Entropy]] | ||
+ | | effects = Destroys the whole world | ||
+ | | ranks = I to XX | ||
+ | | memories = [[Enderal:Mage#Sinistrope|Sinistrope]] | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | <div style="display: inline-block; "> | ||
+ | {{Spell | ||
+ | | name = The Great Spell | ||
+ | | image = EN-Combat-Entropy-icon.png | ||
+ | | school = [[Enteral:Entropy|Entropy]] | ||
+ | | effects = Destroys the whole world | ||
+ | | ranks = I to XX | ||
+ | | memories = [[Enderal:Mage#Sinistrope|Sinistrope]] | ||
+ | }} | ||
+ | </div> | ||
+ | |||
+ | <pre> | ||
+ | {{Spell | ||
+ | | name = The Boring Spell | ||
+ | | effects = Summons a school textbook | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | <div style="display: inline-block; "> | ||
+ | {{Spell | ||
+ | | name = The Boring Spell | ||
+ | | effects = Summons a school textbook | ||
+ | }} | ||
+ | </div> | ||
+ | |||
+ | <pre> | ||
+ | {{Spell}} | ||
+ | </pre> | ||
+ | |||
+ | <div style="display: inline-block; "> | ||
+ | {{Spell}} | ||
+ | </div> | ||
+ | |||
+ | [[Category:Templates]] | ||
+ | </noinclude> |
Latest revision as of 15:39, 25 June 2017
Spell
| |||
Effect(s) | - | ||
School | - | Ranks | - |
Memories | - |
Usage
Parameters
All parameters are optional.
- Text Parameters: image, name, school, effects, ranks, memories
If the parameter "name" is left empty, the template will use the current page's title (without the namespace) as the spell name.
Available Images
Examples
{{Spell | name = The Great Spell | image = EN-Combat-Entropy-icon.png | school = [[Enteral:Entropy|Entropy]] | effects = Destroys the whole world | ranks = I to XX | memories = [[Enderal:Mage#Sinistrope|Sinistrope]] }}
The Great Spell
| |||
| |||
Effect(s) | Destroys the whole world | ||
School | Entropy | Ranks | I to XX |
Memories | Sinistrope |
{{Spell | name = The Boring Spell | effects = Summons a school textbook }}
The Boring Spell
| |||
Effect(s) | Summons a school textbook | ||
School | - | Ranks | - |
Memories | - |
{{Spell}}
Spell
| |||
Effect(s) | - | ||
School | - | Ranks | - |
Memories | - |