Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "User:Suicide machine/common.js"

From PCGamingWiki, the wiki about fixing PC games
(Created page with "var customizeToolbar = function() { $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { sections: { 'templates': { type: 'toolbar', label: 'Templates', groups:...")
 
m (Reverted edits by Suicide machine (talk) to last revision by Aemony)
Tag: Rollback
 
(36 intermediate revisions by 2 users not shown)
Line 1: Line 1:
var customizeToolbar = function() {
+
// <nowiki>
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
+
var customizeToolbar = function ()
sections: {
+
{
'templates': {
+
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar',  
type: 'toolbar',
+
{
label: 'Templates',
+
  'sections':
groups: {
+
  {
templates: {
+
'snippets':
'label': 'Templates',
+
{
'tools': {
+
'type': 'booklet',
'availabilityrow': {
+
'label': 'Extended Templates',
label: 'Availability row',
+
'pages':
type: 'button',
+
{
icon: '//pcgamingwiki.com/images/6/67/Editor_Icon_-_Availability_Table_Row.svg',
+
'section-lists':
action: {
+
{
type: 'encapsulate',
+
'label': 'Lists',
options: {
+
'layout': 'characters',
pre: "{{Availability/row| ",
+
'characters': [
peri: "store",
+
{
post: " | id | DRM | notes | Key | OS }}",
+
'action': {
ownline: true
+
'type': 'encapsulate',
 +
'options': {
 +
'pre': '{{List|content=\n',
 +
'peri': '{{List/row|row=Text here}}',
 +
'post': '\n}}'
 
}
 
}
}
+
},
 +
'label': 'List'
 
},
 
},
'availabilityrow2': {
+
{
label: 'Availability row',
+
'action': {
type: 'button',
+
'type': 'encapsulate',
icon: '//pcgamingwiki.com/images/6/67/Editor_Icon_-_Availability_Table_Row.svg',
+
'options': {
action: {
+
'pre': '{{List/row|row=',
type: 'encapsulate',
+
'peri': 'Text here',
options: {
+
'post': '}}'
pre: "{{Availability/row| ",
 
peri: "store",
 
post: " | id | DRM | notes | Key | OS }}",
 
ownline: true
 
 
}
 
}
}
+
},
},
+
'label': 'List/row'
'availabilityrow3': {
+
}
label: 'Availability row',
+
]
type: 'button',
+
},
icon: '//pcgamingwiki.com/images/6/67/Editor_Icon_-_Availability_Table_Row.svg',
+
'section-common-lines':
action: {
+
{
type: 'encapsulate',
+
'label': 'Common lines',
options: {
+
'layout': 'characters',
pre: "{{Availability/row| ",
+
'characters': [
peri: "store",
+
{
post: " | id | DRM | notes | Key | OS }}",
+
'action': {
ownline: true
+
'type': 'encapsulate',
}
+
'options': {
}
+
'pre': 'Enable windowed mode and use the <code>-popupwindow</code> [[Glossary:Command line arguments|parameter]].',
},
 
'dlc': {
 
label: 'DLC',
 
type: 'button',
 
icon: '//pcgamingwiki.com/images/3/38/Editor_Icon_-_DLCtable.svg',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{DLC|\n",
 
peri: "{{DLC/row| Name | notes | OS }}",
 
post: "\n}}",
 
ownline: true
 
}
 
}
 
},
 
'dlcrow': {
 
label: 'DLC Row',
 
type: 'button',
 
icon: '//pcgamingwiki.com/images/9/9f/Editor_Icon_-_DLCrow.svg',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{DLC/row| ",
 
peri: "Name",
 
post: " | notes | OS }}",
 
ownline: true
 
}
 
}
 
},
 
'gamedataconfig': {
 
label: 'Game data row - config',
 
type: 'button',
 
icon: '//pcgamingwiki.com/images/0/0c/Editor_Icon_-_Game_Data_Row.svg',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{Game data/config|",
 
peri: "System",
 
post: "|Path}}",
 
ownline: true
 
}
 
}
 
},
 
'gamedatasaves': {
 
label: 'Game data row - saves',
 
type: 'button',
 
icon: '//pcgamingwiki.com/images/0/0c/Editor_Icon_-_Game_Data_Row.svg',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{Game data/saves|",
 
peri: "System",
 
post: "|Path}}",
 
ownline: true
 
}
 
}
 
},
 
'cloud': {
 
label: 'Cloud syncing',
 
type: 'button',
 
icon: '//pcgamingwiki.com/images/b/bc/Editor_Icon_-_Cloud_Sync.svg',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "===[[Glossary:Save game cloud syncing|Save game cloud syncing]]===\n{{Save game cloud syncing\n|gog galaxy            = \n|gog galaxy notes      = \n|origin                = \n|origin notes          = \n|steam cloud          = \n|steam cloud notes    = \n|uplay                = \n|uplay notes          = \n|xbox cloud            = \n|xbox cloud notes      = \n}}",
 
ownline: true
 
}
 
}
 
},
 
'sysreq': {
 
label: 'System requirements',
 
type: 'button',
 
icon: '//pcgamingwiki.com/images/4/4b/Editor_Icon_-_System_Requirements.svg',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{System requirements\n|OSfamily = ",
 
peri: "System",
 
post: "\n|minOS    = \n|minCPU  = \n|minRAM  = \n|minHD    = \n|minGPU  = \n\n|recOS    = \n|recCPU  = \n|recRAM  = \n|recHD    = \n|recGPU  = \n}}",
 
ownline: true
 
}
 
}
 
},
 
'fixbox': {
 
label: 'Fixbox',
 
type: 'button',
 
icon: '//pcgamingwiki.com/images/d/d8/Editor_Icon_-_Fixbox.svg',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{Fixbox|description=",
 
peri: "Name",
 
post: "|ref=<ref>Reference</ref>|fix=\n}}",
 
ownline: true
 
}
 
}
 
},
 
'lang': {
 
label: 'Language',
 
type: 'button',
 
icon: '//pcgamingwiki.com/images/2/22/Editor_Icon_-_Localizations.svg',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{L10n/switch\n |language  = \n",
 
post: " |interface = yes\n |audio    = \n |subtitles = \n |notes    = \n |fan      = \n |fan notes = \n}}",
 
ownline: true
 
 
}
 
}
}
+
},
 +
'label': 'Unity\'s popupwindow'
 
},
 
},
'vrtable': {
+
{
label: 'VR',
+
'action': {
type: 'button',
+
'type': 'encapsulate',
icon: '//pcgamingwiki.com/images/3/3c/Editor_Icon_-_VR.svg',
+
'options': {
action: {
+
'pre': 'Start the game with <code>+windowed 1</code> [[Glossary:Command line arguments|parameter]].',
type: 'encapsulate',
 
options: {
 
pre: "==VR support==\n{{VR support\n|gg3d name                  = \n|native 3d gg3d award        = \n|nvidia 3d vision gg3d award = \n|tridef 3d gg3d award        = \n|iz3d gg3d award            = \n|native 3d                  = \n|native 3d notes            = \n|nvidia 3d vision            = \n|nvidia 3d vision notes      = \n|tridef 3d                  = \n|tridef 3d notes            = \n|iz3d                        = \n|iz3d notes                  = \n|htc vive                    = \n|htc vive notes              = \n|oculus rift                = \n|oculus rift notes          = \n|osvr                        = \n|osvr notes                  = \n|windows mixed reality      = \n|windows mixed reality notes = \n|keyboard-mouse              = \n|keyboard-mouse notes        = \n|3rd space gaming vest      = \n|3rd space gaming vest notes = \n|novint falcon              = \n|novint falcon notes        = \n|trackir                    = \n|trackir notes              = \n|tobii eye tracking          = \n|tobii eye tracking notes    = \n|play area seated            = \n|play area seated notes      = \n|play area standing          = \n|play area standing notes    = \n|play area room-scale        = \n|play area room-scale notes  = \n}}",
 
ownline: true
 
 
}
 
}
}
+
},
 +
'label': 'LithTech Windowed'
 
},
 
},
'apitable': {
+
{
label: 'API',
+
'action': {
type: 'button',
+
'type': 'encapsulate',
icon: '//pcgamingwiki.com/images/c/cb/Editor_Icon_-_API.svg',
+
'options': {
action: {
+
'pre': 'Rendered image uses {{term|SDR}} color space. In-game {{term|HDR}} option refers only to {{term|HDR Rendering}}.',
type: 'encapsulate',
 
options: {
 
pre: "===API===\n{{API\n|direct3d versions      = \n|direct3d notes        = \n|directdraw versions    = \n|directdraw notes      = \n|opengl versions        = \n|opengl notes          = \n|glide versions        = \n|glide notes            = \n|software mode          = \n|software mode notes    = \n|mantle support        = \n|mantle support notes  = \n|metal support          = \n|metal support notes    = \n|vulkan support        = \n|vulkan support notes  = \n|dos modes              = \n|dos modes notes        = \n|shader model versions  = \n|shader model notes    = \n|64-bit executable      = \n|64-bit executable notes= \n}}",
 
ownline: true
 
 
}
 
}
}
+
},
 +
'label': 'HDR Rendering only'
 
},
 
},
'middlewaretable': {
+
{
label: 'Middleware',
+
'action': {
type: 'button',
+
'type': 'encapsulate',
icon: '//pcgamingwiki.com/images/c/c2/Editor_Icon_-_Middleware.svg',
+
'options': {
action: {
+
'pre': '{{Abandoned Early Access|ref=<ref name="last update">{{Refsnip|url=https://steamdb.info/depot/0/|title=GAME TITLE on SteamDB|date=December 24, 2018|snippet=Last updated on October 14, 2014}}</ref>}}',
type: 'encapsulate',
 
options: {
 
pre: "===Middleware===\n{{Middleware\n|physics          = \n|physics notes    = \n|audio            = \n|audio notes      = \n|interface        = \n|interface notes  = \n|input            = \n|input notes      = \n|cutscenes        = \n|cutscenes notes  = \n|multiplayer      = \n|multiplayer notes= \n}}",
 
ownline: true
 
 
}
 
}
}
+
},
 +
'label': 'Abandoned Early Access'
 
},
 
},
'seesection': {
+
{
label: 'See...',
+
'action': {
type: 'select',
+
'type': 'encapsulate',
list: {
+
'options': {
'widescreen': {
+
'pre': 'Use [https://github.com/ThirteenAG/d3d9-wrapper/releases ThirteenAG\'s D3D9 Wrapper].',
label: 'Widescreen resolution',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "See [[#Widescreen resolution|Widescreen resolution]]."
 
}
 
}
 
},
 
'multimonitor': {
 
label: 'Multi-monitor',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "See [[#Multi-monitor|Multi-monitor]]."
 
}
 
}
 
},
 
'ultrawidescreen': {
 
label: 'Ultra-widescreen',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "See [[#Ultra-widescreen|Ultra-widescreen]]."
 
}
 
}
 
},
 
'4kultrahd': {
 
label: '4K Ultra HD',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "See [[#4K Ultra HD|4K Ultra HD]]."
 
}
 
}
 
},
 
'fieldofview': {
 
label: 'Field of view (FOV)',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "See [[#Field of view (FOV)|Field of view (FOV)]]."
 
}
 
}
 
},
 
