Difference between revisions of "Issuepedia:Forms/v2/blog/post"

From Issuepedia
Jump to navigation Jump to search
(apparently the parser doesn't like quotes around values)
(CreatePage -> MakePage)
Line 9: Line 9:
 
<tr><td colspan=2>Above the fold:{{#input:name=text-above|type=textarea|rows=3}}</td></tr>
 
<tr><td colspan=2>Above the fold:{{#input:name=text-above|type=textarea|rows=3}}</td></tr>
 
<tr><td colspan=2>Below the fold:{{#input:name=text-below|type=textarea|rows=20}}</td></tr>
 
<tr><td colspan=2>Below the fold:{{#input:name=text-below|type=textarea|rows=20}}</td></tr>
     {{#input:type=hidden|name=title|value=Special:CreatePage}}
+
     {{#input:type=hidden|name=title|value=Special:MakePage}}
 
     {{#input:type=hidden|name=user|value={{#user:}}}}
 
     {{#input:type=hidden|name=user|value={{#user:}}}}
 
     {{#input:type=hidden|name=!TPLTPAGE|value=Template:blog.post.gen}}
 
     {{#input:type=hidden|name=!TPLTPAGE|value=Template:blog.post.gen}}

Revision as of 19:24, 29 December 2008

{{#form:target=blogpost|method=GET|
   {{#input:type=hidden|name=title|value=Special:MakePage}}
   {{#input:type=hidden|name=user|value={{#user:}}}}
   {{#input:type=hidden|name=!TPLTPAGE|value=Template:blog.post.gen}}
   {{#input:type=hidden|name=!TIMEFMT|value=Y-m-d Hi}}
   {{#input:type=hidden|name=!TITLETPLT|value={{{title-prefix}}}<<!TIMESTAMP>> <<posttitle>>}}
}}
Posting under:no prefix; posting as regular wiki page
Post title:{{#input:name=posttitle|size=60}}
User topic list:{{#input:name=topics-user|size=80}}
Global topic list:{{#input:name=topics-global|size=80}}
Above the fold:{{#input:name=text-above|type=textarea|rows=3}}
Below the fold:{{#input:name=text-below|type=textarea|rows=20}}
{{#input:type=submit|value=Preview}}{{#input:type=reset|value=-clear-}}
  • "topic lists" should look like this: \a topic\another topic\third topic\and so on
    • You can use whatever character you want as a divider; the first character in the list becomes the divider.
    • Topics in the "user topic list" will be prefixed with your username, to distinguish them from global topics (which are common to the entire wiki)
  • "above the fold" text will appear in summaries/compilations and eventually in the RSS feed (when RSS is implemented); "below the fold" generally only appears when you look at the actual posting page.
  • If you want the post to replace the form window instead of showing up in a new window/tab, remove "target=blogpost|" from the 3rd line
  • The intrinsic form variable !TIMESTAMP uses the PHP date format, which is documented here.
  • The "title" variable actually a sneaksy way to fool MediaWiki into sending the data to Special:CreatePage. Special:CreatePage lets you create a new page based on the form's contents, but other things could be done if there was a way to tell the form to submit the data to a different URL. (Which there may be; not sure.) Certainly "title" could be changed to redirect to any other data-processing page within the same wiki.