Template:SDVX Chart Info: Difference between revisions
(Added documentation) |
(→No Difficulty Changes: forgot to clarify that params aren't required) |
||
Line 40: | Line 40: | ||
| exh_difficulty_1 = 15 | | exh_difficulty_1 = 15 | ||
}} | }} | ||
None of the parameters are required; if parameters aren't passed to the template (like ''inf_maxchain'', ''inf_effector'', ''inf_jacket'', or ''inf_difficulty_1'' aren't in this example), they will use a default value (generally, this is an em-dash) to indicate there is no info. | |||
=== With Difficulty Changes === | === With Difficulty Changes === |
Revision as of 01:29, 26 July 2013
This is a template to facilitate creating those SDVX chart info boxes at the bottom of Sound Voltex track pages.
Usage
No Difficulty Changes
Here is an example usage from AA BlackY mix:
{{SDVX Chart Info | nov_maxchain = 781 | adv_maxchain = 1107 | exh_maxchain = 1460 | nov_effector = 月刊ミズタニ | adv_effector = 月刊ミズタニ | exh_effector = 月刊ミズタニ | nov_jacket = メルカトール | adv_jacket = メルカトール | exh_jacket = メルカトール | chart_version_1 = SOUND VOLTEX BOOTH→Present | nov_difficulty_1 = 6 | adv_difficulty_1 = 12 | exh_difficulty_1 = 15 }}
Using that code results in:
Game | Level | |||
---|---|---|---|---|
Novice | Advanced | Exhaust | Infinite | |
Max Chain | 781 | 1107 | 1460 | — |
Effected By | 月刊ミズタニ | 月刊ミズタニ | 月刊ミズタニ | — |
Jacket Artists | メルカトール | メルカトール | メルカトール | — |
SOUND VOLTEX BOOTH→Present | 6 | 12 | 15 | — |
None of the parameters are required; if parameters aren't passed to the template (like inf_maxchain, inf_effector, inf_jacket, or inf_difficulty_1 aren't in this example), they will use a default value (generally, this is an em-dash) to indicate there is no info.
With Difficulty Changes
The template also allows you to specify additional rows for difficulty changes down the line. Due to limitations in MediaWiki's templating system, it seems support for individual rows needs to either be hardcoded into the template, or incredibly complex to the point of making maintaining the template unfeasible. For this reason, I intend to add support for additional rows at the announcement of a new title. For the time being, supporting two games will suffice and can be done like so:
{{SDVX Chart Info | nov_maxchain = 779 | adv_maxchain = 986 | exh_maxchain = 1028 | nov_effector = PHQUASE | adv_effector = PHQUASE | exh_effector = PHQUASE | nov_jacket = AUK-YAM | adv_jacket = AUK-YAM | exh_jacket = AUK-YAM | chart_version_1 = SOUND VOLTEX BOOTH | nov_difficulty_1 = 5 | adv_difficulty_1 = 10 | exh_difficulty_1 = 13 | chart_version_2 = SOUND VOLTEX II→Present | nov_difficulty_2 = ↑6 | adv_difficulty_2 = 10 | exh_difficulty_2 = 13 }}
Using that code results in:
Game | Level | |||
---|---|---|---|---|
Novice | Advanced | Exhaust | Infinite | |
Max Chain | 779 | 986 | 1028 | — |
Effected By | PHQUASE | PHQUASE | PHQUASE | — |
Jacket Artists | AUK-YAM | AUK-YAM | AUK-YAM | — |
SOUND VOLTEX BOOTH | 5 | 10 | 13 | — |
SOUND VOLTEX II→Present | ↑6 | 10 | 13 | — |
Theoretical Improvements
- The code could be improved to automatically add the up/down arrows for difficulty changes, and automatically bold new charts.
- Obviously, it would be nice to port this over to all games on RemyWiki, because typing out tables is a pain in the butt and this allows us to restyle the entire wiki's infoboxes in one spot instead of replacing every page's infobox.
Game | Level | |||
---|---|---|---|---|
Novice | Advanced | Exhaust | Infinite | |
Max Chain | — | — | — | — |
Effected By | — | — | — | — |
Jacket Artists | — | — | — | — |
set this in your template code | — | — | — | — |