Form:NewsItem: Difference between revisions
From Landrace.Wiki - The Landrace Cannabis Wiki
More actions
Eloise Zomia (talk | contribs) No edit summary Tag: Reverted |
Eloise Zomia (talk | contribs) Undo revision 2519 by Eloise Zomia (talk) Tag: Undo |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This | This form creates a News Item page for [[Portal:Current Events]]. | ||
Recommended workflow: use the "Add News Item" button on the portal (auto stub title). | |||
</noinclude> | |||
</noinclude | |||
{{{for template|NewsItem}}} | {{{for template|NewsItem}}} | ||
{| class="formtable" | {| class="formtable" | ||
! Date: | ! Date (required): | ||
| {{{field|date|input type=datepicker|mandatory}}} | | {{{field|date|input type=datepicker|mandatory}}} | ||
|- | |- | ||
! Category: | ! Category (required): | ||
| {{{field|category|input type=dropdown| | | {{{field|category|input type=dropdown|property=Has event category|mandatory}}} | ||
|- | |- | ||
! | ! Headline (required): | ||
| {{{field|title|input type=text | | {{{field|title|input type=text|mandatory}}} | ||
|- | |- | ||
! Summary: | ! Summary (required): | ||
| {{{field|summary|input type=textarea|rows= | | {{{field|summary|input type=textarea|rows=4|mandatory}}} | ||
|- | |- | ||
! Source URL: | ! Source URL (required): | ||
| {{{field|source|input type= | | {{{field|source|input type=url|mandatory}}} | ||
|- | |- | ||
! | ! Ongoing event (hub): | ||
| {{{field|part_of_campaign|input type= | | {{{field|part_of_campaign|property=Has part of campaign|input type=page|placeholder=Start typing the hub page…}}} | ||
|- | |- | ||
! Country: | ! Country: | ||
| {{{field|country|input type= | | {{{field|country|input type=page}}} | ||
|- | |- | ||
! | ! Province/State: | ||
| {{{field|admin1|input type=text| | | {{{field|admin1|input type=text|placeholder=State / Province / Region…}}} | ||
|- | |- | ||
! | ! District: | ||
| {{{field|admin2|input type=text| | | {{{field|admin2|input type=text|placeholder=District / County…}}} | ||
|- | |- | ||
! Locality: | ! Locality: | ||
| {{{field|locality|input type= | | {{{field|locality|input type=text|placeholder=Town / area / site…}}} | ||
|- | |- | ||
! Coordinates: | ! Coordinates: | ||
| {{{field|coordinates|input type= | | {{{field|coordinates|property=Has event coordinates|input type=coordinates|placeholder=lat, lon}}} | ||
|- | |||
! Growing region: | |||
| {{{field|growing_region|input type=page}}} | |||
|- | |- | ||
! Growing | ! Growing area: | ||
| {{{field| | | {{{field|growing_area|input type=page}}} | ||
|} | |} | ||
{{{end template}}} | {{{end template}}} | ||
{{{standard input|save}}} {{{standard input|preview | [[Category:News Item]] | ||
<div style="display:none;"> | |||
[[Has event date::___date___]] | |||
[[Has event category::___category___]] | |||
[[Has event headline::___title___]] | |||
[[Has event summary::___summary___]] | |||
[[Has source URL::___source___]] | |||
[[Has part of campaign::___part_of_campaign___]] | |||
[[Has country::___country___]] | |||
[[Has admin subdivision 1::___admin1___]] | |||
[[Has admin subdivision 2::___admin2___]] | |||
[[Has locality::___locality___]] | |||
[[Has event coordinates::___coordinates___]] | |||
[[Has growing region::___growing_region___]] | |||
[[Has growing area::___growing_area___]] | |||
</div> | |||
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|cancel}}} | |||
Revision as of 11:31, 18 January 2026
This form creates a News Item page for Portal:Current Events. Recommended workflow: use the "Add News Item" button on the portal (auto stub title).
NewsItem
| Date (required): | date |
|---|---|
| Category (required): | category |
| Headline (required): | title |
| Summary (required): | summary |
| Source URL (required): | source |
| Ongoing event (hub): | part_of_campaign |
| Country: | country |
| Province/State: | admin1 |
| District: | admin2 |
| Locality: | locality |
| Coordinates: | coordinates |
| Growing region: | growing_region |
| Growing area: | growing_area |
{{{end template}}}
save preview cancel