'windowed': {
 
label: 'Windowed',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "See [[#Windowed|Windowed]]."
 
}
 
}
 
},
 
'borderless': {
 
label: 'Borderless fullscreen windowed',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "See [[#Borderless fullscreen windowed|Borderless fullscreen windowed]]."
 
}
 
}
 
},
 
'anisotropic': {
 
label: 'Anisotropic filtering (AF)',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "See [[#Anisotropic filtering (AF)|Anisotropic filtering (AF)]]."
 
}
 
}
 
},
 
'antialiasing': {
 
label: 'Anti-aliasing (AA)',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "See [[#Anti-aliasing (AA)|Anti-aliasing (AA)]]."
 
}
 
}
 
},
 
'vsync': {
 
label: 'Vertical sync (Vsync)',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "See [[#Vertical sync (Vsync)|Vertical sync (Vsync)]]."
 
}
 
}
 
},
 
'oculus': {
 
label: 'Oculus Rift',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "See [[#Oculus Rift|Oculus Rift]]."
 
}
 
}
 
},
 
'highframe': {
 
label: 'High frame rate',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "See [[#High frame rate|High frame rate]]. "
 
}
 
}
 
},
 
'colorblind': {
 
label: 'Color blind mode',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "See [[#Color blind mode|Color blind mode]]."
 
}
 
}
 
},
 
