Template:Armour class value: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(add tooltip)
(Updated documentation)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<div class="bg3wiki-ac-value" aria-label="Armour class: {{{1}}}">
<includeonly><div class="bg3wiki-ac-value" style="grid-template-columns: 42px; 1fr">
<div>[[File:Armour class icon frame.png|40px]]</div>
<div>[[File:Armour class icon frame.png|40px]]</div>
<div class="ac-value">{{{1}}}</div>
<div class="ac-value" aria-label="Armour class: {{{1}}}">{{{1}}}</div>
</div><noinclude>{{documentation|content=
{{#if:{{{2|}}}|<div class="ac-value-comment">{{{2|}}}</div>}}
{{under construction}}
</div></includeonly><noinclude>{{documentation|content=
A template that creates an armour class icon with the value inside it.
A template that creates an armour class icon with the value inside it.


Syntax: <code><nowiki>{{Armour class value|some_number}}</nowiki></code>
Syntax: <code><nowiki>{{Armour class value|some_number}}</nowiki></code>


Examples:
== Examples ==
{{Armour class value|10}}
{{Template demo
{{Armour class value|14}}
| <nowiki>{{Armour class value|10}}</nowiki>
{{Armour class value|+1}}
| <nowiki>{{Armour class value|14}}</nowiki>
{{Armour class value|+2}}
| <nowiki>{{Armour class value|+1}}</nowiki>
| <nowiki>{{Armour class value|+2}}</nowiki>
| <nowiki>{{Armour class value|+2|Maximum +2}}</nowiki>
}}


== Template data ==
== Template data ==
Line 20: Line 23:
"1": {
"1": {
"description": "The value to display inside the shield",
"description": "The value to display inside the shield",
            "example": "+2",
            "type": "string",
"required": true
"required": true
},
        "2": {
"description": "An additional, optional comment to display ",
            "example": "Maximum +2",
            "type": "string",
"required": false
}
}
}
}
}
}
</templatedata>
</templatedata>
}}
}}
 
[[Category:Templates]]
 
</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 05:40, 20 July 2024

Template documentation

A template that creates an armour class icon with the value inside it.

Syntax: {{Armour class value|some_number}}

Examples

Markup Renders as
{{Armour class value|10}}
Armour class icon frame.png
10
{{Armour class value|14}}
Armour class icon frame.png
14
{{Armour class value|+1}}
Armour class icon frame.png
+1
{{Armour class value|+2}}
Armour class icon frame.png
+2
{{Armour class value|+2|Maximum +2}}
Armour class icon frame.png
+2
Maximum +2

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
11

The value to display inside the shield

Example
+2
Stringrequired
22

An additional, optional comment to display

Example
Maximum +2
Stringoptional