Template:IO Set Comparison: Difference between revisions
Jump to navigation
Jump to search
imported>Lin Chiao Feng (Fixed up docs.) |
imported>Lin Chiao Feng (Updated for new templates. Hope it works.) |
||
Line 5: | Line 5: | ||
|mode=userformat | |mode=userformat | ||
|listseparators=,,\n, | |listseparators=,,\n, | ||
|includepage={InvSetOverview}ClassName.dpl,{ | |includepage={InvSetOverview}ClassName.dpl,{Set Bonus}-EffectLine.dpl | ||
|includematch=,/type[1-9]?\s*=\s*{{{type}}}/s | |includematch=,/class\s*=\s*{{{class}}}.+?type[1-9]?\s*=\s*{{{type}}}/s | ||
|shownamespace=false | |shownamespace=false | ||
}}|{{#dpl: | }}|{{#dpl: | ||
Line 12: | Line 12: | ||
|mode=userformat | |mode=userformat | ||
|listseparators=,,\n, | |listseparators=,,\n, | ||
|includepage={InvSetOverview}ClassName.dpl,{ | |includepage={InvSetOverview}ClassName.dpl,{Set Bonus}-EffectLine.dpl | ||
|includematch=,/class\s*=\s*{{{class}}}/s | |||
|shownamespace=false | |shownamespace=false | ||
}}}} | }}}} | ||
Line 21: | Line 22: | ||
;category | ;category | ||
:The category the invention sets are in. Takes the form: "Category:Sets that improve ___". Defaults to the page name. | :The category the invention sets are in. Takes the form: "Category:Sets that improve ___". Defaults to the page name. | ||
; | ;class | ||
:The class of set bonus. Required. Same as the | :The class of set bonus. Required. Same as the class parameter given to the Set Bonus template; see [[:Category:Set Bonus Templates|Set Bonus Templates]] for a complete list. Example: "All Powers" | ||
;type | ;type | ||
:The type of bonus. Required for those classes whose templates have type parameters. Example: "Accuracy" | :The type of bonus. Required for those classes whose templates have type parameters. Example: "Accuracy" | ||
==Example== | ==Example== | ||
<pre>{{IO Set Comparison|category=Category:Sets that improve Accuracy| | <pre>{{IO Set Comparison|category=Category:Sets that improve Accuracy|class=All Powers|type=Accuracy}}</pre> | ||
{{IO Set Comparison|category=Category:Sets that improve Accuracy| | {{IO Set Comparison|category=Category:Sets that improve Accuracy|class=All Powers|type=Accuracy}} | ||
</noinclude> | </noinclude> |
Revision as of 03:13, 21 August 2007
This template generates a table comparing the set bonuses from different classes. It takes up to three parameters:
- category
- The category the invention sets are in. Takes the form: "Category:Sets that improve ___". Defaults to the page name.
- class
- The class of set bonus. Required. Same as the class parameter given to the Set Bonus template; see Set Bonus Templates for a complete list. Example: "All Powers"
- type
- The type of bonus. Required for those classes whose templates have type parameters. Example: "Accuracy"
Example
{{IO Set Comparison|category=Category:Sets that improve Accuracy|class=All Powers|type=Accuracy}}