Form:Item: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
(Testing simplifying forms)
No edit summary
 
(67 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude>This is the form definition for opinion item pages; click on the "edit" tab to see the source text for it. You can add data with this form [[Special:AddPage/Item|here]].
<noinclude>
</noinclude>
This is the 'Item' form. Enter the name of the opinion item you want to add here. If an opinion item with that name already exists on this site, you will be sent to the form for editing that page; otherwise, you will be sent to the form for adding the page.
<includeonly>
 
{{#forminput:form=Item|button text=Create or edit opinion item|autocomplete on category=Items}}
</noinclude><includeonly>{{{info|create title=Create an opinion item|edit title=Edit an opinion item}}}
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
{{{for template|Item}}}
{{{for template|Item}}}
  <p><strong>Author:</strong> {{{field|author|mandatory}}}</p>
{| class="formtable"
  <p><strong>Source:</strong> {{{field|source|mandatory}}}</p>
! Author(s):
  <p><strong>Date:</strong> {{{field|date}}}</p>
| {{{field|author|mandatory}}}
  <p><strong>URL:</strong> {{{field|url}}}</p>
|-
  <p><strong>Quote:</strong> {{{field|quote|input type=textarea|}}}</p>
! Source:
{{{end template}}}
| {{{field|source|mandatory}}}
 
|-
{{{for template|Additional author|label=Additional authors|multiple}}}
! Date:
  <strong>Author:</strong> {{{field|1|autocomplete on=Authors}}}
| {{{field|date}}}
|-
! URL:
| {{{field|url}}}
|-
! Quote:
| {{{field|quote}}}
|}
{{{end template}}}
{{{end template}}}


{{{for template|Opinion|label=Opinions for this item|multiple}}}
{{{for template|Opinion|label=Opinions for this item|multiple}}}
  <p><strong>Topic:</strong> {{{field|1}}} <strong>Position:</strong> {{{field|2|size=55}}}</p>
<span style="float: left; padding-right: 5px;">'''Topic:'''</span>
  <p><strong>Stance:</strong> {{{field|3|size=10}}}</p>
<span style="float: left; padding-right: 20px;">{{{field|1|input type=combobox}}}</span>
<span style="float: left; padding-right: 5px;">'''Position:'''</span>
<span style="float: left; padding-right: 20px;">{{{field|2|input type=combobox|values dependent on=Opinion[1]}}}</span>
<span style="float: left; padding-right: 5px;">'''Stance:'''</span>
<span style="float: left;">{{{field|3}}}</span>
{{{end template}}}
{{{end template}}}


{{{for template|Reference|label=Previous opinion items this item refers to|multiple}}}
{{{for template|Reference|label=Previous opinion items this item refers to|multiple}}}
  <strong>Item name:</strong> {{{field|1|autocomplete on=Items}}}
'''Item name:''' {{{field|1|input type=text with autocomplete|values from category=Items|size=60|mandatory}}}
{{{end template}}}
{{{end template}}}


    <p><strong>Free text:</strong></p>
'''Free text:'''
    {{{field|free text}}}
 
{{{standard input|free text}}}
</includeonly>
</includeonly>

Latest revision as of 14:41, July 20, 2022

This is the 'Item' form. Enter the name of the opinion item you want to add here. If an opinion item with that name already exists on this site, you will be sent to the form for editing that page; otherwise, you will be sent to the form for adding the page.