User:ClueBot II/sandbox.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
This user script seems to have a documentation page at User:ClueBot II/sandbox. |
......................................
... Sandbox cleaner script by Cobi ...
......................................
...............................
... Define the sandbox text ...
..............................;
set %sbt
'{{Please leave this line alone (sandbox heading)}}
<!-- Hello! Feel free to try your formatting and editing skills below this line. As this page is for editing experiments, this page will automatically be cleaned every 12 hours. -->';
...............................
....................................
... Define the introduction text ...
...................................;
set %int
'{{Please leave this line alone}}
<!-- Feel free to change the text below this line. No profanity, please. -->';
....................................
....................................
... Define the X# template texts ...
...................................;
set %xxt
'<noinclude>
This sandbox is itself a template. This sandbox is for experimenting with templates.
{{Please leave this line alone (template sandbox heading)}}
</noinclude>
If you defined parameters such as <tt><nowiki>{{Template sandbox|First|Second|name="Named"}}</nowiki></tt>:
;First:{{{1}}}
;Second:{{{2}}}
;Name:{{{name}}}
----
<!-- Hello! Feel free to try your formatting and editing skills below this line. As this page is for editing experiments, this page will automatically be cleaned every 12 hours. -->';
....................................
................................
... Define the template text ...
...............................;
set %tst
'<noinclude>
This sandbox is itself a template. This sandbox is for experimenting with templates.
{{Please leave this line alone (template sandbox heading)}}
</noinclude>
If you defined parameters such as <tt><nowiki>{{Template sandbox|First|Second|name="Named"}}</nowiki></tt>:
;First:{{{1}}}
;Second:{{{2}}}
;Name:{{{name}}}
----';
................................
................................
... Define the tutorial text ...
...............................;
set %tut
'{{Please leave this line alone (tutorial sandbox heading)}}
<!-- Hello! Feel free to try your formatting and editing skills below this line. As this page is for editing experiments, this page will automatically be cleaned every 12 hours. -->';
................................
...............................
... Define the edit summary ...
..............................;
set %es
'Clearing sandboxes. (bot)';
...............................
.....................
... Set the pages ...
....................;
pageset 'Wikipedia:Sandbox' %sbt %es;
.pageset 'Wikipedia:Introduction' %int %es;
pageset 'Template:X1' %xxt %es;
pageset 'Template:X2' %xxt %es;
pageset 'Template:X3' %xxt %es;
pageset 'Template:X4' %xxt %es;
pageset 'Template:X5' %xxt %es;
pageset 'Template:X6' %xxt %es;
pageset 'Template:X7' %xxt %es;
pageset 'Template:X8' %xxt %es;
pageset 'Template:X9' %xxt %es;
pageset 'Template:Template sandbox' %tst %es;
pageset 'Wikipedia:Tutorial (Editing)/sandbox' %tut %es;
pageset 'Wikipedia:Tutorial (Formatting)/sandbox' %tut %es;
pageset 'Wikipedia:Tutorial (Wikipedia links)/sandbox' %tut %es;
pageset 'Wikipedia:Tutorial (Citing sources)/sandbox' %tut %es;
pageset 'Wikipedia:Tutorial (Keep in mind)/sandbox' %tut %es;
.....................
...........................
... Unset our variables ...
..........................;
unset %sbt;
unset %int;
unset %xxt;
unset %tst;
unset %tut;
unset %es;
...........................
...........
... EOF ...
..........;