Template:Bonus: Difference between revisions
(Created page with "<includeonly>{{#ifeq:{{ucfirst:{{{1}}}}}|Unidentified|<span style="color:#F00;background-color:#AAA;padding:4px;">Unidentified</span>|<span style="color:#0F0;background-color:#AAA;padding:4px;">{{{1}}}</span>}}</includeonly><noinclude> == Description == <pre>{{bonus|<text>}}</pre> Displays a formatted version of the rarity/quality name. === Parameters === ;1 ''(unnamed parameter)'' : Text. Everything is formatted as a bonus (green) unless "unidentified" (red). == Exam...") |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{ucfirst:{{{1}}}}}|Unidentified|<span style="color:#F00;background-color:#AAA;padding:4px;">Unidentified</span>|<span style="color:#0F0;background-color:#AAA;padding:4px;">{{{1}}}</span>}}</includeonly><noinclude> | <includeonly>{{#ifeq:{{ucfirst:{{{1}}}}}|Unidentified|[[Item Bonus|<span style="color:#F00;background-color:#AAA;padding:4px;">Unidentified</span>]]|[[Item Bonus|<span style="color:#0F0;background-color:#AAA;padding:4px;">{{{1}}}</span>]]}}</includeonly><noinclude> | ||
== Description == | == Description == | ||
<pre>{{bonus|<text>}}</pre> | <pre>{{bonus|<text>}}</pre> | ||
| Line 12: | Line 12: | ||
* {{bonus|unidentified}} is produced from <code><nowiki>{{bonus|unidentified}}</nowiki></code> | * {{bonus|unidentified}} is produced from <code><nowiki>{{bonus|unidentified}}</nowiki></code> | ||
* {{bonus|health regeneration +10}} is produced from <code><nowiki>{{bonus|health regeneration +10}}</nowiki></code> | * {{bonus|health regeneration +10}} is produced from <code><nowiki>{{bonus|health regeneration +10}}</nowiki></code> | ||
[[Category:Formatting templates]] | |||
Latest revision as of 22:28, 21 February 2025
Description
{{bonus|<text>}}
Displays a formatted version of the rarity/quality name.
Parameters
- 1 (unnamed parameter)
- Text. Everything is formatted as a bonus (green) unless "unidentified" (red).
Examples
- Unidentified is produced from
{{bonus|unidentified}} - health regeneration +10 is produced from
{{bonus|health regeneration +10}}