Template:Maneuver
From Fax Encyclopedicus
Line 2: | Line 2: | ||
<!-- | <!-- | ||
- | -->{{ #if: {{{disc|}}} | {{{disc}}} <!-- no discipline entry --> }}<!-- | + | -->{{ #if: {{{disc|}}} | {{ #ifexist: {{{disc}}} | [[{{{disc}}}]] | {{{disc}}} }} | <!-- no discipline entry --> }}<!-- |
-->{{ #if: {{{manType|}}} | ({{{manType}}}) | <!-- no maneuver type entry --> }}<!-- | -->{{ #if: {{{manType|}}} | ({{{manType}}}) | <!-- no maneuver type entry --> }}<!-- | ||
Line 9: | Line 9: | ||
-->{{ #if: {{{class1|}}} | | -->{{ #if: {{{class1|}}} | | ||
- | * '''Level:''' {{{class1}}} {{{class1level}}}<!-- | + | * '''Level:''' {{ #ifexist: {{{class1}}} | [[{{{class1}}}]] | {{{class1}}} }} {{{class1level}}}<!-- |
- | -->{{ #if: {{{class2|}}} | , {{{class2}}} {{{class2level}}}<!-- | + | -->{{ #if: {{{class2|}}} | , {{ #ifexist: {{{class2}}} | [[{{{class2}}}]] | {{{class2}}} }} {{{class2level}}}<!-- |
- | -->{{ #if: {{{class3|}}} | , {{{class3}}} {{{class3level}}}<!-- | + | -->{{ #if: {{{class3|}}} | , {{ #ifexist: {{{class3}}} | [[{{{class3}}}]] | {{{class3}}} }} {{{class3level}}}<!-- |
- | -->{{ #if: {{{class4|}}} | , {{{class4}}} {{{class4level}}}<!-- | + | -->{{ #if: {{{class4|}}} | , {{ #ifexist: {{{class4}}} | [[{{{class4}}}]] | {{{class4}}} }} {{{class4level}}}<!-- |
- | -->{{ #if: {{{class5|}}} | , {{{class5}}} {{{class5level}}}<!-- | + | -->{{ #if: {{{class5|}}} | , {{ #ifexist: {{{class5}}} | [[{{{class5}}}]] | {{{class5}}} }} {{{class5level}}}<!-- |
- | -->{{ #if: {{{class6|}}} | , {{{class6}}} {{{class6level}}}<!-- | + | -->{{ #if: {{{class6|}}} | , {{ #ifexist: {{{class6}}} | [[{{{class6}}}]] | {{{class6}}} }} {{{class6level}}}<!-- |
- | -->{{ #if: {{{class7|}}} | , {{{class7}}} {{{class7level}}}<!-- | + | -->{{ #if: {{{class7|}}} | , {{ #ifexist: {{{class7}}} | [[{{{class7}}}]] | {{{class7}}} }} {{{class7level}}}<!-- |
- | -->{{ #if: {{{class8|}}} | , {{{class8}}} {{{class8level}}}<!-- | + | -->{{ #if: {{{class8|}}} | , {{ #ifexist: {{{class8}}} | [[{{{class8}}}]] | {{{class8}}} }} {{{class8level}}}<!-- |
- | -->{{ #if: {{{class9|}}} | , {{{class9}}} {{{class9level}}}<!-- | + | -->{{ #if: {{{class9|}}} | , {{ #ifexist: {{{class9}}} | [[{{{class9}}}]] | {{{class9}}} }} {{{class9level}}}<!-- |
- | -->{{ #if: {{{classX|}}} | , {{{classX}}} {{{classXlevel}}}<!-- | + | -->{{ #if: {{{classX|}}} | , {{ #ifexist: {{{classX}}} | [[{{{classX}}}]] | {{{classX}}} }} {{{classXlevel}}}<!-- |
-->| <!-- no 10th class entry --> }}<!-- | -->| <!-- no 10th class entry --> }}<!-- | ||
-->| <!-- no 9th class entry --> }}<!-- | -->| <!-- no 9th class entry --> }}<!-- | ||
Line 160: | Line 160: | ||
| ''desc'' = The maneuver's descriptor(s). Brackets are added by the template. | | ''desc'' = The maneuver's descriptor(s). Brackets are added by the template. | ||
| ''prereq'' = The maneuver's prerequisites. Defaults omitted. | | ''prereq'' = The maneuver's prerequisites. Defaults omitted. | ||
- | | ''time'' = The maneuver's | + | | ''time'' = The maneuver's initiation action. Defaults omitted. |
| ''range'' = The maneuver's range. Defaults omitted. | | ''range'' = The maneuver's range. Defaults omitted. | ||
| ''target'' = The maneuver's target. Defaults omitted. | | ''target'' = The maneuver's target. Defaults omitted. | ||
Line 189: | Line 189: | ||
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. | 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> | + | 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> Maneuvers" and "<tt>class#</tt> Maneuvers (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 == | == Example == |