'remapping': {
 
label: 'Remapping',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "See [[#Remapping|Remapping]]."
 
}
 
}
 
},
 
'mouseaccel': {
 
label: 'Mouse acceleration',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "See [[#Mouse acceleration|Mouse acceleration]]."
 
}
 
}
 
},
 
'controllersupport': {
 
label: 'Controller support',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "See [[#Controller support|Controller support]]."
 
}
 
}
 
},
 
'controllerremap': {
 
label: 'Controller remapping',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "See [[#Controller remapping|Controller remapping]]."
 
}
 
}
 
},
 
'touchscreen': {
 
label: 'Touchscreen optimised',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "See [[#Touchscreen|Touchscreen]]."
 
}
 
}
 
 
}
 
}
}
+
},
 +
'label': 'ThirteenAG D3D9'
 
},
 
},
'infoboxdrop': {
+
{
label: 'Infobox row',
+
'action': {
type: 'select',
+
'type': 'encapsulate',
list: {
+
'options': {
'infoboxdeveloper': {
+
'pre': '{{Infobox game/row/engine|Unity|ref=<ref name="engineversion">{{Refcheck|user=Suicide_machine|date=2019-04-18}}</ref>|build=2018.3.11.25377}}',
label: 'Developer',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{Infobox game/row/developer|",
 
post: "}}",
 
ownline: true
 
}
 
}
 
},
 
'infoboxporterwindows': {
 
label: 'Windows porter',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{Infobox game/row/winporter|",
 
post: "}}",
 
ownline: true
 
}
 
}
 
},
 
'infoboxporterosx': {
 
label: 'OS X porter',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{Infobox game/row/osxporter|",
 
post: "}}",
 
ownline: true
 
}
 
}
 
},
 
'infoboxporterlinux': {
 
label: 'Linux porter',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{Infobox game/row/linporter|",
 
post: "}}",
 
ownline: true
 
}
 
}
 
},
 
'infoboxpublisher': {
 
label: 'Publisher',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{Infobox game/row/publisher|",
 
post: "}}",
 
ownline: true
 
}
 
}
 
},
 
