Content added Content deleted
imported>mutante (Article category updated from form) |
imported>mutante mNo edit summary |
||
Line 8: | Line 8: | ||
{{#input: type = select |
{{#input: type = select |
||
| *Select category{{#dpl: namespace = Category | mode = userformat | listseparators = ,\n*%TITLE%,, }} |
|||
| onChange = |
| onChange = |
||
document.getElementById('setcat-regexp').setAttribute('value','\\[\\[Category:'+this.value+'.*?\\]\\]'); |
document.getElementById('setcat-regexp').setAttribute('value','\\[\\[Category:'+this.value+'.*?\\]\\]'); |
Revision as of 18:59, 22 August 2007
{{#form:
{{#input:type=hidden|name=title|value=Select_Category_Example}} {{#input:type=hidden|name=summary|value=Article category updated from form}} {{#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 = select
| *Select category{{#dpl: namespace = Category | mode = userformat | listseparators = ,\n*%TITLE%,, }}
| onChange = document.getElementById('setcat-regexp').setAttribute('value','\\[\\[Category:'+this.value+'.*?\\]\\]'); document.getElementById('setcat-content').setAttribute('value','['+'[Category:'+this.value+']'+']'); }}
{{#input:type=submit|value=Categorise!}} }}