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

(some tidying)
(tidying diagnostics display)
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
<noinclude>[[category:forms/entry]]</noinclude><hide>
<noinclude>[[category:forms/entry]]</noinclude><hide>
<let name=timestamp pre>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}} {{CURRENTTIME}}</let>
<let name=timestamp pre>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}} {{CURRENTTIME}}</let>
<let name=tpltpage>project:Forms/handling/blog/post</let>
<let name=tpltpage>project:Forms/handling/blog/post</let>
 
<let name=urlTarget parse>{{localurl:Special:W3TPL/makepage}}</let>
<let name=wtTplt>[[</let>
<let name=tagOpenForm parse>form action="<get name=urlTarget />" target=_blank method=POST</let>
<let name=wtTplt append copy=tpltpage />
<let name=tagInput1 parse>input type=hidden name="!TPLTPAGE"  value="<get name=tpltpage />"</let>
<let name=wtTplt append>]]</let>
 
<let name=user val=@user.dbkey />
<if not flag=$title-prefix>
  <let name=title-prefix pre>User:</let>
  <let name=title-prefix append copy=user />
  <let name=title-prefix append>/blog/</let>
</if>
<let name=tag1 chr=60 />
<let name=tag1 append>input type=hidden name=user value="</let>
<let name=tag1 append copy=user />
<let name=tag1 append>"</let>
<let name=tag1 append chr=62 />
<let name=tag2 chr=60 />
<let name=tag2 append>input type=hidden name=!TITLETPLT value="</let>
<let name=tag2 append copy=title-prefix />
<let name=tag2 append>[$?TIMESTAMP$] [$posttitle$]"</let>
<let name=tag2 append chr=62 />
</hide>
</hide>
<echo raw vars now>
<get name=tagOpenForm astag />
<form action="/w/Special:MakePage" target=_blank method=POST>
<get name=tagInput1 astag />
<input type=hidden name="!TPLTPAGE"  value="[$tpltpage$]">
==Make a Post==
<input type=hidden name="!TIMEFMT"  value="Y-m-d Hi">
<input type=hidden name="!TPLTSTART" value="@@START@@">
<input type=hidden name="!TPLTSTOP"  value="@@STOP@@">
</echo><get name=tag1 raw /><get name=tag2 raw />
{|
{|
|-
| colspan=2 |
==Your 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>
Line 42: Line 18:
| colspan=2  | '''Below the fold''': <echo raw now><textarea name=text-below rows=20></textarea></echo>
| colspan=2  | '''Below the fold''': <echo raw now><textarea name=text-below rows=20></textarea></echo>
|-
|-
| colspan=2 |
<hr>
==Topics==
<small>List as many topics as you want; a topic list looks like this: '''\a topic\another topic\a third topic'''</small>
|-
|-
| align=right | '''Global topics''': || <echo raw now><input name=topics-global size=80></echo>
| align=right | '''Topics''': || <echo raw now><input name=topics size=80></echo>
|-
|-
| align=right | '''User topics''':  || <echo raw now><input name=topics-user size=80></echo>
| colspan=2 |
<small>List as many topics as you want; see Explanations below for how to format them.</small>
|-
|-
| colspan=2  | <hr><echo raw now><input type=submit value="Preview the post"></echo>
| colspan=2  | <echo raw now><input type=submit value="Preview the post"></echo>
|}
|}
<echo raw vars now></form></echo>
<echo raw vars now></form></echo>
Line 57: Line 30:
<div class=instructions>
<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.
* 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 />.
* A topic list should look like this: '''<nowiki>[[topic::a topic]] [[topic::another topic]] [[topic::third topic]]</nowiki>''' and so on
* "topic lists" should look like this: \a topic\another topic\third topic\and so on
** Assigning one or more topics makes it possible to display posts by topic, in various formats.
** 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.
* "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: <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>
</div>
<hide detsumm="Diagnostics">
==Diagnostics==
<let name=wttpltpage>[[</let>
<let name=wttpltpage append copy=tpltpage />
<let name=wttpltpage append>]]</let>
* '''Form target''': <get name=urlTarget />
* '''Template''': <get name=wttpltpage parse />
* '''Variables''':
<blockquote>
<dump vars />
</blockquote>
</hide>

Latest revision as of 20:53, 18 May 2022

Make a Post

Post title:
Above the fold:
Below the fold:
Topics:

List as many topics as you want; see Explanations below for how to format them.

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.
  • A topic list should look like this: [[topic::a topic]] [[topic::another topic]] [[topic::third topic]] and so on
    • Assigning one or more topics makes it possible to display posts by topic, in various formats.
  • "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.
  • Timestamp will be set to the time at which you first preview the post

Diagnostics

Diagnostics


  • Variables:
    • [timestamp] = [2024-05-03 14:02]
    • [tpltpage] = [project:Forms/handling/blog/post]
    • [urltarget] = [/w/Special:W3TPL/makepage]
    • [tagopenform] = [form action="'"`UNIQ--get-00000005-QINU`"'" target=_blank method=POST]
    • [taginput1] = [input type=hidden name="!TPLTPAGE" value="'"`UNIQ--get-00000007-QINU`"'"]
    • [wttpltpage] = [[[project:Forms/handling/blog/post]]]