'infoboxengine': {
 
label: 'Engine',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{Infobox game/row/engine|",
 
post: "}}",
 
ownline: true
 
}
 
}
 
},
 
'infoboxdatewindows': {
 
label: 'Windows release date',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{Infobox game/row/date|Windows|",
 
peri: "Month dd, yyyy",
 
post: "}}",
 
ownline: true
 
}
 
}
 
},
 
'infoboxdateosx': {
 
label: 'OS X release date',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{Infobox game/row/date|OS X|",
 
peri: "Month dd, yyyy",
 
post: "}}",
 
ownline: true
 
}
 
}
 
},
 
'infoboxdatelinux': {
 
label: 'Linux release date',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{Infobox game/row/date|Linux|",
 
peri: "Month dd, yyyy",
 
post: "}}",
 
ownline: true
 
}
 
}
 
 
}
 
}
}
+
},
},
+
'label': 'Unity Version'
'filepath': {
 
label: 'Path',
 
type: 'select',
 
list: {
 
'pathgame': {
 
label: 'Path to game',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{P|game}}"
 
}
 
}
 
},
 
'pathuid': {
 
label: 'User ID',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{P|uid}}"
 
}
 
}
 
},
 
'pathhkcu': {
 
label: 'HKEY_CURRENT_USER',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{P|hkcu}}"
 
}
 
}
 
},
 
