(Created page with "<includeonly>{{#cargo_query:table=Move |fields=id=Move,startup=Startup,target=Hit Level,damage=Damage,block=On Block,hit=On Hit,ch=On CH,notes=Notes,reach=Range,crush=States,recv=Recovery |where=Move._pageName='{{{chara|{{SUBPAGENAME}}}}} movelist' |format=dynamic table |rows per page=50 |edit link=yes |searchable columns=yes |hidden fields=States,Range,Recovery }}</includeonly><noinclude>{{documentation}}</noinclude>") |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#cargo_query:table=Move | <includeonly>{{#cargo_query:table=Move | ||
|fields=id=Move,startup=Startup,target=Hit Level,damage=Damage,block=On Block,hit=On Hit,ch=On CH,notes=Notes,reach=Range,crush=States,recv=Recovery | |fields=id=Move,startup=Startup,target=Hit Level,damage=Damage,block=On Block,hit=On Hit,ch=On CH,notes=Notes,reach=Range,crush=States,recv=Recovery | ||
|where=Move._pageName='{{{chara|{{SUBPAGENAME}}}}} movelist' | |where=Move._pageName='{{{chara|{{SUBPAGENAME}}}}} movelist's {{#if:{{{strings|}}}|AND parent IS NULL|}} | ||
|format=dynamic table | |format=dynamic table | ||
|rows per page=50 | |rows per page=50 |
Revision as of 04:46, 7 March 2024
This template uses Cargo: | |
Movelist templates |
---|
|
Punishment templates |
|
This template shows a dynamic cargo table for a given character. Primarily meant to be used on Character_movetable
page. It has options for specifying which character and whether string extensions should be included or not. By default it will attempt to use the character of the page it is called on and will not include string extensions.
Usage
{{MoveTable|chara=...|strings=...}}
Parameters
Both parameters are optional.
chara
- An override to specify which character to create the movetable for. By default, this uses
MoveTable
to determine the character.
strings
- Pass
yes
into this parameter if you want string extensions to be included, anything else, including leaving the parameter out, will result in strings extensions be excluded based on theparent
field of Move Cargo Table.
Example
{{MoveTable|chara=Bryan|strings=yes}}
LINE 1: ...Move" WHERE "Move"."_pageName"='Bryan movelist's AND pare...
^
Function: CargoSQLQuery::run Query: SELECT "Move"."_pageID" AS "cargo_backlink_page_id_Move","id" AS "Move","startup" AS "Startup","target" AS "Hit Level","damage" AS "Damage","block" AS "On Block","hit" AS "On Hit","ch" AS "On CH","notes" AS "Notes","reach" AS "Range","crush" AS "States","recv" AS "Recovery" FROM "Move" WHERE "Move"."_pageName"='Bryan movelist's AND parent IS NULL ORDER BY "Move"."_pageID","id","startup","target","damage" LIMIT 100
TODO
- Account for characters with space characters in name automatically
- Incorporate Tooltip headers, either using built in functionality of Dynamic Tables or using helper template.
- Create helper template to remove excess characters from fields such as the leading character name under move and leading ",".
- Implement a natural sort to account for strings.
- The above documentation is from Template:MoveTable/doc
- Editors should experiment in this template’s sandbox and testcases pages