Toggle menu
639
116
68
6.6K
Landrace.Wiki - The Landrace Cannabis Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Form:NewsItem: Difference between revisions

From Landrace.Wiki - The Landrace Cannabis Wiki
No edit summary
No edit summary
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<templatestyles src="Form:NewsItem/styles.css" /><noinclude>
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 "Add News Item" button on the portal (auto stub title).
Recommended workflow:
</noinclude><div class="lw-form">
Use the “Add News Item” link on the portal. It opens this form with an auto-generated stub page name (no manual naming).
<div class="lw-form-badge"><div class="lw-form-badge-bar"></div><span class="lw-form-badge-text">New news item</span></div>
</noinclude>
 
{{{for template|NewsItem}}}
{{{for template|NewsItem}}}
{| class="formtable"
<div class="lw-section"><div class="lw-section-header">Core details</div><div class="lw-section-body">
! Date (required):
<div class="lw-row"><div class="lw-field"><div class="lw-label">Date <span class="lw-req">*</span></div><div class="lw-input">{{{field|date|input type=datepicker|mandatory}}}</div></div><div class="lw-field"><div class="lw-label">Category <span class="lw-req">*</span></div><div class="lw-input">{{{field|category|input type=dropdown|property=Has event category}}}</div></div></div>
| {{{field|date|input type=datepicker|mandatory}}}
<div class="lw-field"><div class="lw-label">Headline <span class="lw-req">*</span></div><div class="lw-input">{{{field|headline|input type=text}}}</div></div>
|-
<div class="lw-field"><div class="lw-label">Summary <span class="lw-req">*</span></div><div class="lw-input">{{{field|summary|input type=textarea|rows=4}}}</div></div>
! Category (required):
<div class="lw-field"><div class="lw-label">Source URL <span class="lw-req">*</span></div><div class="lw-input">{{{field|source|input type=url}}}</div></div>
| {{{field|category|input type=dropdown|property=Has event category|mandatory}}}
<div class="lw-field"><div class="lw-label">Ongoing event (hub)</div><div class="lw-input">{{{field|part_of_campaign|property=Has part of campaign|input type=page|placeholder=Start typing the hub page...}}}</div></div>
|-
</div></div>
! Status:
<div class="lw-section"><div class="lw-section-header lw-section-header--optional">Geographic context <span class="lw-section-badge">optional</span></div><div class="lw-section-body">
| {{{field|status|input type=dropdown|property=Has event status|default=Single-day}}}
<div class="lw-field"><div class="lw-label">Country</div><div class="lw-input">{{{field|country|input type=page}}}</div></div>
|-
<div class="lw-row"><div class="lw-field"><div class="lw-label">Province / State</div><div class="lw-input">{{{field|admin1|input type=text|placeholder=Use ; for multiple (e.g. Ilocos Sur; Benguet)}}}</div></div><div class="lw-field"><div class="lw-label">District</div><div class="lw-input">{{{field|admin2|input type=text|placeholder=Use ; for multiple (e.g. Sugpon; Kibungan)}}}</div></div></div>
! Headline (required):
<div class="lw-row"><div class="lw-field"><div class="lw-label">Locality</div><div class="lw-input">{{{field|locality|input type=text|placeholder=Use ; for multiple (e.g. Grahan; Malana)}}}</div></div><div class="lw-field"><div class="lw-label">Coordinates</div><div class="lw-input">{{{field|coordinates|property=Has event coordinates|input type=coordinates|placeholder=lat, lon}}}</div></div></div>
| {{{field|title|input type=text|mandatory}}}
<div class="lw-row"><div class="lw-field"><div class="lw-label">Growing region</div><div class="lw-input">{{{field|growing_region|input type=page}}}</div></div><div class="lw-field"><div class="lw-label">Growing area</div><div class="lw-input">{{{field|growing_area|input type=page}}}</div></div></div>
|-
</div></div>
! Summary (required):
<div class="lw-section lw-section--collapsible"><div class="lw-section-header lw-section-header--optional">Enforcement data <span class="lw-section-badge">optional</span></div><div class="lw-section-body">
| {{{field|summary|input type=textarea|rows=4|mandatory}}}
<div class="lw-field"><div class="lw-label">Agency</div><div class="lw-input">{{{field|agency|input type=text|placeholder=e.g. SENAD, Federal Police}}}</div></div>
|-
<div class="lw-row"><div class="lw-field"><div class="lw-label">Hectares destroyed</div><div class="lw-input">{{{field|hectares|input type=text|placeholder=e.g. 589}}}</div></div><div class="lw-field"><div class="lw-label">Plants eradicated</div><div class="lw-input">{{{field|plants|input type=text|placeholder=e.g. 81500}}}</div></div></div>
! Source URL (required):
</div></div>
| {{{field|source|input type=url|mandatory}}}
<div class="lw-section lw-section--collapsible"><div class="lw-section-header lw-section-header--optional">Eradication plots <span class="lw-section-badge">up to 10</span></div><div class="lw-section-body">
|-
<div class="lw-plot"><div class="lw-plot-label">Plot 1</div>
! Gene pool:
<div class="lw-field"><div class="lw-label">Label</div><div class="lw-input">{{{field|plot1_label|input type=text|placeholder=e.g. Loccong ridge}}}</div></div>
| {{{field|gene_pool|input type=page}}}
<div class="lw-row lw-row--3col"><div class="lw-field"><div class="lw-label">Coordinates</div><div class="lw-input">{{{field|plot1_coordinates|input type=coordinates|placeholder=lat, lon}}}</div></div><div class="lw-field"><div class="lw-label">Hectares</div><div class="lw-input">{{{field|plot1_hectares|input type=text|placeholder=e.g. 1.2}}}</div></div><div class="lw-field"><div class="lw-label">Plants</div><div class="lw-input">{{{field|plot1_plants|input type=text|placeholder=e.g. 52000}}}</div></div></div></div>
|-
<div class="lw-plot"><div class="lw-plot-label">Plot 2</div>
! Growing region:
<div class="lw-field"><div class="lw-label">Label</div><div class="lw-input">{{{field|plot2_label|input type=text}}}</div></div>
| {{{field|growing_region|input type=page}}}
<div class="lw-row lw-row--3col"><div class="lw-field"><div class="lw-label">Coordinates</div><div class="lw-input">{{{field|plot2_coordinates|input type=coordinates|placeholder=lat, lon}}}</div></div><div class="lw-field"><div class="lw-label">Hectares</div><div class="lw-input">{{{field|plot2_hectares|input type=text}}}</div></div><div class="lw-field"><div class="lw-label">Plants</div><div class="lw-input">{{{field|plot2_plants|input type=text}}}</div></div></div></div>
|-
<div class="lw-plot"><div class="lw-plot-label">Plot 3</div>
! Growing area:
<div class="lw-field"><div class="lw-label">Label</div><div class="lw-input">{{{field|plot3_label|input type=text}}}</div></div>
| {{{field|growing_area|input type=page}}}
<div class="lw-row lw-row--3col"><div class="lw-field"><div class="lw-label">Coordinates</div><div class="lw-input">{{{field|plot3_coordinates|input type=coordinates|placeholder=lat, lon}}}</div></div><div class="lw-field"><div class="lw-label">Hectares</div><div class="lw-input">{{{field|plot3_hectares|input type=text}}}</div></div><div class="lw-field"><div class="lw-label">Plants</div><div class="lw-input">{{{field|plot3_plants|input type=text}}}</div></div></div></div>
|-
<div class="lw-plot"><div class="lw-plot-label">Plot 4</div>
! Appellation:
<div class="lw-field"><div class="lw-label">Label</div><div class="lw-input">{{{field|plot4_label|input type=text}}}</div></div>
| {{{field|appellation|input type=page}}}
<div class="lw-row lw-row--3col"><div class="lw-field"><div class="lw-label">Coordinates</div><div class="lw-input">{{{field|plot4_coordinates|input type=coordinates|placeholder=lat, lon}}}</div></div><div class="lw-field"><div class="lw-label">Hectares</div><div class="lw-input">{{{field|plot4_hectares|input type=text}}}</div></div><div class="lw-field"><div class="lw-label">Plants</div><div class="lw-input">{{{field|plot4_plants|input type=text}}}</div></div></div></div>
|-
<div class="lw-plot"><div class="lw-plot-label">Plot 5</div>
! Parent story page:
<div class="lw-field"><div class="lw-label">Label</div><div class="lw-input">{{{field|plot5_label|input type=text}}}</div></div>
| {{{field|parent_story|input type=page}}}
<div class="lw-row lw-row--3col"><div class="lw-field"><div class="lw-label">Coordinates</div><div class="lw-input">{{{field|plot5_coordinates|input type=coordinates|placeholder=lat, lon}}}</div></div><div class="lw-field"><div class="lw-label">Hectares</div><div class="lw-input">{{{field|plot5_hectares|input type=text}}}</div></div><div class="lw-field"><div class="lw-label">Plants</div><div class="lw-input">{{{field|plot5_plants|input type=text}}}</div></div></div></div>
|}
<div class="lw-plot"><div class="lw-plot-label">Plot 6</div>
<div class="lw-field"><div class="lw-label">Label</div><div class="lw-input">{{{field|plot6_label|input type=text}}}</div></div>
<div class="lw-row lw-row--3col"><div class="lw-field"><div class="lw-label">Coordinates</div><div class="lw-input">{{{field|plot6_coordinates|input type=coordinates|placeholder=lat, lon}}}</div></div><div class="lw-field"><div class="lw-label">Hectares</div><div class="lw-input">{{{field|plot6_hectares|input type=text}}}</div></div><div class="lw-field"><div class="lw-label">Plants</div><div class="lw-input">{{{field|plot6_plants|input type=text}}}</div></div></div></div>
<div class="lw-plot"><div class="lw-plot-label">Plot 7</div>
<div class="lw-field"><div class="lw-label">Label</div><div class="lw-input">{{{field|plot7_label|input type=text}}}</div></div>
<div class="lw-row lw-row--3col"><div class="lw-field"><div class="lw-label">Coordinates</div><div class="lw-input">{{{field|plot7_coordinates|input type=coordinates|placeholder=lat, lon}}}</div></div><div class="lw-field"><div class="lw-label">Hectares</div><div class="lw-input">{{{field|plot7_hectares|input type=text}}}</div></div><div class="lw-field"><div class="lw-label">Plants</div><div class="lw-input">{{{field|plot7_plants|input type=text}}}</div></div></div></div>
<div class="lw-plot"><div class="lw-plot-label">Plot 8</div>
<div class="lw-field"><div class="lw-label">Label</div><div class="lw-input">{{{field|plot8_label|input type=text}}}</div></div>
<div class="lw-row lw-row--3col"><div class="lw-field"><div class="lw-label">Coordinates</div><div class="lw-input">{{{field|plot8_coordinates|input type=coordinates|placeholder=lat, lon}}}</div></div><div class="lw-field"><div class="lw-label">Hectares</div><div class="lw-input">{{{field|plot8_hectares|input type=text}}}</div></div><div class="lw-field"><div class="lw-label">Plants</div><div class="lw-input">{{{field|plot8_plants|input type=text}}}</div></div></div></div>
<div class="lw-plot"><div class="lw-plot-label">Plot 9</div>
<div class="lw-field"><div class="lw-label">Label</div><div class="lw-input">{{{field|plot9_label|input type=text}}}</div></div>
<div class="lw-row lw-row--3col"><div class="lw-field"><div class="lw-label">Coordinates</div><div class="lw-input">{{{field|plot9_coordinates|input type=coordinates|placeholder=lat, lon}}}</div></div><div class="lw-field"><div class="lw-label">Hectares</div><div class="lw-input">{{{field|plot9_hectares|input type=text}}}</div></div><div class="lw-field"><div class="lw-label">Plants</div><div class="lw-input">{{{field|plot9_plants|input type=text}}}</div></div></div></div>
<div class="lw-plot"><div class="lw-plot-label">Plot 10</div>
<div class="lw-field"><div class="lw-label">Label</div><div class="lw-input">{{{field|plot10_label|input type=text}}}</div></div>
<div class="lw-row lw-row--3col"><div class="lw-field"><div class="lw-label">Coordinates</div><div class="lw-input">{{{field|plot10_coordinates|input type=coordinates|placeholder=lat, lon}}}</div></div><div class="lw-field"><div class="lw-label">Hectares</div><div class="lw-input">{{{field|plot10_hectares|input type=text}}}</div></div><div class="lw-field"><div class="lw-label">Plants</div><div class="lw-input">{{{field|plot10_plants|input type=text}}}</div></div></div></div>
</div></div>
[[Category:News Item]]
{{{end template}}}
{{{end template}}}
 