'pathhklm': {
 
label: 'HKEY_LOCAL_MACHINE',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{P|hklm}}"
 
}
 
}
 
},
 
                                                                        'pathwow64': {
 
label: 'Wow6432Node',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{P|wow64}}"
 
}
 
}
 
},
 
'pathuserprofile': {
 
label: '%USERPROFILE%',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{P|userprofile}}"
 
}
 
}
 
},
 
'pathappdata': {
 
label: '%APPDATA%',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{P|appdata}}"
 
}
 
}
 
},
 
'pathlocalappdata': {
 
label: '%LOCALAPPDATA%',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{P|localappdata}}"
 
}
 
}
 
},
 
'pathpublic': {
 
label: '%PUBLIC%',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{P|public}}"
 
}
 
}
 
},
 
'pathprogramdata': {
 
label: '%PROGRAMDATA%',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{P|programdata}}"
 
}
 
}
 
},
 
'pathwindir': {
 
label: '%WINDIR%',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{P|windir}}"
 
}
 
}
 
},
 
'pathsteam': {
 
label: 'Steam folder',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{P|steam}}"
 
}
 
}
 
},
 
'pathuplay': {
 
label: 'Uplay folder',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{P|uplay}}"
 
}
 
}
 
},
 
'pathosxhome': {
 
label: 'OS X Home folder',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{P|osxhome}}"
 
}
 
}
 
},
 
'pathlinuxhome': {
 
label: 'Linux Home folder',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{P|linuxhome}}"
 
}
 
}
 
},
 
'pathlinuxxdgdatahome': {
 
label: 'Linux XDG data home',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{P|xdgdatahome}}"
 
}
 
}
 
},
 
'pathxdgconfighome': {
 
label: 'Linux XDG config home',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "{{P|xdgconfighome}}"
 
}
 
}
 
},
 
}
 
},
 
'reftemplates': {
 
label: 'Reference templates',
 
type: 'select',
 
list: {
 
'pathgame': {
 
label: 'Checked by user',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "<ref>{{Refcheck|user=User|date=2012-12-21|comment=Comment (optional)}}</ref>"
 
}
 
}
 
},
 
'pathuid': {
 
label: 'URL',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "<ref>{{Refurl|url=|title=|date=}}</ref>"
 
}
 
}
 
},
 
'pathhkcu': {
 
label: 'Snippet from URL',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: "<ref>{{Refsnip|url=|title=|date=|snippet=}}</ref>"
 
}
 
}
 
},
 
}
 
 
}
 
}
}
+
]
 
}
 
}
 
}
 
}
 
}
 
}
 
}
 
}
} );
+
});
 
};
 
};
+
 
/* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar . . . */
+
/* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar */
 
if ( $.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) !== -1 ) {
 
if ( $.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) !== -1 ) {
mw.loader.using( 'user.options', function () {
+
mw.loader.using( 'user.options' ).then( function () {
// This can be the string "0" if the user disabled the preference ([[bugzilla:52542#c3]])
+
// This can be the string "0" if the user disabled the preference ([[phab:T54542#555387]])
if ( mw.user.options.get( 'usebetatoolbar' ) == 1 && mw.user.options.get( 'showtoolbar' ) == 1 ) {
+
if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) {
 
$.when(
 
$.when(
mw.loader.using( 'ext.wikiEditor.toolbar' ),
+
mw.loader.using( 'ext.wikiEditor' ), $.ready
$.ready
 
 
).then( customizeToolbar );
 
).then( customizeToolbar );
 
}
 
}
 
} );
 
} );
 
}
 
}
 
