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: | + | document.getElementById('setcat-regexp').setAttribute('value','\\[\\[Category:{{CURRENTUSER}}.*?\\]\\]'); |
− | document.getElementById('setcat-content').setAttribute('value','['+'[Category: | + | document.getElementById('setcat-content').setAttribute('value','['+'[Category:{{CURRENTUSER}}]'+']'); |
}} | }} | ||
Revision as of 00:43, 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 18.116.89.2 |
onClick =
document.getElementById('setcat-regexp').setAttribute('value','\\[\\[Category:18.116.89.2.*?\\]\\]'); document.getElementById('setcat-content').setAttribute('value','['+'[Category:18.116.89.2]'+']'); }}
|