Difference between revisions of "Template:Action description"
Jump to navigation
Jump to search
m |
m (pff) |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:smw_desc|{{#show:{{{1|{{PAGENAME}}}}}|?Has game description|default=''No action description found.''}}}} | <includeonly>{{#vardefine:smw_desc|{{#show:{{{1|{{PAGENAME}}}}}|?Has game description|default=''No action description found.''}}}}{{#switch:{{{2|}}} | ||
| f = {{#var:smw_desc}} | | f = {{#var:smw_desc}} | ||
| c = {{#replace:{{#replace:{{#var:smw_desc}}|`|}}|<br>| }} | | c = {{#replace:{{#replace:{{#var:smw_desc}}|`|}}|<br>| }} | ||
| #default = {{#replace:{{#replaceset:{{#var:smw_desc}}|/(.+?)\<br.+/=\1}}|`|}} | | #default = {{#replace:{{#replaceset:{{#var:smw_desc}}|/(.+?)\<br.+/=\1}}|`|}} | ||
}}</includeonly><noinclude> | |||
== Usage == | == Usage == |
Revision as of 17:23, 1 July 2017
Usage
For a given action, queries and displays Property:Has game description.
{{action description|<action>}}
Parameters
- Unnamed parameter 1
- Action name. Defaults to PAGENAME. Use appropriate qualifier when necessary.
- Unnamed parameter 2
- Optional. Accepts: f to show full description including line-breaks and back ticks, c to show full description except line-breaks and back ticks. Defaults to short description (first paragraph).
Examples
Action | Code | Action description |
---|---|---|
Transpose | {{action description|Transpose}} |
Swaps Astral Fire with a single Umbral Ice or Umbral Ice with a single Astral Fire. |
Fester | {{action description|Fester|f}} |
Deals unaspected damage with a potency of 340. |
Bio III | {{action description|Bio III|c}} |
Deaps unaspected damage over time. |