<div class="lw-buttons">{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|cancel}}}</div>
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|cancel}}}
</div>

Latest revision as of 21:45, 27 March 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).

New news item

NewsItem

Core details
Date *
date
Category *
category
Headline *
headline
Summary *
summary
Source URL *
source
Ongoing event (hub)
part_of_campaign
Geographic context optional
Country
country
Province / State
admin1
District
admin2
Locality
locality
Coordinates
coordinates
Growing region
growing_region
Growing area
growing_area
Enforcement data optional
Agency
agency
Hectares destroyed
hectares
Plants eradicated
plants
Eradication plots up to 10
Plot 1
Label
plot1_label
Coordinates
plot1_coordinates
Hectares
plot1_hectares
Plants
plot1_plants
Plot 2
Label
plot2_label
Coordinates
plot2_coordinates
Hectares
plot2_hectares
Plants
plot2_plants
Plot 3
Label
plot3_label
Coordinates
plot3_coordinates
Hectares
plot3_hectares
Plants
plot3_plants
Plot 4
Label
plot4_label
Coordinates
plot4_coordinates
Hectares
plot4_hectares
Plants
plot4_plants
Plot 5
Label
plot5_label
Coordinates
plot5_coordinates
Hectares
plot5_hectares
Plants
plot5_plants
Plot 6
Label
plot6_label
Coordinates
plot6_coordinates
Hectares
plot6_hectares
Plants
plot6_plants
Plot 7
Label
plot7_label
Coordinates
plot7_coordinates
Hectares
plot7_hectares
Plants
plot7_plants
Plot 8
Label
plot8_label
Coordinates
plot8_coordinates
Hectares
plot8_hectares
Plants
plot8_plants
Plot 9
Label
plot9_label
Coordinates
plot9_coordinates
Hectares
plot9_hectares
Plants
plot9_plants
Plot 10
Label
plot10_label
Coordinates
plot10_coordinates
Hectares
plot10_hectares
Plants
plot10_plants

{{{end template}}}

save preview cancel