Articles presse : Différence entre versions
De wikiGite
Ligne 3 : | Ligne 3 : | ||
{{#form: | {{#form: | ||
+ | |||
+ | Heading: {{#input:type=text|id=artTitle}} | ||
+ | Résumé : {{#input:type=text|id=artResume}} | ||
+ | Comment: {{#input:type=textarea|rows=2|id=artBody}} | ||
+ | |||
{{#input:type=hidden|name=content|id=artContent}} | {{#input:type=hidden|name=content|id=artContent}} | ||
{{#input:type=hidden|name=title|value=Talk:{{PAGENAMEE}}}} | {{#input:type=hidden|name=title|value=Talk:{{PAGENAMEE}}}} | ||
{{#input:type=hidden|name=summary|id=artSummary}} | {{#input:type=hidden|name=summary|id=artSummary}} | ||
{{#input:type=hidden|name=caction|value=append}} | {{#input:type=hidden|name=caction|value=append}} | ||
− | |||
− | |||
− | |||
− | |||
{{#input:type=ajax|value=Post comment|update=wgArtComments|onClick= | {{#input:type=ajax|value=Post comment|update=wgArtComments|onClick= |
Version du 6 octobre 2008 à 14:27
Articles
Premier commentaire
Premier commentaire test{{#form:
Heading: {{#input:type=text|id=artTitle}} Résumé : {{#input:type=text|id=artResume}} Comment: {{#input:type=textarea|rows=2|id=artBody}}
{{#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}}
{{#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);}}
}}