Template:Resource: Difference between revisions
Jump to navigation
Jump to search
(Fix.) |
No edit summary |
||
Line 27: | Line 27: | ||
<!-- lc is to make the input all lower case, so that case is not my biggest priority --> | <!-- lc is to make the input all lower case, so that case is not my biggest priority --> | ||
{{#switch: {{lc:{{#lvar:type}}}} | {{#switch: {{lc: {{#lvar:type}} }} | ||
| action = | | action = | ||
Line 40: | Line 40: | ||
{{#lvardef: type | {{#if: {{{nameonly|}}}|Reaction|[[Reaction]]}}{{#ifexpr: {{#lvar: isplural}} > 0 |s}} }} | {{#lvardef: type | {{#if: {{{nameonly|}}}|Reaction|[[Reaction]]}}{{#ifexpr: {{#lvar: isplural}} > 0 |s}} }} | ||
{{#lvardef: icon | Reaction Icon.png }} | {{#lvardef: icon | Reaction Icon.png }} | ||
| movement = | |||
[[Category:Pages using the Resource template with the deprecated movement parameter]] | |||
{{#lvardef: type | {{#if: {{{nameonly|}}}|Movement|[[Movement speed|Movement]]}} }} | |||
{{#lvardef: icon | Movement Speed Icon.png }} | |||
{{#if: {{{count|}}} | |||
| {{#lvardef: count | {{Distance|m={{{count|}}}}} }} | |||
| {{#if: {{{2|}}} | {{#lvardef: count | {{Distance|m={{{2|}}}}} }} }} | |||
}} | |||
| movement m = | | movement m = | ||
{{#lvardef: type | {{#if: {{{nameonly|}}}|Movement|[[Movement speed|Movement]]}} }} | {{#lvardef: type | {{#if: {{{nameonly|}}}|Movement|[[Movement speed|Movement]]}} }} | ||
{{#lvardef: icon | Movement Speed Icon.png}} | {{#lvardef: icon | Movement Speed Icon.png }} | ||
{{#if: {{{count|}}} | {{#if: {{{count|}}} | ||
| {{#lvardef: count | {{Distance|m={{{count|}}}}} }} | | {{#lvardef: count | {{Distance|m={{{count|}}}}} }} | ||
Line 145: | Line 154: | ||
{{#lvardef: type | Level 3 Shadow Spell Slot{{#ifexpr: {{#lvar: isplural}} > 0 |s}} }} | {{#lvardef: type | Level 3 Shadow Spell Slot{{#ifexpr: {{#lvar: isplural}} > 0 |s}} }} | ||
{{#lvardef: icon | Shadow Spell Slot Icon.png }} | {{#lvardef: icon | Shadow Spell Slot Icon.png }} | ||
| #default = | |||
[[Category:Pages with unknown resources]] | |||
<!-- end switch --> | <!-- end switch --> | ||
Line 158: | Line 170: | ||
| <!-- blank --> | | <!-- blank --> | ||
| {{#lvar: type}} | | {{#lvar: type}} | ||
}}</span> | }}</span></includeonly><noinclude> | ||
==What is this?== | ==What is this?== | ||
This is a template for a quicker and more standardized manner of typing out the class-specific resource. This template is intended to be ''inline''. | This is a template for a quicker and more standardized manner of typing out the class-specific resource. This template is intended to be ''inline''. |
Revision as of 03:35, 8 April 2024
What is this?
This is a template for a quicker and more standardized manner of typing out the class-specific resource. This template is intended to be inline.
If there are any missing resources, don't hesitate to contribute!
Usage
{{Resource | <type> | [count] | [icononly] | [nameonly] | [forceplural]}}
<>
Denotes mandatory parameters.
type
- See below for a table of what you can input here.
type =
is optional; you may just type the type name as long as its the first parameter.type = supdie
is the same assupdie
, AS LONG AS THEY ARE IN THE FIRST PARAMETER.
[]
Denotes optional parameters.
count
- The number of resources.
- Any number above 2 will be shown to the left of the icon, otherwise it will be hidden. (See Examples)
icononly
- Show the icon only, leaving the count there as well.
- Can be used to just quickly get the icon without the text.
nameonly
- Show the name only, leaving the count there as well.
- Can be used to just quickly get the icon without the text.
forceplural
- Forces the text to be plural, changing some of the words to their plural form
- The most obvious use of this is for Superiority Die (or Dices in plural).
Quick reference
Resource | Input |
---|---|
![]() |
action
|
![]() |
bonus
|
![]() |
reaction
|
![]() |
movement m (meters)
|
![]() |
half movement
|
![]() |
ar, arcrec, arcane recovery
|
![]() |
bi, bardin, bardic inspiration
|
![]() |
cd, chadiv, channel divinity
|
![]() |
co, chaoat, channel oath
|
![]() |
fi, fnginf
|
![]() |
ki
|
![]() |
l1, s1, spell1, level1
|
![]() |
l2, s2, spell2, level2
|
![]() |
l3, s3, spell3, level3
|
![]() |
l4, s4, spell4, level4
|
![]() |
l5, s5, spell5, level5
|
![]() |
l6, s6, spell6, level6
|
![]() |
lh, layonh, lay on hands
|
![]() |
nr, natrec, natural recovery
|
![]() |
rg, rage
|
![]() |
sp, srcpnt, sorcery
|
![]() |
sd, supdie, superiority die
|
![]() |
wp, warpri, war priest
|
![]() |
ws, wldshp, wild shape
|
![]() |
toc, tides of chaos
|
![]() |
lp, lukpnt, luck point
|
Examples
Output | Input |
---|---|
![]() |
{{Resource | invalid}} |
![]() |
{{Resource}} |
![]() |
{{Resource | supdie}} |
2![]() |
{{Resource | SuPdIe | 2}} |
![]() |
{{Resource | supdie| forceplural=yes}} |
200![]() |
{{Resource | ki | count = 200}} |
![]() |
{{Resource | lh | icononly = yes}} |
![]() ![]() |
{{Resource | movement m | count = 1.5}} |
Costs: 2![]() |
Costs: {{Resource | ki | count = 2 | icononly = yes}} |
Restores: 2 Level 2 Spell Slots | Costs: {{Resource | l2 | count = 2 | nameonly = yes}} |
Recover half of your max ![]() |
Recover half of your max {{Resource | ki | forceplural = yes}}, once per short rest. |
![]() |
{{Resource | type = ar | 1 | forceplural = yes}} |
![]() |
{{Resource | type = shadowspell3 | 1 }} |
1 ![]() |
{{Resource | type = eyestalk | 1 }} |