Form:Source: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
(Test of new "autocomplete" parameter)
(Removed standard inputs other than free text)
 
(71 intermediate revisions by 13 users not shown)
Line 2: Line 2:
This is the 'Source' form. Enter the name of the source (newspaper, magazine, online magazine or blog) you want to add here. If that source 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.
This is the 'Source' form. Enter the name of the source (newspaper, magazine, online magazine or blog) you want to add here. If that source 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.


{{#forminput:form=Source|size=25|button text=Create or edit source|autocomplete on category=Sources}}
</noinclude><includeonly>
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>


{{#forminput:Source|25||Add or edit source|}}
</noinclude><includeonly>
{{{for template|wikipedia|multiple|label=Wikipedia articles}}}
{{{for template|wikipedia|multiple|label=Wikipedia articles}}}
'''Wikipedia article title (leave blank if equal to this page name):''' {{{field|1}}}
'''Wikipedia article title (leave blank if equal to this page name):''' {{{field|1}}}
Line 10: Line 11:


{{{for template|Source}}}
{{{for template|Source}}}
  <table class="formtable">
{|
  <tr><th>Publication type:</th> <td>{{{field|type}}}</td></tr>
! Publication type:
  <tr><th>Circulation:</th> <td>{{{field|circulation}}}</td></tr>
| {{{field|type|show on select=Newspaper=>circulation;Magazine=>circulation;Blog=>unique-visitors;Online magazine=>unique-visitors}}}
  <tr><th>Monthly unique visitors:</th> <td>{{{field|monthly unique visitors}}}</td></tr>
|}
  <tr><th>Country:</th> <td>{{{field|country|autocomplete}}}</td></tr>
 
  <tr><th>Language:</th> <td>{{{field|language}}}</td></tr>
<div id="circulation">
  <tr><th>URL:</th> <td>{{{field|url}}}</td></tr>
{|
  </table>
! Circulation:
| {{{field|circulation}}}
|}
</div>
 
<div id="unique-visitors">
{|
! Monthly unique visitors:
| {{{field|monthly unique visitors}}}
|}
</div>
 
{| class="formtable"
! Country:
| {{{field|country|input type=combobox}}}
|-
! Language:
| {{{field|language}}}
|-
! URL:
| {{{field|url}}}
|}
{{{end template}}}
{{{end template}}}
'''Free text:'''
{{{standard input|free text|class=fullTextarea}}}
</includeonly>
</includeonly>

Latest revision as of 02:36, February 24, 2021

This is the 'Source' form. Enter the name of the source (newspaper, magazine, online magazine or blog) you want to add here. If that source 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.