Difference between revisions of "PsyCrit:Add Response"

(updated template markers)
(tweaks to w3tpl tag syntax - form now renders properly, but target list is empty)
Line 1: Line 1:
<noinclude>[[category:data/forms]]</noinclude><hide>
<noinclude>[[category:data/forms]]</noinclude><hide>
<func xmltag contents>
  <let name=out chr=60 />
  <let name=out append copy=contents />
  <let name=out append chr=62 />
  <echo><get name=out raw /></echo>
</func>


<let name=targReq arg=target /> get requested target, if any
<let name=targReq arg=target /> get requested target, if any
</hide>
</hide>
{|
{|
<echo raw now><form action="/Special:MakePage" target=newpage method=POST></echo>
<echo raw tag>form action="/Special:MakePage" target=newpage method=POST</echo>
|-
|-
| align=right | Target article:
| align=right | Target article:
|<call xmltag contents="SELECT NAME=target" />
|<echo tag>SELECT NAME=target</echo>
<call xmltag contents="option value" />Select a target...<call xmltag contents="/option" />
<echo tag>option value</echo>Select a target...<echo tag>/option</echo>
<let name=including val=1 />
<let name=including val=1 />
<for table="qryW3_Titles_Catgs" where="(cl_to='Data/target') AND (page_title LIKE 'Targets/%')" sort="page_title DESC" name=pg hide>
<for table="qryW3_Titles_Catgs" where="(cl_to='Data/target') AND (page_title LIKE 'Targets/%')" sort="page_title DESC" name=pg hide>
Line 25: Line 19:
     <let name=opt_tag append> selected</let>
     <let name=opt_tag append> selected</let>
   </if>
   </if>
   <echo><call xmltag contents=$opt_tag /><get name=keyname /> - <get name=title /><call xmltag contents="/OPTION" /></echo>
   <echo tag val=$opt_tag /><get name=keyname /> - <get name=title /><echo tag>/OPTION</echo>
</for>
</for>
<call xmltag contents="/SELECT" /> [<small>[{{fullurl:{{FULLPAGENAME}}|action=purge}} refresh]</small>]
<echo tag>/SELECT</echo> [<small>[{{fullurl:{{FULLPAGENAME}}|action=purge}} refresh]</small>]
|-
|-
| align=right | Title:  || <echo raw now><input name=respTitle size=40></echo>
| align=right | Title:  || <echo tag>input name=respTitle size=40</echo>
|-
|-
| align=right valign=top | Author attribution: || <echo raw now><input name=respAuth size=80></echo>
| align=right valign=top | Author attribution: || <echo raw now><input name=respAuth size=80></echo>
* usually author's name and institutional affiliation
* usually author's name and institutional affiliation
|-
|-
| align=right | Date: || <echo raw now><input name=respDate size=10></echo>
| align=right | Date: || <echo tag>input name=respDate size=10</echo>
|-
|-
| align=right valign=top | Short name: || <echo raw now><input name=respRef size=20></echo>
| align=right valign=top | Short name: || <echo tag>input name=respRef size=20</echo>
* usually author's last name; used for page title =&gt; <u>targetname</u>/<u>date</u> <u>short name</u>
* usually author's last name; used for page title =&gt; <u>targetname</u>/<u>date</u> <u>short name</u>
* this is used for referencing the article; readers will see it
* this is used for referencing the article; readers will see it
|-
|-
| align=right valign=top | Headline: || <echo raw now><input name=respHdln size=40></echo>
| align=right valign=top | Headline: || <echo tag>input name=respHdln size=40</echo>
|-
|-
| colspan=2 | Snippet:  <echo raw now><textarea name=respSnip rows=4></textarea></echo>
| colspan=2 | Snippet:  <echo tag>textarea name=respSnip rows=4</echo><echo tag>/textarea</echo>
|}
|}
<echo raw now>
<echo raw>
<input type=hidden name=!TPLTPAGE value="project:templates/response">
<input type=hidden name=!TPLTPAGE value="project:templates/response">
<input type=hidden name=!TITLETPLT value="Targets/[$target$]/[$respDate$] [$respRef$]">
<input type=hidden name=!TITLETPLT value="Targets/[$target$]/[$respDate$] [$respRef$]">
<input type=submit value=Preview> <input type=reset value="-clear-">
<input type=submit value=Preview> <input type=reset value="-clear-">
</form></echo>
</form></echo>

Revision as of 10:43, 4 February 2018

Target article: [refresh]

Title:
Author attribution:
  • usually author's name and institutional affiliation
Date:
Short name:
  • usually author's last name; used for page title => targetname/date short name
  • this is used for referencing the article; readers will see it
Headline:
Snippet: