Difference between revisions of "Template:Action description"
Jump to navigation
Jump to search
m (adding new options) |
m |
||
Line 1: | Line 1: | ||
{{#vardefine:smw_desc|{{#show:{{{1|{{PAGENAME}}}}}|?Has game description|default=''No action description found.''}}}}{{#if:{{{2|}}}|{{#switch:{{{2}}} | {{#vardefine:smw_desc|{{#show:{{{1|{{PAGENAME}}}}}|?Has game description|default=''No action description found.''}}}}{{#if:{{{2|}}}|{{#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_desc1}}|/(.+?)\<br.+/=\1}}|`|}} | | #default = {{#replace:{{#replaceset:{{#var:smw_desc1}}|/(.+?)\<br.+/=\1}}|`|}} | ||
}}}}<noinclude> | }}}}<noinclude> |
Revision as of 17:19, 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}} |
|
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. |