Template:Armour class value: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Created page with "<div class="bg3wiki-ac-value"> <div>40px</div> <div class="ac-value">{{{1}}}</div> </div><noinclude>{{documentation|content= {{under construction}} A template that creates an armour class icon with the value inside it. Examples: {{Armour class value|10}} {{Armour class value|14}} {{Armour class value|+1}} {{Armour class value|+2}} }} Category:Templates </noinclude>")
 
(Updated documentation)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<div class="bg3wiki-ac-value">
<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.


Examples:
Syntax: <code><nowiki>{{Armour class value|some_number}}</nowiki></code>
{{Armour class value|10}}
 
{{Armour class value|14}}
== Examples ==
{{Armour class value|+1}}
{{Template demo
{{Armour class value|+2}}
| <nowiki>{{Armour class value|10}}</nowiki>
| <nowiki>{{Armour class value|14}}</nowiki>
| <nowiki>{{Armour class value|+1}}</nowiki>
| <nowiki>{{Armour class value|+2}}</nowiki>
| <nowiki>{{Armour class value|+2|Maximum +2}}</nowiki>
}}
 
== Template data ==
<templatedata>
{
"params": {
"1": {
"description": "The value to display inside the shield",
            "example": "+2",
            "type": "string",
"required": true
},
        "2": {
"description": "An additional, optional comment to display ",
            "example": "Maximum +2",
            "type": "string",
"required": false
}
}
}
</templatedata>
}}
}}
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</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