Difference between revisions of "Template:Action description"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
m
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:smw_desc|{{#show:{{{1|{{PAGENAME}}}}}|?Has game description|default=''No action description found.''}}}}{{#if:{{{2|}}}|{{#switch:{{{2|}}}
<includeonly>{{#show:{{{1|{{PAGENAME}}}}}|?Has game description|default=''No action description found.''}}</includeonly><noinclude>
| f = {{#var:smw_desc}}
| c = {{#replace:{{#replace:{{#var:smw_desc}}|`|}}|<br>|&nbsp;}}
| #default = {{#replace:{{#replaceset:{{#var:smw_desc}}|/(.+?)\<br.+/=\1}}|`|}}
}}}}</includeonly><noinclude>


== Usage ==
== Usage ==
Line 14: Line 10:
;Unnamed parameter 1
;Unnamed parameter 1
:Action name. Defaults to PAGENAME. Use appropriate qualifier when necessary.
: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 ==
== Examples ==
{| {{STDT}}
{| {{STDT}}
! Action !! Code !! Action description
! Action  
! style="width:250px;" | Code  
! Action description
|-
|-
| [[Transpose]] || <code><nowiki>{{action description|Transpose}}</nowiki></code> || {{action description|Transpose}}
| [[Transpose]] || <code><nowiki>{{action description|Transpose}}</nowiki></code> || {{action description|Transpose}}
|-
|-
| [[Fester]] || <code><nowiki>{{action description|Fester|f}}</nowiki></code> || {{action description|Fester|f}}
| [[Fester]] || <code><nowiki>{{action description|Fester}}</nowiki></code> || {{action description|Fester}}
|-
|-
| [[Bio III]] || <code><nowiki>{{action description|Bio III|c}}</nowiki></code> || {{action description|Bio III|c}}
| [[Bio III]] || <code><nowiki>{{action description|Bio III}}</nowiki></code> || {{action description|Bio III}}
|}
|}


[[Category:Data templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 13:27, 27 January 2021


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.

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}} Deals unaspected damage with a potency of 340.
Bio III {{action description|Bio III}} Deaps unaspected damage over time.