-The Dream Cancel Wiki has successfully upgraded it's wiki software and editing has returned. Tables for data have returned.

Template:MoveData/Documentation: Difference between revisions

From Dream Cancel Wiki
Jump to navigation Jump to search
Jotamide (talk | contribs)
mNo edit summary
Jotamide (talk | contribs)
Removed references to all enhancements to the MoveData template by SageVarq
Line 4: Line 4:
===Template Parameters===
===Template Parameters===
*'''name''': Attack name, in English when a localization is available. Will use "input" instead if omitted.
*'''name''': Attack name, in English when a localization is available. Will use "input" instead if omitted.
*'''input''': Attack input, for most of the wikis in {{SITENAME}} this will be written in [[Help:Notation|Numpad Notation]].
*'''input''': Attack input, written in the [[Help:Notation|Notation]] agreed upon by the editors.
*'''subtitle''': Text to display below "name", such as a short comment or original Japanese name. (Will display after input if name is omitted)
*'''image''': Filename of the image used to depict the attack, automatically resized to '''175x250px'''. Use .png files when possible.
*'''image''': Filename of the image used to depict the attack, automatically resized to '''175x250px'''. Use .png files when possible.
:'''Note''': Adding a parameter called "image2" will add a second image right under the first one. This is useful for multiple hit, rekka, or stance attacks. The template supports up to 10 images.
:'''Note''': Adding a parameter called "image2" will add a second image right under the first one. This is useful for multiple hit, rekka, or stance attacks. The template supports up to 10 images.
*'''hitbox''': Filename of the image used to depict the attack, automatically resized to '''175x250px'''. Use .png files when possible. Requires Javascript.
:'''Note''': Adding a parameter called "hitbox2" will add a second image right under the first one, similar to '''image'''.
*'''caption''': Caption to display below the image. You may add important notes or a funny remark to break the monotony from reading frame data. This is entirely up to the editors.
*'''caption''': Caption to display below the image. You may add important notes or a funny remark to break the monotony from reading frame data. This is entirely up to the editors.
:'''Note''': Similar to the image parameter, the caption parameter supports up to 10 captions (e.g.: caption=, caption2=, ..., caption10=).
:'''Note''': Similar to the image parameter, the caption parameter supports up to 10 captions (e.g.: caption=, caption2=, ..., caption10=).
*'''hitboxCaption''': Caption to display below the hitbox, similar to '''caption'''. If left empty, will reuse '''caption'''. Requires Javascript.
*'''data''': Field where the game-specific data templates go (like [[Template:AttackData-SNKH]] or [[Template:AttackData-RBFF2]]). See the source code on the examples below on how they are typically used.
:'''Note''': Similar to the '''caption''' parameter, the hitboxCaption parameter supports up to 10 captions (e.g.: hitboxCaption=, hitboxCaption2=, ..., hitboxCaption10=).
*'''data''': Field where the game-specific data templates go (like [[Template:AttackData-KERRR]] or [[Template:AttackData-MAAB]]). See the source code on the examples below on how they are typically used.
**'''version''': Most AttackData templates have a version variable which is used for air vs ground version of the same attack, EX versions, and more. '''This is usually defined at the beginning of the move to avoid including extra versions later!'''
**'''header''': Usually used in conjunction with the version parameter. By setting it to "no", you can hide the main header. This is useful for having multiple rows of data.


===Optional Parameters===
===Optional Parameters===
*'''linkname''': Set this to either the setion name or equal to an '''anchor''' value to allows users to click on the move name to get a link that move. This allows for easier linking to moves.
*'''version''': Most AttackData templates have a version variable which is used for air vs ground version of the same attack, EX versions, and more. '''This is usually defined at the beginning of the move to avoid including extra versions later!'''
:'''Note''': The section text is case sensitive, and cannot contain spaces. If spaces are needed, use underscores("_") instead.
*'''header''': Usually used in conjunction with the version parameter. By setting it to "no", you can hide the main header. This is useful for having multiple rows of data.
*'''anchor''': Used as an alternative to section linking, so that you can link to this specific move. For example, having '''anchor''' set to "63214X" will allow a link [[#63214X]] to the page to this specific move on the page. This allows for easier linking to moves. It is advised that you use section headings instead, but this is an option.
:'''Note''': Similar to '''image''' and '''caption''', you are allowed up to 5 usages of anchor by numbering: e.g.: anchor=, anchor2=, ..., anchor5=
:'''Note''': The anchor text is case sensitive, and cannot contain spaces. If spaces are needed, use underscores("_") instead.
*'''imageSize''': Used to override the default image size. Need to specify in pixel width and pixel height (e.g.: 175x250px).
*'''imageSize''': Used to override the default image size. Need to specify in pixel width and pixel height (e.g.: 175x250px).

Revision as of 02:22, 9 May 2021

The goal behind {{MoveData}} is to unify normal and special movelist entries used on character pages across Dream Cancel Wiki. To achieve that, this template works as a "tree trunk" with the game-specific AttackData-GameName and AttackDataHeader-GameName templates being the branches and leaves respectively.

Template Parameters

  • name: Attack name, in English when a localization is available. Will use "input" instead if omitted.
  • input: Attack input, written in the Notation agreed upon by the editors.
  • image: Filename of the image used to depict the attack, automatically resized to 175x250px. Use .png files when possible.
Note: Adding a parameter called "image2" will add a second image right under the first one. This is useful for multiple hit, rekka, or stance attacks. The template supports up to 10 images.
  • caption: Caption to display below the image. You may add important notes or a funny remark to break the monotony from reading frame data. This is entirely up to the editors.
Note: Similar to the image parameter, the caption parameter supports up to 10 captions (e.g.: caption=, caption2=, ..., caption10=).

Optional Parameters

  • version: Most AttackData templates have a version variable which is used for air vs ground version of the same attack, EX versions, and more. This is usually defined at the beginning of the move to avoid including extra versions later!
  • header: Usually used in conjunction with the version parameter. By setting it to "no", you can hide the main header. This is useful for having multiple rows of data.
  • imageSize: Used to override the default image size. Need to specify in pixel width and pixel height (e.g.: 175x250px).