Template:Maneuver

From Fax Encyclopedicus

Jump to: navigation, search
Line 1: Line 1:
-
==={{{name}}}===
+
<includeonly>==={{{name|{{PAGENAME}}}}}===
-
{{{discipline}}} ({{{type}}}) [{{{desc}}}]<br>
+
<!--
-
'''Level:''' {{{level}}}<br>
+
 
-
'''Prerequisite:''' {{{prereq}}}<br>
+
-->{{ #if: {{{disc|}}} | {{{disc}}} <!-- no discipline entry --> }}<!--
-
'''Initiation Action:''' {{{init}}}<br>
+
 
-
'''Range:''' {{{range}}}<br>
+
-->{{ #if: {{{manType|}}} | &nbsp;({{{manType}}}) | <!-- no maneuver type entry --> }}<!--
-
'''Target:''' {{{target}}}<br>
+
 
-
'''Duration:''' {{{dur}}}<br>
+
-->{{ #if: {{{desc|}}} | &nbsp;[{{{desc}}}] | <!-- no descriptor entry --> }}<!--
-
'''Saving Throw:''' {{{save}}}
+
 
 +
-->{{ #if: {{{class1|}}} |
 +
* '''Level:''' {{{class1}}} {{{class1level}}}<!--
 +
  -->{{ #if: {{{class2|}}} | , {{{class2}}} {{{class2level}}}<!--
 +
    -->{{ #if: {{{class3|}}} | , {{{class3}}} {{{class3level}}}<!--
 +
      -->{{ #if: {{{class4|}}} | , {{{class4}}} {{{class4level}}}<!--
 +
        -->{{ #if: {{{class5|}}} | , {{{class5}}} {{{class5level}}}<!--
 +
          -->{{ #if: {{{class6|}}} | , {{{class6}}} {{{class6level}}}<!--
 +
            -->{{ #if: {{{class7|}}} | , {{{class7}}} {{{class7level}}}<!--
 +
              -->{{ #if: {{{class8|}}} | , {{{class8}}} {{{class8level}}}<!--
 +
                -->{{ #if: {{{class9|}}} | , {{{class9}}} {{{class9level}}}<!--
 +
                  -->{{ #if: {{{classX|}}} | , {{{classX}}} {{{classXlevel}}}<!--
 +
                  -->| <!-- no 10th class entry --> }}<!--
 +
                -->| <!-- no 9th class entry --> }}<!--
 +
              -->| <!-- no 8th class entry --> }}<!--
 +
            -->| <!-- no 7th class entry --> }}<!--
 +
          -->| <!-- no 6th class entry --> }}<!--
 +
        -->| <!-- no 5th class entry --> }}<!--
 +
      -->| <!-- no 4th class entry --> }}<!--
 +
    -->| <!-- no 3rd class entry --> }}<!--
 +
  -->| <!-- no 2nd class entry --> }}<!--
 +
-->| <!-- no 1st class entry, maybe plain level:
 +
 
 +
-->{{ #if: {{{level|}}} |
 +
* '''Level:''' {{{level}}} | <!-- no level entry --> }} }}<!--
 +
 
 +
-->{{ #if: {{{prereq|}}} |
 +
* '''Prerequisite:''' {{{prereq}}} | <!-- no prerequisite entry --> }}<!--
 +
 
 +
-->{{ #if: {{{time|}}} |
 +
* '''Initiation Action:''' {{{time}}} | <!-- no casting time entry --> }}<!--
 +
 
 +
-->{{ #if: {{{range|}}} |
 +
* '''Range:''' {{{range}}} | <!-- no range entry --> }}<!--
 +
 
 +
-->{{ #if: {{{target|}}} |
 +
* '''Target:''' {{{target}}} | <!-- no target entry --> }}<!--
 +
 
 +
-->{{ #if: {{{area|}}} |
 +
* '''Area:''' {{{area}}} | <!-- no area entry --> }}<!--
 +
 
 +
-->{{ #if: {{{effect|}}} |
 +
* '''Effect:''' {{{effect}}} | <!-- no effect entry --> }}<!--
 +
 
 +
-->{{ #if: {{{dur|}}} |
 +
* '''Duration:''' {{{dur}}} | <!-- no duration entry --> }}<!--
 +
 
 +
-->{{ #if: {{{save|}}} |
 +
* '''Saving Throw:''' {{{save}}} | <!-- no saving throw entry --> }}<!--
 +
 
 +
-->{{ #ifeq: {{NAMESPACE}} | Template | <!-- don't include templates in the categories --> | <!--
 +
 
 +
  -->{{ #if: {{{nocat|}}} | <!-- don't categorize when nocat is set --> |
 +
 
 +
[[Category:{{{type|Maneuvers}}}]]<!--
 +
 
 +
    -->{{ #if: {{{noclasscat|}}} | <!-- don't categorize for each class; use level
 +
 
 +
      -->{{ #if: {{{nolevelcat|}}} | <!-- unless nolevelcat is also set --> | <!--
 +
 
 +
        -->{{ #if: {{{level|}}} |
 +
[[Category:{{{type|Maneuvers}}} (Level {{{level}}})]] | <!--
 +
 
 +
no level entry supplied
 +
        --> }} <!--
 +
nolevelcat false
 +
      --> }} <!--
 +
noclasscat set
 +
    --> | <!--
 +
noclasscat not set, doing class categorization:
 +
 
 +
      -->{{ #if: {{{class1|}}} |
 +
[[Category:{{{class1|}}} {{{type|Maneuvers}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:{{{class1|}}} {{{type|Maneuvers}}} (Level {{{class1level}}})]] }}<!--
 +
 
 +
        -->{{ #if: {{{class2|}}} |
 +
[[Category:{{{class2|}}} {{{type|Maneuvers}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:{{{class2|}}} {{{type|Maneuvers}}} (Level {{{class2level}}})]] }}<!--
 +
 
 +
          -->{{ #if: {{{class3|}}} |
 +
[[Category:{{{class3|}}} {{{type|Maneuvers}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:{{{class3|}}} {{{type|Maneuvers}}} (Level {{{class3level}}})]] }}<!--
 +
 
 +
            -->{{ #if: {{{class4|}}} |
 +
[[Category:{{{class4|}}} {{{type|Maneuvers}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:{{{class4|}}} {{{type|Maneuvers}}} (Level {{{class4level}}})]] }}<!--
 +
 
 +
              -->{{ #if: {{{class5|}}} |
 +
[[Category:{{{class5|}}} {{{type|Maneuvers}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:{{{class5|}}} {{{type|Maneuvers}}} (Level {{{class5level}}})]] }}<!--
 +
 
 +
                -->{{ #if: {{{class6|}}} |
 +
[[Category:{{{class6|}}} {{{type|Maneuvers}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:{{{class6|}}} {{{type|Maneuvers}}} (Level {{{class6level}}})]] }}<!--
 +
 
 +
                  -->{{ #if: {{{class7|}}} |
 +
[[Category:{{{class7|}}} {{{type|Maneuvers}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:{{{class7|}}} {{{type|Maneuvers}}} (Level {{{class7level}}})]] }}<!--
 +
 
 +
                    -->{{ #if: {{{class8|}}} |
 +
[[Category:{{{class8|}}} {{{type|Maneuvers}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:{{{class8|}}} {{{type|Maneuvers}}} (Level {{{class8level}}})]] }}<!--
 +
 
 +
                      -->{{ #if: {{{class9|}}} |
 +
[[Category:{{{class9|}}} {{{type|Maneuvers}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:{{{class9|}}} {{{type|Maneuvers}}} (Level {{{class9level}}})]] }}<!--
 +
 
 +
                        -->{{ #if: {{{classX|}}} |
 +
[[Category:{{{classX|}}} {{{type|Maneuvers}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:{{{classX|}}} {{{type|Maneuvers}}} (Level {{{classXlevel}}})]] }}<!--
 +
 
 +
                        --> | <!-- no 10th class entry --> }}<!--
 +
                      --> | <!-- no 9th class entry --> }}<!--
 +
                    --> | <!-- no 8th class entry --> }}<!--
 +
                  --> | <!-- no 7th class entry --> }}<!--
 +
                --> | <!-- no 6th class entry --> }}<!--
 +
              --> | <!-- no 5th class entry --> }}<!--
 +
            --> | <!-- no 4th class entry --> }}<!--
 +
          --> | <!-- no 3rd class entry --> }}<!--
 +
        --> | <!-- no 2nd class entry --> }}<!--
 +
      --> | <!-- no 1st class entry, maybe plain level:
 +
 
 +
        -->{{ #if: {{{nolevelcat|}}} | <!-- unless nolevelcat is also set --> | <!--
 +
 
 +
          -->{{ #if: {{{level|}}} |
 +
[[Category:{{{type|Maneuvers}}} (Level {{{level}}})]] | <!--
 +
 
 +
no level entry supplied
 +
          --> }} <!--
 +
nolevelcat false
 +
        --> }} <!--
 +
class1 not set
 +
      --> }}<!--
 +
noclasscat not set
 +
    --> }}<!--
 +
nocat not set
 +
  --> }}<!--
 +
not template
 +
--> }}<!--
 +
 
 +
--></includeonly><noinclude><!--
 +
 
 +
-->This template is used to create spell (or similar) entries. The syntax is as follows; italics entries are optional.
 +
<nowiki>{{Power</nowiki>
 +
  | ''type''        = The type of effect being described. Defaults to "Maneuvers";
 +
                  used for categorizing, so use plurals.
 +
  | ''name''        = The maneuver's name. Defaults to the page's name.
 +
  | ''disc''        = The maneuver's discipline. If omitted, the Discipline line is omitted
 +
                  (including type and descriptors).
 +
  | ''manType''    = The maneuver's type, as in "Boost", "Counter", "Stance", or "Strike".
 +
                  The parentheses are added by the template.
 +
  | ''desc''        = The maneuver's descriptor(s). Brackets are added by the template.
 +
  | ''prereq''      = The maneuver's prerequisites. Defaults omitted.
 +
  | ''time''        = The maneuver's manifesting time. Defaults omitted.
 +
  | ''range''      = The maneuver's range. Defaults omitted.
 +
  | ''target''      = The maneuver's target. Defaults omitted.
 +
  | ''area''        = The maneuver's area. Defaults omitted.
 +
  | ''effect''      = The maneuver's effect. Defaults omitted.
 +
  | ''dur''        = The maneuver's duration. Defaults omitted.
 +
  | ''save''        = The maneuver's saving throw(s). Defaults omitted.
 +
  | ''class1''      = The first class that can use the power. Defaults omitted,
 +
                  and omits all classes and levels below.
 +
  | ''class1level'' = The maneuver's level for the first class
 +
  | ''class2''      = Second class
 +
  | ''class2level'' = Second class's maneuver level
 +
  ...
 +
  | ''class9''      = Ninth class
 +
  | ''class9level'' = Ninth class's maneuver level
 +
  | ''classX''      = Tenth class; template only supports 10 classes
 +
  | ''classXlevel'' = Tenth class's maneuver level
 +
  | ''level''      = Maneuverlevel, not tied to a class.
 +
                  Used only if no classes are used.
 +
  | ''nocat''      = If set at all, page with this template is
 +
                  not categorized at all.
 +
  | ''noclasscat''  = If set at all, page with this template is
 +
                  not added to each class's categories.
 +
  | ''nolevelcat''  = If set at all, page with this template is
 +
                  not added to each level's categories.
 +
}}
 +
 
 +
Any time <tt>class#</tt> is used, the corresponding <tt>class#level</tt> '''must''' also be assigned. The <tt>level</tt> parameter is ignored if <tt>class1</tt> is set, '''unless''' <tt>noclasscat</tt> is set and <tt>nolevelcat</tt> is not, in which case it may be used for categorization. If any <tt>class#</tt> is not set, all greater numbers are ignored.
 +
 
 +
This template assigns pages to the [[:Category:Maneuvers]] category (assuming <tt>type</tt> is left to default), and to the individual categories given by "<tt>class#</tt> Powers" and "<tt>class#</tt> Powers (Level <tt>class#level</tt>)". To remove this behavior, use <tt>nocat</tt>, <tt>noclasscat</tt>, and/or <tt>nolevelcat</tt> (primarily used when a page has a list of powers and to use these categories would insert the page in ''every'' level's category). Templates are never categorized in this manner.
 +
 
 +
== Example ==
 +
<pre>{{Maneuver
 +
  | name = Time Stands Still
 +
  | disc = Diamond Mind
 +
  | manType = Strike
 +
  | prereq = Four Diamond Mind maneuvers
 +
  | class1 = Swordsage
 +
  | class1level = 9
 +
  | class2 = Warblade
 +
  | class2level = 9
 +
  | time = 1 full-round action
 +
  | range = Personal
 +
  | target = You
 +
}}</pre>
 +
 
 +
{{Maneuver
 +
  | name = Time Stands Still
 +
  | disc = Diamond Mind
 +
  | manType = Strike
 +
  | prereq = Four Diamond Mind maneuvers
 +
  | class1 = Swordsage
 +
  | class1level = 9
 +
  | class2 = Warblade
 +
  | class2level = 9
 +
  | time = 1 full-round action
 +
  | range = Personal
 +
  | target = You
 +
}}
 +
 
 +
== See Also ==
 +
 
 +
* {{[[:Template:Spell|Spell]]}}
 +
* {{[[:Template:Power|Power]]}}
 +
 
 +
[[Category:Wiki Templates]]
 +
</noinclude>

Revision as of 01:17, 11 October 2010

Personal tools
Google AdSense