Difference between revisions of "Template:Sandbox"
From Organic Design wiki
(it worked, try to have it set category to curent user with form) |
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=button|value=Set category to {{CURRENTUSER}} |
| + | | onChange = | ||
| + | document.getElementById('setcat-regexp').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=button|value=Set category to 216.73.216.155 |
onChange =
document.getElementById('setcat-regexp').setAttribute('value','\\[\\[Category:'+this.value+'.*?\\]\\]'); document.getElementById('setcat-content').setAttribute('value','['+'[Category:'+this.value+']'+']'); }}
|



