Wikipedia talk:WikiProject User scripts/Scripts/qSig: Difference between revisions
Appearance
Content deleted Content added
m Unprotected Wikipedia talk:WikiProject User scripts/Scripts/qSig: protected in error, per request on my talk page |
m →qSig documentation: Replaced deprecated <source> tags with <syntaxhighlight> |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 37: | Line 37: | ||
* sigText — text of signature (also changes it for sig button on toolbar) |
* sigText — text of signature (also changes it for sig button on toolbar) |
||
Example: |
Example: |
||
<syntaxhighlight lang=javascript> |
|||
sigAccessKey = ','; |
|||
sigText = '— <nowiki>~~~~</nowiki>'; |
|||
sigText = '— ~~' + '~~'; //dash instead of -- |
|||
importScript('{{SUBJECTPAGENAME}}'); |
|||
importScript('Wikipedia:WikiProject User scripts/Scripts/qSig'); |
|||
</syntaxhighlight> |
|||
'''To do''': The structure of Wikipedia forums is quite complicated. You're welcome to add additional forum names to RegExp condition in the script. |
'''To do''': The structure of Wikipedia forums is quite complicated. You're welcome to add additional forum names to RegExp condition in the script. |
Latest revision as of 19:04, 8 May 2022
qSig documentation
[edit]So be it. — ~~~~
|
~ Save page
Script adds additional signature button next to «Save page» button:
on the left:
~
Save
- on all discussion pages (odd namespaces)
- on most forum pages in «Wikipedia:» namespace
This means that you need to sign on this page.
When you click «Save» the script will also check if the signature is present in the text.
on the right:
Save
~
- on all other pages in «Wikipedia:» namespace: rules, guides, projects, some other forums, etc.
This means that you might need to sign. Script will not check for signature when saving page.
Installation: add to your monobook.js:
- either
importScript('Wikipedia:WikiProject User scripts/Scripts/qSig');
- or the whole code of the script
Parameters:
- sigAccessKey — accesskey of Sig button
- sigText — text of signature (also changes it for sig button on toolbar)
Example:
sigAccessKey = ',';
sigText = '— ~~' + '~~'; //dash instead of --
importScript('Wikipedia:WikiProject User scripts/Scripts/qSig');
To do: The structure of Wikipedia forums is quite complicated. You're welcome to add additional forum names to RegExp condition in the script.
Any comments are welcome on this page or here: User_talk:Alex Smotrov