Difference between revisions of "Template:IO Set Comparison"
From Paragon Wiki Archive
(Fixed up docs.) |
(restricting output to items in Category:Invention Sets to avoid template errors) |
||
(46 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{| class="wikitable" | + | <includeonly>{| class="wikitable sortable" |
! Invention Set !! Type !! Levels !! # Enhs !! Bonus | ! Invention Set !! Type !! Levels !! # Enhs !! Bonus | ||
{{#if: {{{type|}}}|{{#dpl: | {{#if: {{{type|}}}|{{#dpl: | ||
− | |category={{{category|{{PAGENAME}}}}} | + | |category={{{category|{{PAGENAME}}}}}&Invention Sets |
|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: | ||
− | |category={{{category|{{PAGENAME}}}}} | + | |category={{{category|{{PAGENAME}}}}}&Invention Sets |
|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 | ||
}}}} | }}}} | ||
|} | |} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
− | + | {{documentation}}</noinclude> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | </noinclude> | + |
Latest revision as of 01:10, 22 May 2014
[edit] [ ] Documentation
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"
Known Issues
- This currently only shows items in Category:Invention Sets, as attuned sets are not set up to work properly with this template.
- Sets that provide the same kind of bonus more than once will render extra columns. See the entries for Calibrated Accuracy and Thunderstrike on Category:Sets that improve Ranged Defense as an example.
Example
{{IO Set Comparison|category=Category:Sets that improve Accuracy|class=All Powers|type=Accuracy}}