×
Create a new article
Write your page title here:
We currently have 3,036 articles on YumeWiki. Type your article name above or click on one of the titles below and start writing!



YumeWiki
3,036Articles

Template:SoundtrackTable/2kki: Difference between revisions

(Created page with "=== {{{start}}}-{{{end}}} === {{SoundtrackTable |id,No.,width:60px;name,TRACK NAME;speed,SPEED;location,LOCATION/EVENT;file,LISTEN;notes,NOTES | {{{extras|}}} {{#ask: [[-Has BGM::<q>Category:Yume 2kki Locations</q>]] [[BGM/Soundroom::>{{{start}}}]] [[BGM/Soundroom::<{{{end}}}Z]] |sort=BGM/Soundroom |limit=500 |?=location |?BGM/Soundroom=id |?BGM/Title=name |?BGM/Audio=file |?BGM/Label=label |?BGM/Speed=speed |format=template |named args=1 |template=User:Reas/Sandbox/...")
 
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== {{{start}}}-{{{end}}} ===
<includeonly>{{SoundtrackTable
{{SoundtrackTable
|id,No.,width:60px;name,TRACK NAME;speed,SPEED;location,LOCATION/EVENT;file,LISTEN;notes,NOTES
|id,No.,width:60px;name,TRACK NAME;speed,SPEED;location,LOCATION/EVENT;file,LISTEN;notes,NOTES
|
|
Line 6: Line 5:
{{#ask:
{{#ask:
[[-Has BGM::<q>[[Category:Yume 2kki Locations]]</q>]]
[[-Has BGM::<q>[[Category:Yume 2kki Locations]]</q>]]
[[BGM/Soundroom::>{{{start}}}]]
[[BGM/Soundroom::>{{#explode:{{{1}}}|-}}]]
[[BGM/Soundroom::<{{{end}}}Z]]
[[BGM/Soundroom::<{{#explode:{{{1}}}|-|1}}Z]]
|sort=BGM/Soundroom
|sort=BGM/Soundroom
|limit=500
|limit=500
Line 18: Line 17:
|format=template
|format=template
|named args=1
|named args=1
|template=User:Reas/Sandbox/TestTemplate
|template=SoundtrackTable/2kki/Display
}}
{{{overrides}}}
}}
}}
{{#invoke:SoundtrackTable|overrides|{{{changes|}}}}}
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 20:34, 2 August 2024

Documentation (for the above template, sometimes hidden or invisible)

Description

This template is used to auto-generate the Soundtrack pages for Yume 2kki based on the contents of location pages.

Usage

The first parameter specifies the range of a table. It should follow the format xxxx-yyyy, where xxxx and yyyy are numbers zero-padded to length 4. For example, {{SoundtrackTable/2kki|0226-0250}} would generate a table with IDs from 0226 to 0250, both inclusive.

To modify the table, you have two options.

  • The changes parameter can be used to change values in existing cells. The value of parameter consists of several lines, each in the format of param/id=value. For example, name/0767 C=delta_song_1 would change the "Track Name" column of a track with the ID of 0767C to "delta_song_1".
    You can also omit the letter to assign the value to the cells of all tracks whose ID start with the specified number. For example, notes/0010=Translates to "sand". changes the notes for all tracks from 0010A throughout 0010G.
  • The extras parameter can be used to add rows for tracks the template wasn't able to detect. The value should consist of SoundtrackEntry templates with the following syntax:
{{SoundtrackEntry
|id=0003 E
|name=PC_音源差し替え
|speed=100
|location=[[Yume 2kki:Endings#Ending ---|Ending ---]]
|file=PC_音源差し替え.ogg
|notes=Translates to "PC_Sound Replacement".
}}

The example above adds a row to the table which would look like this:

No. TRACK NAME SPEED LOCATION/EVENT LISTEN NOTES
0003 E PC_音源差し替え 100% Ending --- Listen Translates to "PC_Sound Replacement".

Entries are automatically sorted by ID, so additional entries can be specified in any order.


Parameters

Auto-updating Soundtrack table for Yume 2kki

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
ID Range1

Start and end IDs separated by a dash

Example
0001-0025
Linerequired
Changeschanges

Used to change cells in auto-generated rows

Example
name/0767 C=delta_song_1


notes/0010=Translates to "sand".
Stringoptional
Extra Tracksextras

Used to add additional rows

Example
{{SoundtrackEntry|id=0003 E|name=PC_音源差し替え|speed=100|location=[[Yume 2kki:Endings#Ending ---|Ending ---]]|file=PC_音源差し替え.ogg|notes=Translates to "PC_Sound Replacement".}}
Contentoptional