+
// </nowiki>
function addAnchorInHeaders() {
 
$('span.mw-headline', '#mw-content-text').each(function() {
 
var $this = $(this);
 
if ($this.attr('id') !== undefined) {
 
$('<span class="mw-linkhere"></span>').text(' • ').append(
 
$('<a></a>').text('Link').attr({title: 'Link', href: '#'+$this.attr('id')})
 
).appendTo(this);
 
}
 
});
 
}
 
 
 
$(addAnchorInHeaders);
 

Latest revision as of 21:44, 18 November 2020

// <nowiki>
var customizeToolbar = function ()
{
	$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', 
	{
	  'sections':
	  {
			'snippets':
			{
			'type': 'booklet',
			'label': 'Extended Templates',
				'pages':
				{
					'section-lists':
					{
						'label': 'Lists',
						'layout': 'characters',
						'characters': [
							{
								'action': {
								'type': 'encapsulate',
									'options': {
										'pre': '{{List|content=\n',
										'peri': '{{List/row|row=Text here}}',
										'post': '\n}}'
									}
								},
								'label': 'List'
							},
							{
								'action': {
								'type': 'encapsulate',
									'options': {
										'pre': '{{List/row|row=',
										'peri': 'Text here',
										'post': '}}'
									}
								},
								'label': 'List/row'
							}
						]
					},
					'section-common-lines':
					{
						'label': 'Common lines',
						'layout': 'characters',
						'characters': [
							{
								'action': {
								'type': 'encapsulate',
									'options': {
										'pre': 'Enable windowed mode and use the <code>-popupwindow</code> [[Glossary:Command line arguments|parameter]].',
									}
								},
								'label': 'Unity\'s popupwindow'
							},
							{
								'action': {
								'type': 'encapsulate',
									'options': {
										'pre': 'Start the game with <code>+windowed 1</code> [[Glossary:Command line arguments|parameter]].',
									}
								},
								'label': 'LithTech Windowed'
							},
							{
								'action': {
								'type': 'encapsulate',
									'options': {
										'pre': 'Rendered image uses {{term|SDR}} color space. In-game {{term|HDR}} option refers only to {{term|HDR Rendering}}.',
									}
								},
								'label': 'HDR Rendering only'
							},
							{
								'action': {
								'type': 'encapsulate',
									'options': {
										'pre': '{{Abandoned Early Access|ref=<ref name="last update">{{Refsnip|url=https://steamdb.info/depot/0/|title=GAME TITLE on SteamDB|date=December 24, 2018|snippet=Last updated on October 14, 2014}}</ref>}}',
									}
								},
								'label': 'Abandoned Early Access'
							},
							{
								'action': {
								'type': 'encapsulate',
									'options': {
										'pre': 'Use [https://github.com/ThirteenAG/d3d9-wrapper/releases ThirteenAG\'s D3D9 Wrapper].',
									}
								},
								'label': 'ThirteenAG D3D9'
							},
							{
								'action': {
								'type': 'encapsulate',
									'options': {
										'pre': '{{Infobox game/row/engine|Unity|ref=<ref name="engineversion">{{Refcheck|user=Suicide_machine|date=2019-04-18}}</ref>|build=2018.3.11.25377}}',
									}
								},
								'label': 'Unity Version'
							}
						]
					}
				}
			}
		}
	});
};

/* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar … */
if ( $.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) !== -1 ) {
	mw.loader.using( 'user.options' ).then( function () {
		// This can be the string "0" if the user disabled the preference ([[phab:T54542#555387]])
		if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) {
			$.when(
				mw.loader.using( 'ext.wikiEditor' ), $.ready
			).then( customizeToolbar );
		}
	} );
}
// </nowiki>