mNo edit summary |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
|Description = Some set of switches to allow quick management over some functions |
|Description = Some set of switches to allow quick management over some functions |
||
|Author =[[user:kos730|kos730]] (idea)<br>[[user:fngplg|fngplg]] (whole the job) |
|Author =[[user:kos730|kos730]] (idea)<br>[[user:fngplg|fngplg]] (whole the job) |
||
− | |Status = |
+ | |Status = stable |
|Languages = auto |
|Languages = auto |
||
|Scope = ps |
|Scope = ps |
||
Line 18: | Line 18: | ||
;render: shows rendered content of the article |
;render: shows rendered content of the article |
||
;credits: shows list of contributors of the page |
;credits: shows list of contributors of the page |
||
+ | ;history: shows history of the page |
||
;purge: not meant to be used widely, so don't use it at all |
;purge: not meant to be used widely, so don't use it at all |
||
;debug: debug mode; not the test one, but usable when you in the actual test mode |
;debug: debug mode; not the test one, but usable when you in the actual test mode |
Revision as of 08:49, 19 July 2019
UnifiedControlPanel offers some set of switches to allow quick management over some functions.
Installation
Usage
Tick the checkbox, then fill the input field, if needed, and click the "Do it" button. The "Cancel" button is available, too.
By default, the script offers following options:
- raw
- shows raw content of the article
- render
- shows rendered content of the article
- credits
- shows list of contributors of the page
- history
- shows history of the page
- purge
- not meant to be used widely, so don't use it at all
- debug
- debug mode; not the test one, but usable when you in the actual test mode
- safemode
- turns off all (site and user) custom js/css
- use(site/user)(js/css)
- turns off corresponding custom js/css
- uselang
- use chosen lang; write the language code into the input box
- useskin
- use chosen skin; at the moment there is only one alternative skin (mercury/wikiamobile), which pre-set by default
- diff
- show the diff; use text box to set parameters
Also, once the script detects search parameters (stuff that goes after the ? part of the url), it will add the parameters to the form. Do expect some funny results.
Custom actions
UnifiedControlPanel allows to add user-defined actions. Step-by-step instruction will go
- create configuration object: (window.fng = window.fng || {}).ucp = window.fng.ucp || {};
- fill the "moreactions" array by list of actions:
fng.ucp.moreactions = (fng.ucp.moreactions || []).concat([<action1>, <action2>]);
Action format:
{ id: action id action: action to perform caption: action label title: action title hasInput: boolean; whether action has an input box inputSize: size of the input box inputPh: input box placeholder inputVal: input box default value }
Also, it is possible to override actions via the actions array.
Custom action translations
It is possible to add translations for custom action label and title. The script uses <action id>label and <action id>title as translated values for label and title.