Template:ResourceIconList: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#invoke: ParseList | main | {{{1}}} | useTemplate = ResourceIconHelper | textDelim = <nowiki> + </nowiki> }}</includeonly><noinclude> =What is this?= This is a wrapper around Template:Resource that produces a formatted total resource cost from a list costs. This is intended for use in Template:Action_Page and similar. =Usage= <pre>{{ResourceIconList | <type>:[count] [, <type>:[count]]}}</pre> ---- <br/><code><></code> Denotes mand...")
 
(Fix to use new movement cost syntax.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke: ParseList
<includeonly>{{#invoke: ParseList | main | {{{1}}} | useTemplate = ResourceIconHelper | textDelim=<nowiki>+ </nowiki>}}</includeonly><noinclude>
    | main  
    | {{{1}}}
    | useTemplate = ResourceIconHelper
    | textDelim = <nowiki> + </nowiki>
}}</includeonly><noinclude>
=What is this?=
=What is this?=
This is a wrapper around [[Template:Resource]] that produces a formatted total resource cost from a list costs.
This is a wrapper around [[Template:Resource]] that produces a formatted total resource cost from a list costs.
Line 16: Line 11:
Refer to [[Template:Resource]] for a list of the handled resource types.
Refer to [[Template:Resource]] for a list of the handled resource types.


{{ResourceIconList|bonus, movement:30}}
{{ResourceIconList|bonus, movement m:9}}


=Examples=
=Examples=
Line 23: Line 18:
! Input
! Input
|-
|-
|{{ResourceIconList|bonus, movement:30}}||<pre>{{ResourceIconList|bonus, movement:30}}</pre>
|{{ResourceIconList|bonus, movement m:9}}||<pre>{{ResourceIconList|bonus, movement m:9}}</pre>
|-
|-
|{{ResourceIconList|action, ki:3}}||<pre>{{ResourceIconList|action, ki:3}}</pre>
|{{ResourceIconList|action, ki:3}}||<pre>{{ResourceIconList|action, ki:3}}</pre>

Latest revision as of 04:46, 8 April 2024

What is this?

This is a wrapper around Template:Resource that produces a formatted total resource cost from a list costs.

This is intended for use in Template:Action_Page and similar.

Usage

{{ResourceIconList | <type>:[count] [, <type>:[count]]}}


<> Denotes mandatory parameters, [] denotes optional parameters.

Refer to Template:Resource for a list of the handled resource types.

+ 9 m / 30 ft

Examples

Output Input
+ 9 m / 30 ft
{{ResourceIconList|bonus, movement m:9}}
+ 3
{{ResourceIconList|action, ki:3}}
+ +
{{ResourceIconList|action, bonus, level1}}