Content added Content deleted
mNo edit summary |
mNo edit summary |
||
Line 4: | Line 4: | ||
var qOptions = new psw.db.QueryOptions(); |
var qOptions = new psw.db.QueryOptions(); |
||
qOptions. |
qOptions.addButtonMultiInput( |
||
'versions', |
'versions', |
||
{ label: ' |
{ label: 'Song version(s)' }, |
||
{ |
{ |
||
multiselect: true, |
multiselect: true, |
||
Line 12: | Line 12: | ||
{ label: 'VIRTUAL SINGER' }, |
{ label: 'VIRTUAL SINGER' }, |
||
{ label: 'SEKAI' }, |
{ label: 'SEKAI' }, |
||
{ label: 'Another Vocal' } |
{ label: 'Another Vocal' }, |
||
{ label: 'Instrumental' }, |
|||
] |
] |
||
} |
} |
||
); |
); |
||
qOptions. |
qOptions.addButtonMultiInput( |
||
'singers', |
'singers', |
||
{ label: 'Singer(s)', align: 'top' }, |
{ label: 'Singer(s)', align: 'top' }, |
||
Line 64: | Line 65: | ||
); |
); |
||
qOptions. |
qOptions.addCheckboxInput( |
||
'singers op', |
'singers op', |
||
{ label: 'Singers and?' }, |
{ label: 'Singers and?' }, |
Latest revision as of 05:55, 13 April 2023
( function ( $, mw, psw ) {
'use strict';
var qOptions = new psw.db.QueryOptions();
qOptions.addButtonMultiInput(
'versions',
{ label: 'Song version(s)' },
{
multiselect: true,
items: [
{ label: 'VIRTUAL SINGER' },
{ label: 'SEKAI' },
{ label: 'Another Vocal' },
{ label: 'Instrumental' },
]
}
);
qOptions.addButtonMultiInput(
'singers',
{ label: 'Singer(s)', align: 'top' },
{
multiselect: true,
items: [
// VIRTUAL SINGER
{ label: 'Hatsune Miku' },
{ label: 'Kagamine Rin' },
{ label: 'Kagamine Len' },
{ label: 'Megurine Luka' },
{ label: 'MEIKO' },
{ label: 'KAITO' },
// Leo/need
{ label: 'Hoshino Ichika' },
{ label: 'Tenma Saki' },
{ label: 'Mochizuki Honami' },
{ label: 'Hinomori Shiho' },
// MORE MORE JUMP!
{ label: 'Hanasato Minori' },
{ label: 'Kiritani Haruka' },
{ label: 'Momoi Airi' },
{ label: 'Hinomori Shizuku' },
// Vivid BAD SQUAD
{ label: 'Azusawa Kohane' },
{ label: 'Shiraishi An' },
{ label: 'Shinonome Akito' },
{ label: 'Aoyagi Toya' },
// Wonderlands×Showtime
{ label: 'Tenma Tsukasa' },
{ label: 'Otori Emu' },
{ label: 'Kusanagi Nene' },
{ label: 'Kamishiro Rui' },
// 25-ji, Nightcord de.
{ label: 'Yoisaki Kanade' },
{ label: 'Asahina Mafuyu' },
{ label: 'Shinonome Ena' },
{ label: 'Akiyama Mizuki' },
]
}
);
qOptions.addCheckboxInput(
'singers op',
{ label: 'Singers and?' },
{ dataTrue: 'AND', dataFalse: 'OR' }
);
$( function () {
var search = new psw.db.SearchWidget(
{
queryOptions: qOptions
},
{
selector: '#vocal-results',
template: 'Vocal datatable'
}
);
$( '#vocal-query' ).append( search.fieldset.$element );
});
} )( jQuery, mediaWiki, pswiki );