Template:SDVX Chart Info: Difference between revisions

From RemyWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 98: Line 98:
|-
|-
!style="background:#9999ee; text-align: center;" rowspan="2" width="200px"|Game
!style="background:#9999ee; text-align: center;" rowspan="2" width="200px"|Game
!style="background:#9999ee; text-align: center;" colspan="4"|Level
!style="background:#9999ee; text-align: center;" colspan="5"|Level
|-
|-
!style="background:#9999ee;" width="125px"|Novice
!style="background:#9999ee;" width="125px"|Novice
Line 104: Line 104:
!style="background:#9999ee;" width="125px"|Exhaust
!style="background:#9999ee;" width="125px"|Exhaust
!style="background:#9999ee;" width="125px"|Infinite
!style="background:#9999ee;" width="125px"|Infinite
!style="background:#9999ee;" width="125px"|Gravity
|-
|-
| Max Chain || style="background:#aaaaff;"|{{{nov_maxchain|—}}} || style="background:#ffffaa;"|{{{adv_maxchain|—}}} || style="background:#ffaaaa;"|{{{exh_maxchain|—}}} || style="background:#8cfece;"|{{{inf_maxchain|—}}}
| Max Chain || style="background:#aaaaff;"|{{{nov_maxchain|—}}} || style="background:#ffffaa;"|{{{adv_maxchain|—}}} || style="background:#ffaaaa;"|{{{exh_maxchain|—}}} || style="background:#8cfece;"|{{{inf_maxchain|—}}} || style="background:#ffe7ce;"|{{{grv_maxchain|—}}}
|-
|-
| Effected By || style="background:#aaaaff;"|{{{nov_effector|—}}} || style="background:#ffffaa;"|{{{adv_effector|—}}} || style="background:#ffaaaa;"|{{{exh_effector|—}}} || style="background:#8cfece;"|{{{inf_effector|—}}}
| Effected By || style="background:#aaaaff;"|{{{nov_effector|—}}} || style="background:#ffffaa;"|{{{adv_effector|—}}} || style="background:#ffaaaa;"|{{{exh_effector|—}}} || style="background:#8cfece;"|{{{inf_effector|—}}} || style="background:#ffe7ce;"|{{{grv_effector|—}}}
|-
|-
| Jacket Artists || style="background:#aaaaff;"|{{{nov_jacket|—}}} || style="background:#ffffaa;"|{{{adv_jacket|—}}} || style="background:#ffaaaa;"|{{{exh_jacket|—}}} || style="background:#8cfece;"|{{{inf_jacket|—}}}
| Jacket Artists || style="background:#aaaaff;"|{{{nov_jacket|—}}} || style="background:#ffffaa;"|{{{adv_jacket|—}}} || style="background:#ffaaaa;"|{{{exh_jacket|—}}} || style="background:#8cfece;"|{{{inf_jacket|—}}} || style="background:#ffe7ce;"|{{{grv_jacket|—}}}
|-
|-
| {{{chart_version_1|'''set this in your template code'''}}} || style="background:#aaaaff;"|{{{nov_difficulty_1|—}}} || style="background:#ffffaa;"|{{{adv_difficulty_1|—}}} || style="background:#ffaaaa;"|{{{exh_difficulty_1|—}}} || style="background:#8cfece;"|{{{inf_difficulty_1|—}}}
| {{{chart_version_1|'''set this in your template code'''}}} || style="background:#aaaaff;"|{{{nov_difficulty_1|—}}} || style="background:#ffffaa;"|{{{adv_difficulty_1|—}}} || style="background:#ffaaaa;"|{{{exh_difficulty_1|—}}} || style="background:#8cfece;"|{{{inf_difficulty_1|—}}} || style="background:#ffe7ce;"|{{{grv_difficulty_1|—}}}
{{#if: {{{chart_version_2|}}} | {{!}}-
{{#if: {{{chart_version_2|}}} | {{!}}-
{{!}} {{{chart_version_2|'''set this in your template code'''}}} {{!}}{{!}} style="background:#aaaaff;"{{!}}{{{nov_difficulty_2|—}}} {{!}}{{!}} style="background:#ffffaa;"{{!}}{{{adv_difficulty_2|—}}} {{!}}{{!}} style="background:#ffaaaa;"{{!}}{{{exh_difficulty_2|—}}} {{!}}{{!}} style="background:#8cfece;"{{!}}{{{inf_difficulty_2|—}}} | }}
{{!}} {{{chart_version_2|'''set this in your template code'''}}} {{!}}{{!}} style="background:#aaaaff;"{{!}}{{{nov_difficulty_2|—}}} {{!}}{{!}} style="background:#ffffaa;"{{!}}{{{adv_difficulty_2|—}}} {{!}}{{!}} style="background:#ffaaaa;"{{!}}{{{exh_difficulty_2|—}}} {{!}}{{!}} style="background:#8cfece;"{{!}}{{{inf_difficulty_2|—}}} {{!}}{{!}} style="background:#ffe7ce;"{{!}}{{{grv_difficulty_2|—}}} | }}
|-
|-
{{#if: {{{chart_version_3|}}} | {{!}}-
{{#if: {{{chart_version_3|}}} | {{!}}-
{{!}} {{{chart_version_3|'''set this in your template code'''}}} {{!}}{{!}} style="background:#aaaaff;"{{!}}{{{nov_difficulty_3|—}}} {{!}}{{!}} style="background:#ffffaa;"{{!}}{{{adv_difficulty_3|—}}} {{!}}{{!}} style="background:#ffaaaa;"{{!}}{{{exh_difficulty_3|—}}} {{!}}{{!}} style="background:#8cfece;"{{!}}{{{inf_difficulty_3|—}}} | }}
{{!}} {{{chart_version_3|'''set this in your template code'''}}} {{!}}{{!}} style="background:#aaaaff;"{{!}}{{{nov_difficulty_3|—}}} {{!}}{{!}} style="background:#ffffaa;"{{!}}{{{adv_difficulty_3|—}}} {{!}}{{!}} style="background:#ffaaaa;"{{!}}{{{exh_difficulty_3|—}}} {{!}}{{!}} style="background:#8cfece;"{{!}}{{{inf_difficulty_3|—}}} {{!}}{{!}} style="background:#ffe7ce;"{{!}}{{{grv_difficulty_3|—}}} | }}
|-
{{#if: {{{chart_version_4|}}} | {{!}}-
{{!}} {{{chart_version_4|'''set this in your template code'''}}} {{!}}{{!}} style="background:#aaaaff;"{{!}}{{{nov_difficulty_4|—}}} {{!}}{{!}} style="background:#ffffaa;"{{!}}{{{adv_difficulty_4|—}}} {{!}}{{!}} style="background:#ffaaaa;"{{!}}{{{exh_difficulty_4|—}}} {{!}}{{!}} style="background:#8cfece;"{{!}}{{{inf_difficulty_4|—}}} {{!}}{{!}} style="background:#ffe7ce;"{{!}}{{{grv_difficulty_4|—}}} | }}
|}
|}

Latest revision as of 14:45, 20 November 2014

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 Gravity
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 Gravity
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 Gravity
Max Chain
Effected By
Jacket Artists
set this in your template code