Template:Resistance category page: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
Created page with "<includeonly>Creatures {{{2}}} to {{#switch: {{{3|}}} | nm = only non-magical sources of | m = only magical sources of | full = all (both non-magical and magical) | nm plus = non-magical and resistant to magical }} [[{{ucfirst: {{{1}}} }}]] damage.{{#if: {{{nocat|}}} | | [[Category:{{{2}}} to {{ucfirst: {{{1}}} }}]] }}</includeonly><noinclude> Creates a resistance (sub-)category page and adds it to an appropriate parent category. Example: <pre> {{Resistance category pa..."
 
mNo edit summary
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:
| nm = only non-magical sources of
| nm = only non-magical sources of
| m = only magical sources of
| m = only magical sources of
| full = all (both non-magical and magical)
| full = all, both non-magical and magical,
| nm plus = non-magical and resistant to magical
| nm plus = non-magical and resistant to magical
}} [[{{ucfirst: {{{1}}} }}]] damage.{{#if: {{{nocat|}}}
}} [[{{ucfirst: {{{1}}} }}]] damage.{{#if: {{{nocat|}}}
Line 13: Line 13:


<pre>
<pre>
{{Resistance category page|slashing|immune|nm plus}}
{{Resistance category page | slashing | immune | nm plus }}
</pre>
</pre>


Line 19: Line 19:


<blockquote>
<blockquote>
{{Resistance category page|slashing|immune|nm plus|nocat=1}}
{{Resistance category page | slashing | immune | nm plus | nocat = 1 }}
</blockquote>
</blockquote>


Line 60: Line 60:
}
}
</templatedata>
</templatedata>
 
[[Category:Templates]]
[[Category:Templates]][[Category:Page generating templates]]</noinclude>
[[Category:Page generating templates]]</noinclude>

Latest revision as of 08:42, 19 January 2025

Creates a resistance (sub-)category page and adds it to an appropriate parent category.

Example:

{{Resistance category page | slashing | immune | nm plus }}

Result:

Creatures immune to non-magical and resistant to magical Slashing damage.

Template data

No description.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
damage type1

Damage type

Stringrequired
resistance type2

Vulnerable, resistant, or immune?

Suggested values
vulnerable resistant immune
Stringrequired
resistance strength3

Non-magical, magical, full, or 'non-magical plus'?

Suggested values
nm m full nm plus
Stringoptional