Difference between revisions of "Issuepedia:Form Templates"
Jump to navigation
Jump to search
m (Reverted edits by 174.129.131.226 (Talk) to last version by Woozle) |
|||
(13 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
− | + | ==Navigation== | |
+ | {{notice/need/update|The way this works has changed. See [[htyp:MediaWiki/Special/MakePage]]. Any non-Issuepedia-specific technical documentation should be moved there.}}{{#lst:Issuepedia:Technology|navbar}}: [[Issuepedia:Form Templates|Form Templates]] | ||
+ | ==Overview== | ||
+ | Form Templates is a tool (well, actually a combination of tools) which make it easier to enter data into Issuepedia in a useful way. The pilot form, [[Issuepedia:Form.link.news]], simplifies the process of creating a page for storing data about a news or opinion link. The resulting pages are categorized in such a way that they show up, nicely formatted, on the pages for which they have been tagged. (The process is still a little awkward; improvements will be ongoing.) | ||
− | + | The Form Templates tool is actually a combination of the following tools: | |
+ | * the [http://www.mediawiki.org/wiki/Extension:Simple_Forms Simple Forms] extension | ||
+ | * the CreatePage special page, written specifically for this purpose | ||
+ | * several other extensions which help with the automatic display of tagged pages | ||
+ | |||
+ | This will all be documented eventually at greater length on HTYP. | ||
+ | |||
+ | ===Demonstration=== | ||
+ | Fill in this form with made-up answers (think of MadLibs): | ||
+ | <table> | ||
+ | {{#form:target=newpage|method=GET| | ||
+ | <tr><td align=right>Your name: </td><td> {{#input:name=who}} </td></tr> | ||
+ | <tr><td align=right>Your organization: </td><td> {{#input:type=select | ||
+ | | name=org | ||
+ | | | ||
+ | *pretty good | ||
+ | *reasonable | ||
+ | *a bit sloppy | ||
+ | *like Cosmo Fishhawk | ||
+ | *a complete pigsty | ||
+ | }} </td></tr> | ||
+ | <tr><td align=right>Favorite topic: </td><td> {{#input: type = select | ||
+ | | name = what | ||
+ | | value = {{#request:what}} | ||
+ | | | ||
+ | *Stuff | ||
+ | *Things | ||
+ | *Whatever | ||
+ | *Miscellaneous | ||
+ | }} </td></tr> | ||
+ | <tr><td align=right>An adjective: </td><td> {{#input:name=adj}} </td></tr> | ||
+ | <tr><td colspan=3>Write some sentences: {{#input:name=comments|type=textarea}} | ||
+ | {{#input:type=hidden|name=title|value=Special:CreatePage}} | ||
+ | {{#input:type=hidden|name=tpltpage|value=Issuepedia:Form Templates/template demo 1}} | ||
+ | {{#input:type=hidden|name=nametplt|value=Sandbox - form demo - <<adj>> <<what>>}} | ||
+ | {{#input:type=submit|value=Preview}}{{#input:type=reset|value=-clear-}}</td></tr> | ||
+ | }} | ||
+ | </table> |
Latest revision as of 14:31, 14 May 2009
This page is in need of updating.
The way this works has changed. See htyp:MediaWiki/Special/MakePage. Any non-Issuepedia-specific technical documentation should be moved there.
|
{{#lst:Issuepedia:Technology|navbar}}: Form Templates
Overview
Form Templates is a tool (well, actually a combination of tools) which make it easier to enter data into Issuepedia in a useful way. The pilot form, Issuepedia:Form.link.news, simplifies the process of creating a page for storing data about a news or opinion link. The resulting pages are categorized in such a way that they show up, nicely formatted, on the pages for which they have been tagged. (The process is still a little awkward; improvements will be ongoing.)
The Form Templates tool is actually a combination of the following tools:
- the Simple Forms extension
- the CreatePage special page, written specifically for this purpose
- several other extensions which help with the automatic display of tagged pages
This will all be documented eventually at greater length on HTYP.
Demonstration
Fill in this form with made-up answers (think of MadLibs):
{{#form:target=newpage|method=GET| }}Your name: | {{#input:name=who}} | |
Your organization: | {{#input:type=select
| name=org |
| |
Favorite topic: | {{#input: type = select
| name = what | value = {{#request:what}} |
| |
An adjective: | {{#input:name=adj}} | |
Write some sentences: {{#input:name=comments|type=textarea}}
{{#input:type=hidden|name=title|value=Special:CreatePage}} {{#input:type=hidden|name=tpltpage|value=Issuepedia:Form Templates/template demo 1}} {{#input:type=hidden|name=nametplt|value=Sandbox - form demo - <<adj>> <<what>>}}{{#input:type=submit|value=Preview}}{{#input:type=reset|value=-clear-}} |