User:Sanqui/quickpresets settings.js

From Wikidata
Jump to navigation Jump to search

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.
/* about: [[User:MichaelSchoenitzer/quickpresets]] */
/* toilet font used: pagga */
_instance_of = {
	name: "instance of",
	pid: 31,
	values: [
		{name: "video game", qid: 7889},
		{name: "demo", qid: 5610543},
		{name: "homebrew", qid: 598205},
		{name: "emulator", qid: 202871},
		{name: "console emulator", qid: 1196126},
		{name: "software", qid: 7397},
		{name: "ROM hack", qid: 64139617},
		{name: "event", qid: 1656682},
		{name: "demoparty", qid: 2655298},
	]
}

_country_values = [       // values of the items that should be proposed for this pid
   {name: "Czechoslovakia", qid: 33946},
   {name: "Czechia", qid: 213},
   {name: "Slovakia", qid: 214},
   {name: "USA", qid: 30},
   {name: "United Kingdom", qid: 145},
   {name: "Germany", qid: 183},
   {name: "Japan", qid: 17},
   //...
]
_country_of_origin = {
    name: "country of origin",
    pid: 495,        // ID of the property that should be proposed
    values: _country_values
}
_country = {
    name: "country of origin",
    pid: 17,        // ID of the property that should be proposed
    values: _country_values
}
_platform = {
    name: "platform",
    pid: 400,
    values: [
       {name: "Windows", qid: 1406},
       {name: "macOS", qid: 14116},
       {name: "Linux", qid: 388},
       {name: "ZX Spectrum", qid: 23882},
       {name: "GB", qid: 186437},
       {name: "GBC", qid: 203992},
       {name: "GBA", qid: 188642},
       {name: "NES", qid: 172742},
       {name: "SNES", qid: 183259},
    ]
 }
/*_official_website = {
    name: "official website",
    pid: 856
}*/
_genre = {
            name: "genre",
            pid: 136,
            values: [
               {name: "interactive fiction", qid: 1143118},
               {name: "RPG", qid: 744038},
            ]
         }

_part_of = {
            name: "part of",
            pid: 361,
            values: [
            ]
         }

quick_props = [
	{
		qid: null,
		name: "none",
		defaults: [
			_instance_of
		]
	},
	{
		qid: 0,
		name: "all",
		defaults: [
			_instance_of
		]
	},
   {
   	/* ░█░█░▀█▀░█▀▄░█▀▀░█▀█░░░█▀▀░█▀█░█▄█░█▀▀
       ░▀▄▀░░█░░█░█░█▀▀░█░█░░░█░█░█▀█░█░█░█▀▀
       ░░▀░░▀▀▀░▀▀░░▀▀▀░▀▀▀░░░▀▀▀░▀░▀░▀░▀░▀▀▀ */
      qid: 7889,               // Only apply this preset-block for items with instance of (P31) set to this
      name: "video game",        // Label that should be shown for this group
      defaults: [           // List all Preset for this group
         _country_of_origin,
         _platform,
         _genre,
         {
            name: "software engine",
            pid: 408,
            values: [
               {name: "RPG Maker 95", qid: 7277468},
               {name: "RPG Maker 2000", qid: 3275833},
               {name: "RPG Maker 2003", qid: 7277472},
               {name: "RPG Maker XP", qid: 3276130},
               {name: "GB Studio", qid: 122019785},
            ]
         },
      ]
   },
   {
   	/* ░█▀▄░█▀▀░█▄█░█▀█
       ░█░█░█▀▀░█░█░█░█
       ░▀▀░░▀▀▀░▀░▀░▀▀▀*/
      qid: 5610543,               // Only apply this preset-block for items with instance of (P31) set to this
      name: "demo",        // Label that should be shown for this group
      defaults: [           // List all Preset for this group
         _country_of_origin,
         _platform,
      ]
   },
   {
   	/* ░█░█░█▀█░█▄█░█▀▀░█▀▄░█▀▄░█▀▀░█░█
       ░█▀█░█░█░█░█░█▀▀░█▀▄░█▀▄░█▀▀░█▄█
       ░▀░▀░▀▀▀░▀░▀░▀▀▀░▀▀░░▀░▀░▀▀▀░▀░▀ */
      qid: 598205,
      name: "homebrew",
      defaults: [
         _platform,
      ]
   },
   {
   	/* ░█▀▀░█▄█░█░█░█░░░█▀█░▀█▀░█▀█░█▀▄
       ░█▀▀░█░█░█░█░█░░░█▀█░░█░░█░█░█▀▄
       ░▀▀▀░▀░▀░▀▀▀░▀▀▀░▀░▀░░▀░░▀▀▀░▀░▀ */
      qid: 1196126,
      name: "video game console emulator",
      defaults: [
         _platform,
         {
            name: "emulates",
            pid: 4043,
            values: []
         },
      ]
   },
   {
   	/*                   ░█▀▀░█▄█░█░█░█░░░█▀█░▀█▀░█▀█░█▀▄
      video game console ░█▀▀░█░█░█░█░█░░░█▀█░░█░░█░█░█▀▄
                         ░▀▀▀░▀░▀░▀▀▀░▀▀▀░▀░▀░░▀░░▀▀▀░▀░▀ */
      qid: 202871,
      name: "emulator",
      defaults: [
         _platform,
         {
            name: "emulates",
            pid: 4043,
            values: []
         },
      ]
   },
   {
   	/* ROM hack */
      qid: 64139617,
      name: "ROM hack",
      defaults: [
         {
            name: "mod of",
            pid: 7075, values: []
         },
         _country_of_origin,
         _platform,
         _genre,
      ]
   },
   {
   	/* event */
      qid: 1656682, name: "event",
      defaults: [_country, _part_of]
   },
   {
   	/* demoparty */
      qid: 2655298, name: "demoparty",
      defaults: [_country, _part_of]
   },
   {
   	/* stub*/
      qid: -1,
      name: "",
      defaults: [
         {
            name: "country of origin",
            pid: 495,
            values: [
               {name: "Czechoslovakia", qid: 33946},
            ]
         },
      ]
   },
]