Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Gadget-database-cards-core.js

MediaWiki interface page

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
( function ( $, mw, psw ) {
	'use strict';

	var qOptions = new psw.db.QueryOptions();
	var dOptions = new psw.db.DisplayOptions();
	
	qOptions.addButtonMultiInput(
		'characters',
		{ label: 'Character' },
		{
			multiselect: true,
			items: [
				// 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' },
				// VIRTUAL SINGER
				{ label: 'Hatsune Miku' },
				{ label: 'Kagamine Rin' },
				{ label: 'Kagamine Len' },
				{ label: 'Megurine Luka' },
				{ label: 'MEIKO' },
				{ label: 'KAITO' },
			]
		}
	);
	
	qOptions.addButtonMultiInput(
		'units',
		{ label: 'Unit' },
		{
			multiselect: true,
			delimiter: ';',
			items: [
				{ label: 'VIRTUAL SINGER' },
				{ label: 'Leo/need' },
				{ label: 'MORE MORE JUMP!' },
				{ label: 'Vivid BAD SQUAD' },
				{ label: 'Wonderlands×Showtime' },
				{ label: '25-ji, Nightcord de.' },
			]
		}
	);
	
	qOptions.addButtonMultiInput(
		'support units',
		{ label: 'Support unit' },
		{
			multiselect: true,
			delimiter: ';',
			items: [
				{ label: 'Leo/need' },
				{ label: 'MORE MORE JUMP!' },
				{ label: 'Vivid BAD SQUAD' },
				{ label: 'Wonderlands×Showtime' },
				{ label: '25-ji, Nightcord de.' },
			]
		}
	);
	
	qOptions.addButtonMultiInput(
		'attributes',
		{ label: 'Attribute' },
		{
			multiselect: true,
			items: [
				{ label: 'Cool' },
				{ label: 'Cute' },
				{ label: 'Happy' },
				{ label: 'Mysterious' },
				{ label: 'Pure' },
			]
		}
	);
	
	qOptions.addButtonMultiInput(
		'rarities',
		{ label: 'Rarity' },
		{
			multiselect: true,
			items: [
				{ label: '1' },
				{ label: '2' },
				{ label: '3' },
				{ label: '4' },
				{ label: 'Birthday' },
			]
		}
	);

	qOptions.addButtonMultiInput(
		'statuses',
		{ label: 'Status' },
		{
			multiselect: true,
			items: [
				{ label: 'Permanent' },
				{ label: 'Limited' },
				{ label: 'Colorful Festival limited' },
				{ label: 'Birthday limited' },
			]
		}
	);
	
	qOptions.addButtonMultiInput(
		'acquire',
		{ label: 'Acquisition method' },
		{
			multiselect: true,
			items: [
				{ label: 'Initial' },
				{ label: 'Main Story' },
				{ label: 'Gacha' },
				{ label: 'Ticket Exchange Shop' },
				{ label: 'Member Exchange Shop' },
				{ label: 'Kakera Exchange Shop' },
				{ label: 'Event Exchange Shop' },
				{ label: 'Gacha Seal Exchange Shop' },
				{ label: 'Present Box' }
			]
		}
	);
	
	qOptions.addButtonMultiInput(
		'skills',
		{ label: 'Skill' },
		{
			multiselect: true,
			delimiter: ';',
			items: [
				{ label: 'Scorer' },
				{ label: 'Perfect locker' },
				{ label: 'Healer' },
				{ label: 'Perfect scorer' },
				{ label: 'Life scorer' },
				{ label: 'Combo scorer' },
				{ label: 'Birthday scorer' },
				{ label: 'Leo/need scorer' },
				{ label: 'MORE MORE JUMP! scorer' },
				{ label: 'Vivid BAD SQUAD scorer' },
				{ label: 'Wonderlands×Showtime scorer' },
				{ label: '25-ji, Nightcord de. scorer' }
			]
		}
	);
	
	qOptions.addDateInput(
		'released after',
		{ label: 'Released after' }
	);
	qOptions.addDateInput(
		'released before',
		{ label: 'Released before' }
	);
	
	dOptions.addColumnSelector(
		[
			{ name: 'id', selected: true, label: 'Card ID' },
			{ name: 'character', selected: true, label: 'Character' },
			{ name: 'unit', selected: true, label: 'Unit' },
			{ name: 'support unit', selected: true, label: 'Support unit' },
			{ name: 'attribute', selected: true, label: 'Attribute' },
			{ name: 'rarity', selected: true, label: 'Rarity' },
			{ name: 'release date', selected: true, label: 'Release date' },
			{ name: 'status', selected: true, label: 'Status' },
			{ name: 'skill', selected: true, label: 'Skill' },
			{ name: 'acquire', selected: false, label: 'Acquisition method' },
			{ name: 'event', selected: false, label: 'Associated event' },
			{ name: 'gacha', selected: false, label: 'Debut gacha' },
			// { name: 'costume', selected: false, label: 'Costume' },
		],
		{ }
	);
	
	$( function () {
		var search = new psw.db.SearchWidget(
			{ queryOptions: qOptions, displayOptions: dOptions },
			{ selector: '#card-results', template: 'Card datatable' }
		);
		
		$( '#card-query' ).append( search.fieldset.$element );
	});
	
} )( jQuery, mediaWiki, pswiki );
Cookies help us deliver our services. By using our services, you agree to our use of cookies.