Odp:Add comment
From Odp
(Difference between revisions)
(New page: {{#if:{{#request:target}}| {{#form:method=get|id=commentform|style=border-top:1px solid #ccc| <b>Add comment to the article</b>: {{#input:type=textarea|id=commentText}} {{#input:...) |
Current revision (15:32, 8 March 2010) (view source) |
||
(7 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
- | {{#if:{{#request:target}} | + | {{#ifgroup:user| |
- | {{#form:method=get|id=commentform|style=border-top:1px solid #ccc| | + | {{#if: |
+ | {{#request:target}} | ||
+ | | | ||
+ | {{#forceInclude: {{#request:target}}|}} | ||
+ | ====New comment==== | ||
+ | ====={{CURRENTDAY}}-{{CURRENTMONTH}}-{{CURRENTYEAR}} [[User:{{CURRENTUSER}}]] says:===== | ||
+ | {{#form:method=get|id=commentform|style=border-top:1px solid #ccc| | ||
<b>Add comment to the article</b>: | <b>Add comment to the article</b>: | ||
- | {{#input:type=textarea|id=commentText}} | + | {{#input:type=textarea|id=commentText|rows=20|}} |
{{#input:type=hidden|name=content|id=commentId}} | {{#input:type=hidden|name=content|id=commentId}} | ||
{{#input:type=submit|value=Post comment|onClick= | {{#input:type=submit|value=Post comment|onClick= | ||
var comment=document.getElementById('commentText').value; | var comment=document.getElementById('commentText').value; | ||
if(comment=='') return; | if(comment=='') return; | ||
+ | var noinclude_open='<noinclude>'; | ||
var heading='====={{CURRENTDAY}}-{{CURRENTMONTH}}-{{CURRENTYEAR}} [[User:{{CURRENTUSER}}]] says:=====\n'; | var heading='====={{CURRENTDAY}}-{{CURRENTMONTH}}-{{CURRENTYEAR}} [[User:{{CURRENTUSER}}]] says:=====\n'; | ||
- | + | var noinclude_close='</noinclude>'; | |
- | + | document.getElementById('commentId').value=noinclude_open+heading+comment+noinclude_close; | |
}} | }} | ||
{{#input:type=hidden|name=caction|value=append}} | {{#input:type=hidden|name=caction|value=append}} | ||
{{#input:type=hidden|name=title|value={{#request:target}}|}} | {{#input:type=hidden|name=title|value={{#request:target}}|}} | ||
+ | }} | ||
+ | |No target page for posting comment. | ||
}} | }} | ||
- | | | + | |You must be logged in to post a comment. |
}} | }} |
Current revision
You must be logged in to post a comment.