Difference between revisions of "Template:Action description"

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


== Usage ==
== Usage ==
Line 10: 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. Set anything to display the full description (including line-breaks and back ticks).


== 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}}</nowiki></code> || {{action description|Bio III}}
| [[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.