Form:NewsItem: Difference between revisions
More actions
Eloise Zomia (talk | contribs) No edit summary |
Eloise Zomia (talk | contribs) No edit summary |
||
| Line 2: | Line 2: | ||
<templatestyles src="Template:NewsItemForm/styles.css" /> | <templatestyles src="Template:NewsItemForm/styles.css" /> | ||
This form creates a News Item page for [[Portal:Current Events]]. | This form creates a News Item page for [[Portal:Current Events]]. | ||
Recommended workflow: use the | 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" | ||
|- | |- | ||
| Line 115: | Line 114: | ||
|} | |} | ||
|} | |} | ||
{{{end template}}} | |||
[[Category:News Item]] | |||
<div style="display:none;"> | |||
[[Has event date::{{{field|date}}}]] | |||
[[Has event category::{{{field|category}}}]] | |||
[[Has event headline::{{{field|title}}}]] | |||
[[Has event summary::{{{field|summary}}}]] | |||
[[Has source URL::{{{field|source}}}]] | |||
{{#if:{{{field|part_of_campaign|}}}|[[Has part of campaign::{{{field|part_of_campaign}}}]]}} | |||
{{#if:{{{field|country|}}}|[[Has country::{{{field|country}}}]]}} | |||
{{#if:{{{field|admin1|}}}|[[Has admin subdivision 1::{{{field|admin1}}}]]}} | |||
{{#if:{{{field|admin2|}}}|[[Has admin subdivision 2::{{{field|admin2}}}]]}} | |||
{{#if:{{{field|locality|}}}|[[Has locality::{{{field|locality}}}]]}} | |||
{{#if:{{{field|coordinates|}}}|[[Has event coordinates::{{{field|coordinates}}}]]}} | |||
{{#if:{{{field|growing_region|}}}|[[Has growing region::{{{field|growing_region}}}]]}} | |||
{{#if:{{{field|growing_area|}}}|[[Has growing area::{{{field|growing_area}}}]]}} | |||
{{#if:{{{field|agency|}}}|[[Has enforcement agency::{{{field|agency}}}]]}} | |||
{{#if:{{{field|hectares|}}}|[[Has hectares destroyed::{{{field|hectares}}}]]}} | |||
{{#if:{{{field|plants|}}}|[[Has plants eradicated::{{{field|plants}}}]]}} | |||
</div> | |||
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|cancel}}} | {{{standard input|save}}} {{{standard input|preview}}} {{{standard input|cancel}}} | ||
Revision as of 19:09, 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 | |||||||||||||||||||||||||||||