Difference between revisions of "Template:Damagetype/doc"
Jump to navigation
Jump to search
WikimanBot (talk | contribs) (Created page with ";Description :This template is used for styling of damage types. It is used by templates {{t|Mechanical}}, {{t|Heat}}, {{t|Cold}}, {{t|Electricity}}, {{t|Acid}}, {{t|Energy}},...") |
WikimanBot (talk | contribs) |
||
Line 1: | Line 1: | ||
;Description | ;Description | ||
:This template is used for styling of damage types. It is used by templates {{t|Mechanical}}, {{t|Heat}}, {{t|Cold}}, {{t|Electricity}}, {{t|Acid}}, {{t|Energy}}, {{t|Bio}}. | :This template is used for styling of damage types. It is used by templates {{t|Mechanical}}, {{t|Heat}}, {{t|Cold}}, {{t|Electricity}}, {{t|Acid}}, {{t|Energy}}, {{t|Bio}}. | ||
+ | |||
+ | ;Syntax | ||
+ | :Insert this template using one of the damage type names: <code><nowiki>{{Mechanical}}</nowiki></code>, <code><nowiki>{{Heat}}</nowiki></code>, <code><nowiki>{{Cold}}</nowiki></code>, <code><nowiki>{{Electricity}}</nowiki></code>, <code><nowiki>{{Acid}}</nowiki></code>, <code><nowiki>{{Energy}}</nowiki></code>, <code><nowiki>{{Bio}}</nowiki></code> | ||
+ | : Takes optional first parameter (anything goes) | ||
+ | : Takes optional second parameter (number only / no affix, number first / prefix, number last / suffix) | ||
+ | |||
+ | ;Example | ||
+ | :<code><nowiki>{{Mechanical}}</nowiki></code> results in {{Mechanical}} | ||
+ | :<code><nowiki>{{Heat|5-10}}</nowiki></code> results in {{Heat|5-10}} | ||
+ | :<code><nowiki>{{Cold|8-10|number only}}</nowiki></code> results in {{Cold|8-10|number only}} | ||
+ | :<code><nowiki>{{Electricity|127|prefix}}</nowiki></code> results in {{Electricity|127|prefix}} | ||
+ | :<code><nowiki>{{Acid|25-50|suffix}}</nowiki></code> results in {{Acid|25-50|suffix}} (same as no second parameter) | ||
+ | :<code><nowiki>{{Energy|???}}</nowiki></code> results in {{Energy|???}} (first parameter can be anything) | ||
+ | :<code><nowiki>{{Bio|(biological)|no affix}}</nowiki></code> results in {{Bio|(biological)|no affix}} (first parameter can be anything) | ||
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | <includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> |
Latest revision as of 08:50, 11 October 2017
- Description
- This template is used for styling of damage types. It is used by templates {{Mechanical}}, {{Heat}}, {{Cold}}, {{Electricity}}, {{Acid}}, {{Energy}}, {{Bio}}.
- Syntax
- Insert this template using one of the damage type names:
{{Mechanical}}
,{{Heat}}
,{{Cold}}
,{{Electricity}}
,{{Acid}}
,{{Energy}}
,{{Bio}}
- Takes optional first parameter (anything goes)
- Takes optional second parameter (number only / no affix, number first / prefix, number last / suffix)
- Example
{{Mechanical}}
results in Mechanical{{Heat|5-10}}
results in Heat: 5-10{{Cold|8-10|number only}}
results in 8-10{{Electricity|127|prefix}}
results in 127 Electricity{{Acid|25-50|suffix}}
results in Acid: 25-50 (same as no second parameter){{Energy|???}}
results in Energy: ??? (first parameter can be anything){{Bio|(biological)|no affix}}
results in (biological) (first parameter can be anything)