Difference between revisions of "PsyCrit:Forms/blog/post"

m (fixed it again)
(more tidying)
(7 intermediate revisions by the same user not shown)
Line 7: Line 7:
<let name=wtTplt append>]]</let>
<let name=wtTplt append>]]</let>


<let name=user copy=@user.dbkey />
<let name=user val=@user.dbkey />
<if not flag=title-prefix>
<if not flag=$title-prefix>
   <let name=title-prefix pre>User:</let>
   <let name=title-prefix pre>User:</let>
   <let name=title-prefix append copy=user />
   <let name=title-prefix append copy=user />
Line 21: Line 21:
<let name=tag2 append>input type=hidden name=!TITLETPLT value="</let>
<let name=tag2 append>input type=hidden name=!TITLETPLT value="</let>
<let name=tag2 append copy=title-prefix />
<let name=tag2 append copy=title-prefix />
<let name=tag2 append>[$!TIMESTAMP$] [$posttitle$]"</let>
<let name=tag2 append>[$?TIMESTAMP$] [$posttitle$]"</let>
<let name=tag2 append chr=62 />
<let name=tag2 append chr=62 />
</hide>
</hide><echo raw vars now>
'''User''': <get name=user /> | '''Prefix''': <get name=title-prefix />
<echo raw vars now>
<form action="/w/Special:MakePage" target=_blank method=POST>
<form action="/w/Special:MakePage" target=_blank method=POST>
<input type=hidden name="!TPLTPAGE"  value="[$tpltpage$]">
<input type=hidden name="!TPLTPAGE"  value="[$tpltpage$]">
<input type=hidden name="!TIMEFMT"  value="Y-m-d Hi">
<input type=hidden name="!TIMEFMT"  value="Y-m-d Hi">
<input type=hidden name="!TPLTSTART" value="<pre>">
<input type=hidden name="!TPLTSTART" value="@@START@@">
<input type=hidden name="!TPLTSTOP" value="</pre>">
<input type=hidden name="!TPLTSTOP" value="@@STOP@@">
</echo>
</echo><get name=tag1 raw /><get name=tag2 raw />
<get name=tag1 raw /><get name=tag2 raw />
==Make a Post==
{|
{|
|-
|-
| align=right | '''Post title''':        || <echo raw now><input name=posttitle size=60></echo>
| align=right | '''Post title''':        || <echo raw now><input name=posttitle size=60></echo>
|-
|-
| align=right | '''Page title''':       || <get name=title-prefix />[timestamp] [post title]
| colspan=| '''Above the fold''': <echo raw now><textarea name=text-above rows=3></textarea></echo>
|-
|-
| colspan=2  | <hr><small>Topic lists look like this: '''\a topic\another topic\a third topic'''<br>List as many topics as you want.</small>
| colspan=2  | '''Below the fold''': <echo raw now><textarea name=text-below rows=20></textarea></echo>
|-
|-
| align=right | '''Global topic list''': || <echo raw now><input name=topics-global size=80></echo>
| colspan=2 |
<hr>
<small>List as many topics as you want; a topic list looks like this: '''\a topic\another topic\a third topic'''</small>
|-
|-
| align=right | '''User-specific topic list''':   || <echo raw now><input name=topics-user size=80></echo>
| align=right | '''Global topics''': || <echo raw now><input name=topics-global size=80></echo>
|-
|-
| colspan=| '''Above the fold''': <echo raw now><textarea name=text-above rows=3></textarea></echo>
| align=right | '''User topics''':   || <echo raw now><input name=topics-user size=80></echo>
|-
| colspan=2  | '''Below the fold''': <echo raw now><textarea name=text-below rows=20></textarea></echo>
|-
|-
| colspan=2  | <echo raw now><input type=submit value=Preview></echo><echo raw now><input type=reset value=-clear-></echo>
| colspan=2  | <hr><echo raw now><input type=submit value="Preview the post"></echo>
|}
|}
<echo raw vars now></form></echo>
<echo raw vars now></form></echo>
==Some Explanations==
<div class=instructions>
* When you press "Preview the post", you will get to see roughly what your post will look like when you post it. From there you can post it, or switch back to this tab to make changes.
* If you post it, it will be saved on a page called '''<get name=title-prefix />''[timestamp]''/''[your title here]''''' and attributed to <get name=user />.
* "topic lists" should look like this: \a topic\another topic\third topic\and so on
* "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 text becomes the divider.
** You can use whatever character you want as a divider; the first character in the text 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)
** 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)
** Assigning posts to one or more topics makes it possible to display post summaries by topic.
* "above the fold" text will appear in summaries/compilations and in the RSS feed; "below the fold" generally only appears when you look at the actual posting page.
* "above the fold" text will appear in summaries/compilations and in the RSS feed; "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=_blank" from the form tag near the top
* The intrinsic form variable !TIMEFMT uses the PHP date format, which is documented [http://php.net/manual/en/function.date.php here].
* The template for formatting the data in this form is: <get name=wtTplt />
* The template for formatting the data in this form is: <get name=wtTplt />
* Timestamp will be set to the time at which you first preview the post
* Timestamp will be set to the time at which you first preview the post
</div>

Revision as of 13:06, 17 August 2020

Make a Post

Post title:
Above the fold:
Below the fold:

List as many topics as you want; a topic list looks like this: \a topic\another topic\a third topic

Global topics:
User topics:

Some Explanations

  • When you press "Preview the post", you will get to see roughly what your post will look like when you post it. From there you can post it, or switch back to this tab to make changes.
  • If you post it, it will be saved on a page called User:18.222.67.251/blog/[timestamp]/[your title here] and attributed to 18.222.67.251.
  • "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 text 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)
    • Assigning posts to one or more topics makes it possible to display post summaries by topic.
  • "above the fold" text will appear in summaries/compilations and in the RSS feed; "below the fold" generally only appears when you look at the actual posting page.
  • The template for formatting the data in this form is: [[project:Forms/handling/blog/post]]
  • Timestamp will be set to the time at which you first preview the post