Outils personnels

Articles presse : Différence entre versions

De wikiGite

 
Ligne 1 : Ligne 1 :
 +
== Comments ==
 +
<div id='wgBlogComments'>{{Talk:{{PAGENAMEE}}}}</div>
 +
 
{{#form:
 
{{#form:
        {{#input: type = hidden | name = content | value = <nowiki>{{#dpl:category={{#request:cat}}}}</nowiki> }}
+
{{#input:type=hidden|name=content|id=blogContent}}
        {{#input: type = select
+
{{#input:type=hidden|name=title|value=Talk:{{PAGENAMEE}}}}
                | name = cat
+
{{#input:type=hidden|name=summary|id=blogSummary}}
                | value = {{#request:cat}}
+
{{#input:type=hidden|name=caction|value=append}}
                | *Select category {{#dpl: namespace = Category | format = ,\n*%TITLE%,, }}
+
 
        }}
+
Heading:  {{#input:type=text|id=blogTitle}}
        {{#input: type = ajax | value = List members | update = listcat-result}}
+
Your name: {{#input:type=text|id=blogName}}
 +
Comment:  {{#input:type=textarea|rows=2|id=blogBody}}
 +
 
 +
{{#input:type=ajax|value=Post comment|update=wgBlogComments|onClick=
 +
var summary='comment posted by '+document.getElementById('blogName').value;
 +
document.getElementById('blogContent').setAttribute('value',
 +
'\n==='+document.getElementById('blogTitle').value+'===\n'+
 +
  document.getElementById('blogBody').value+'\n:<i>'+summary+'</i>\n');
 +
document.getElementById('blogSummary').setAttribute('value','Blog '+summary);}}
 +
 
 
}}
 
}}
 
<div id="listcat-result">NO RESULTS TO DISPLAY YET</div>
 

Version du 6 octobre 2008 à 13:57

Comments

Références à des articles dans la presse spécialisée

Premier commentaire

Premier commentaire test

{{#form: {{#input:type=hidden|name=content|id=blogContent}} {{#input:type=hidden|name=title|value=Talk:Articles_presse}} {{#input:type=hidden|name=summary|id=blogSummary}} {{#input:type=hidden|name=caction|value=append}}

Heading: {{#input:type=text|id=blogTitle}} Your name: {{#input:type=text|id=blogName}} Comment: {{#input:type=textarea|rows=2|id=blogBody}}

{{#input:type=ajax|value=Post comment|update=wgBlogComments|onClick= var summary='comment posted by '+document.getElementById('blogName').value; document.getElementById('blogContent').setAttribute('value', '\n==='+document.getElementById('blogTitle').value+'===\n'+

 document.getElementById('blogBody').value+'\n:'+summary+'\n');

document.getElementById('blogSummary').setAttribute('value','Blog '+summary);}}

}}