Form:NewsItem: Difference between revisions
From Landrace.Wiki - The Landrace Cannabis Wiki
More actions
Eloise Zomia (talk | contribs) Created page with "<noinclude> This form creates a structured News Item page for Portal:Current Events. </noinclude> {{{for template|NewsItem}}} {| class="formtable" ! Date (required): | {{{field|date|input type=datepicker|mandatory}}} |- ! Category (required): | {{{field|category|input type=dropdown|values=Policy,Enforcement,Fieldwork,Research,Community|mandatory}}} |- ! Status: | {{{field|status|input type=dropdown|values=Single-day,Ongoing,Monitoring,Resolved|default=Single-day}}}..." |
Eloise Zomia (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{{{for template|NewsItem}}} | {{{for template|NewsItem}}} | ||
{| class="formtable" | {| class="formtable" | ||
! Date | ! Date: | ||
| {{{field|date|input type=datepicker|mandatory}}} | | {{{field|date|input type=datepicker|mandatory}}} | ||
|- | |- | ||
! Category | ! Category: | ||
| {{{field|category|input type=dropdown|values=Policy,Enforcement,Fieldwork,Research,Community|mandatory}}} | | {{{field|category|input type=dropdown|values=Policy,Enforcement,Fieldwork,Research,Community|mandatory}}} | ||
|- | |- | ||
| Line 15: | Line 10: | ||
| {{{field|status|input type=dropdown|values=Single-day,Ongoing,Monitoring,Resolved|default=Single-day}}} | | {{{field|status|input type=dropdown|values=Single-day,Ongoing,Monitoring,Resolved|default=Single-day}}} | ||
|- | |- | ||
! Headline | ! Headline: | ||
| {{{field|title|input type=text|mandatory}}} | | {{{field|title|input type=text|mandatory}}} | ||
|- | |- | ||
! Summary | ! Summary: | ||
| {{{field|summary|input type=textarea|rows=4|mandatory}}} | | {{{field|summary|input type=textarea|rows=4|mandatory}}} | ||
|- | |- | ||
! Source URL | ! Source URL: | ||
| {{{field|source|input type=url|mandatory}}} | | {{{field|source|input type=url|mandatory}}} | ||
|} | |} | ||
{{{end template}}} | {{{end template}}} | ||
{{{info|page name | {{{info|page name | ||
|default=News:{{{field|date}}}/{{{field|category}}}/{{{field|title}}} | |default=News:{{{field|date}}}/{{{field|category}}}/{{#invoke:Slug|make|{{{field|title}}}}} | ||
}}} | }}} | ||
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|cancel}}} | {{{standard input|save}}} {{{standard input|preview}}} {{{standard input|cancel}}} | ||
Revision as of 15:47, 16 January 2026
NewsItem
| Date: | date |
|---|---|
| Category: | category |
| Status: | status |
| Headline: | title |
| Summary: | summary |
| Source URL: | source |
{{{end template}}}
page name
save preview cancel