Difference between revisions of "Template:Sandbox"
From Organic Design wiki
m (→Rob test) |
m (→Rob test) |
||
Line 22: | Line 22: | ||
{{#input:type=hidden|name=regexp|id=setcat-regexp}} | {{#input:type=hidden|name=regexp|id=setcat-regexp}} | ||
{{#input:type=hidden|name=content|id=setcat-content}} | {{#input:type=hidden|name=content|id=setcat-content}} | ||
− | {{#input:type= | + | {{#input:type=submit|value=Set category to {{CURRENTUSER}} |
− | | | + | | onClick = |
document.getElementById('setcat-regexp').setAttribute('value','\\[\\[Category:'+this.value+'.*?\\]\\]'); | document.getElementById('setcat-regexp').setAttribute('value','\\[\\[Category:'+this.value+'.*?\\]\\]'); | ||
document.getElementById('setcat-content').setAttribute('value','['+'[Category:'+this.value+']'+']'); | document.getElementById('setcat-content').setAttribute('value','['+'[Category:'+this.value+']'+']'); |
Revision as of 00:41, 25 November 2007
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 3.22.68.29 |
onClick =
document.getElementById('setcat-regexp').setAttribute('value','\\[\\[Category:'+this.value+'.*?\\]\\]'); document.getElementById('setcat-content').setAttribute('value','['+'[Category:'+this.value+']'+']'); }}
|