Articles presse : Différence entre versions
De wikiGite
Ligne 1 : | Ligne 1 : | ||
− | {{#form: | + | == Articles == |
− | {{#input:type=hidden|name= | + | <div id='wgArtComments'>{{Talk:{{PAGENAMEE}}}}</div> |
− | {{#input:type=hidden|name= | + | |
− | {{#input:type=hidden|name= | + | {{#form: |
− | {{#input:type=hidden|name= | + | {{#input:type=hidden|name=content|id=artContent}} |
− | {{#input:type= | + | {{#input:type=hidden|name=title|value=Talk:{{PAGENAMEE}}}} |
− | {{#input:type=text| | + | {{#input:type=hidden|name=summary|id=artSummary}} |
− | {{#input:type= | + | {{#input:type=hidden|name=caction|value=append}} |
− | {{#input:type= | + | |
+ | Heading: {{#input:type=text|id=artTitle}} | ||
+ | Résumé : {{#input:type=text|id=artResume}} | ||
+ | Comment: {{#input:type=textarea|rows=2|id=artBody}} | ||
+ | |||
+ | {{#input:type=ajax|value=Post comment|update=wgArtComments|onClick= | ||
+ | var summary='comment posted by '+document.getElementById('artResume').value; | ||
+ | document.getElementById('artContent').setAttribute('value', | ||
+ | '\n==='+document.getElementById('artTitle').value+'===\n'+document.getElementById('artBody').value+'\n:<i>'+summary+'</i>\n'); | ||
+ | document.getElementById('artSummary').setAttribute('value','Article '+summary);}} | ||
+ | |||
}} | }} |
Version du 6 octobre 2008 à 14:27
Articles
Premier commentaire
Premier commentaire test{{#form: {{#input:type=hidden|name=content|id=artContent}} {{#input:type=hidden|name=title|value=Talk:Articles_presse}} {{#input:type=hidden|name=summary|id=artSummary}} {{#input:type=hidden|name=caction|value=append}}
Heading: {{#input:type=text|id=artTitle}} Résumé : {{#input:type=text|id=artResume}} Comment: {{#input:type=textarea|rows=2|id=artBody}}
{{#input:type=ajax|value=Post comment|update=wgArtComments|onClick= var summary='comment posted by '+document.getElementById('artResume').value; document.getElementById('artContent').setAttribute('value', '\n==='+document.getElementById('artTitle').value+'===\n'+document.getElementById('artBody').value+'\n:'+summary+'\n'); document.getElementById('artSummary').setAttribute('value','Article '+summary);}}
}}