Difference between revisions of "Template:Sandbox"

From Organic Design wiki
(Add to [[Category:{{CURRENTUSER}}]])
(this should make it work as expected)
Line 24: Line 24:
 
{{#input:type=submit|value=Set category to {{CURRENTUSER}}
 
{{#input:type=submit|value=Set category to {{CURRENTUSER}}
 
| onClick =  
 
| onClick =  
document.getElementById('setcat-regexp').setAttribute('value','\\[\\[Category:'+this.value+'.*?\\]\\]');
+
document.getElementById('setcat-regexp').setAttribute('value','\\[\\[Category:{{CURRENTUSER}}.*?\\]\\]');
document.getElementById('setcat-content').setAttribute('value','['+'[Category:'+this.value+']'+']');
+
document.getElementById('setcat-content').setAttribute('value','['+'[Category:{{CURRENTUSER}}]'+']');
 
}}
 
}}
  

Revision as of 00:43, 25 November 2007

Welcome to the Organic Design wiki Sandbox! This page allows you to carry out experiments. To edit, click here or edit this page above (or the views section for obscure browsers), make your changes and click the Save page button when finished. Content will not stay permanently; this page is automatically cleaned every 24 hours by User:Bender. If too full please use: 54.162.124.193/Sandbox

Content added here will not stay permanently; this page is cleared regularly. Click here to reset the sandbox.


{{{name}}}

{{{content}}}

Rob test

{{#form:

{{#input:type=hidden|name=title|value=Template:Sandbox}} {{#input:type=hidden|name=summary|value=Add to [[Category:{{CURRENTUSER}}]]}} {{#input:type=hidden|name=caction|value=append}} {{#input:type=hidden|name=regexp|id=setcat-regexp}} {{#input:type=hidden|name=content|id=setcat-content}} {{#input:type=submit|value=Set category to 54.162.124.193

onClick =

document.getElementById('setcat-regexp').setAttribute('value','\\[\\[Category:54.162.124.193.*?\\]\\]'); document.getElementById('setcat-content').setAttribute('value','['+'[Category:54.162.124.193]'+']'); }}


}}