Difference between revisions of "Template:Spell"

From sureai
Jump to: navigation, search
m (Attempting to fix collision with Book template)
(Redo template for space-saving, inline with Book template)
Line 1: Line 1:
{| style="margin: 0 auto"
+
{| style = "float: right; border-collapse: collapse; margin: 5px 5px 10px 20px; width: 300px; max-width: 400px; clear: right; "
| style="padding-right: 10px; " | {{#if: {{{image|}}} | [[File:{{{image}}}|right|60x60px]] |}}
+
| colspan = "4" style = "background: RGB(147, 56, 56); border-radius: 5px; text-align: center; color: white; font-weight: bold; " | <div style = " vertical-align: middle; text-align: center; font-size: 150%; " >{{{name|{{PAGENAME}}}}}</div>
| style="text-align: left; max-width: 400px; font-size: 150%; color: white;" | '''{{{name|{{PAGENAME}}}}}'''
+
 
|-
 
|-
| style="text-align: right; vertical-align: top; " | '''School:'''
+
| colspan = "4" | {{#if: {{{image|}}} |<center><div style = "padding: 5px 0 5px 0; center " >[[File:{{{image}}}|250x250px]]</div></center>|}}
| style="text-align: left; max-width: 300px;" | {{{school|-}}}
+
 
|-
 
|-
| style="text-align: right; vertical-align: top; " | '''Effect(s):'''
+
| style = "text-align: right; padding-right: 10px; width: 30%; " | '''Effect(s)'''
| style="text-align: left; max-width: 300px;" | {{{effects|-}}}
+
| colspan = 3 style = "text-align: left; " | {{{effects|-}}}
 
|-
 
|-
| style="text-align: right; vertical-align: top; " | '''Ranks:'''
+
| style = "text-align: right; padding-right: 10px; width: 30%; " | '''School'''
| style="text-align: left; max-width: 300px;" | {{{ranks|-}}}
+
| style = "width: 20%; " | {{{school|-}}}
|-
+
| style = "text-align: right; padding-right: 10px; width: 25%; " | '''Ranks'''
| style="text-align: right; vertical-align: top; " | '''Memories:'''
+
| style = "width: 25%; " | {{{ranks|-}}}
| style="text-align: left; max-width: 300px;" | {{{memories|-}}}
+
 
|-
 
|-
 +
| style = "text-align: right; padding-right: 10px; " | '''Memories'''
 +
| style = "width: 25%; " | {{{memories|-}}}
 
|}
 
|}
 
<noinclude>
 
<noinclude>
Line 40: Line 39:
 
| name = The Great Spell
 
| name = The Great Spell
 
| image = EN-Combat-Entropy-icon.png
 
| image = EN-Combat-Entropy-icon.png
| school = Entropy
+
| school = [[Enteral:Entropy|Entropy]]
 
| effects = Destroys the whole world
 
| effects = Destroys the whole world
 
| ranks = I to XX
 
| ranks = I to XX
Line 47: Line 46:
 
</pre>
 
</pre>
  
 +
<div style="display: inline-block; ">
 
{{Spell
 
{{Spell
 
| name = The Great Spell
 
| name = The Great Spell
 
| image = EN-Combat-Entropy-icon.png
 
| image = EN-Combat-Entropy-icon.png
| school = Entropy
+
| school = [[Enteral:Entropy|Entropy]]
 
| effects = Destroys the whole world
 
| effects = Destroys the whole world
 
| ranks = I to XX
 
| ranks = I to XX
 
| memories = [[Enderal:Mage#Sinistrope|Sinistrope]]
 
| memories = [[Enderal:Mage#Sinistrope|Sinistrope]]
 
}}
 
}}
 +
</div>
  
 
<pre>
 
<pre>
Line 63: Line 64:
 
</pre>
 
</pre>
  
 +
<div style="display: inline-block; ">
 
{{Spell
 
{{Spell
 
| name = The Boring Spell
 
| name = The Boring Spell
 
| effects = Summons a school textbook
 
| effects = Summons a school textbook
 
}}
 
}}
 +
</div>
  
 
<pre>
 
<pre>
Line 72: Line 75:
 
</pre>
 
</pre>
  
 +
<div style="display: inline-block; ">
 
{{Spell}}
 
{{Spell}}
 +
</div>
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 14:16, 21 March 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
EN-Combat-Entropy-icon.png
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 -