Template:MoveDisplay/doc: Difference between revisions

Template page
(Created page with "{{Uses TemplateStyles|MoveData/style4.css}} This template is an implementation detail of: * {{tl|Move}} * {{tl|MoveQuery}} * {{tl|MoveInherit}} * {{tl|MoveDataHeader}}. It is used display move information. Should not be used directly in movelists.")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Uses TemplateStyles|MoveData/style4.css}}
{{Uses TemplateStyles|MoveData/style4.css}}


This template is an implementation detail of:
{{Navbox Cargo}}


* {{tl|Move}}
This template renders the HTML for {{tl|Move}} and similar templates. It for the most part shouldn't be used directly, but it can be if you want to render a move without involving the database.
* {{tl|MoveQuery}}
* {{tl|MoveInherit}}
* {{tl|MoveDataHeader}}.


It is used display move information. Should not be used directly in movelists.
== Usage ==
 
<syntaxhighlight lang="html">
{{MoveDisplay
|id=Generic-1,2
|inputLead=1
|input=,2
|...
}}
</syntaxhighlight>
 
== Parameters ==
 
Parameters are largely the same as {{tl|Move}}. However, instead of <code>parent</code>, the following parameters must be explicitly defined:
 
* <code>inputLead</code> – all the parents' <code>input</code>s joined together
* <code>targetLead</code> – all the parents' <code>target</code>s joined together
* <code>damageLead</code> – all the parents' <code>damage</code>s joined together
* <code>clonedFrom</code> – a link to the move which this one is cloned from
 
== Example ==
 
{{MoveDisplay
|id=Generic-1,2
|inputLead=1
|input=,2
}}

Latest revision as of 07:45, 6 March 2024

This template renders the HTML for {{Move}} and similar templates. It for the most part shouldn't be used directly, but it can be if you want to render a move without involving the database.

Usage

{{MoveDisplay
|id=Generic-1,2
|inputLead=1
|input=,2
|...
}}

Parameters

Parameters are largely the same as {{Move}}. However, instead of parent, the following parameters must be explicitly defined:

  • inputLead – all the parents' inputs joined together
  • targetLead – all the parents' targets joined together
  • damageLead – all the parents' damages joined together
  • clonedFrom – a link to the move which this one is cloned from

Example