Form:News Article: Difference between revisions
New Games, Classic Systems
More actions
Guarded rollback of News form presentation Tag: Manual revert |
Approved News form presentation and accessible labels Tag: Manual revert |
||
| Line 2: | Line 2: | ||
{{{info|page name=News:<NewsArticle[Headline]>|create title=Write a news article|edit title=Edit news article}}} | {{{info|page name=News:<NewsArticle[Headline]>|create title=Write a news article|edit title=Edit news article}}} | ||
<div class="agm-news-form"> | <div class="agm-news-form"> | ||
<p>Use a factual headline and short introduction. Save Published to list the article immediately, or Draft to keep it out of the feeds. Saved drafts are still publicly readable at their wiki URL.</p> | <p class="agm-news-form-intro">Use a factual headline and short introduction. Save Published to list the article immediately, or Draft to keep it out of the feeds. Saved drafts are still publicly readable at their wiki URL.</p> | ||
<div class="agm-news-form-section" role="region" aria-labelledby="agm-news-details-heading"> | |||
<h2 id="agm-news-details-heading">Article details</h2> | |||
{{{for template|NewsArticle}}} | {{{for template|NewsArticle}}} | ||
<div class="agm-news-form-grid"> | <div class="agm-news-form-grid"> | ||
<div><label>Headline — required</ | <div class="agm-news-form-field"><span class="agm-news-field-label" id="agm-news-headline-label">Headline — required</span> | ||
{{{field|Headline|input type=text|mandatory|maxlength=160|default={{PAGENAME}}}}}</div> | {{{field|Headline|input type=text|mandatory|maxlength=160|default={{PAGENAME}}}}}</div> | ||
<div><label>Category — required</ | <div class="agm-news-form-field"><span class="agm-news-field-label" id="agm-news-category-label">Category — required</span> | ||
{{{field|Category|input type=dropdown|values=Gaming News,Site Updates|mandatory|default=Gaming News}}}</div> | {{{field|Category|input type=dropdown|values=Gaming News,Site Updates|mandatory|default=Gaming News}}}</div> | ||
<div><label>Publication date — required</ | <div class="agm-news-form-field"><span class="agm-news-field-label" id="agm-news-date-label">Publication date — required</span> | ||
{{{field|PublicationDate|input type=text|mandatory|default={{#time:Y-m-d}}|placeholder=YYYY-MM-DD}}} | {{{field|PublicationDate|input type=text|mandatory|default={{#time:Y-m-d}}|placeholder=YYYY-MM-DD}}} | ||
<p class="agm-news-help">Use YYYY-MM-DD. The archive displays Australian-style dates. Future-dated articles must remain Draft; scheduling is not enabled.</p></div> | <p class="agm-news-help" id="agm-news-date-help">Use YYYY-MM-DD. The archive displays Australian-style dates. Future-dated articles must remain Draft; scheduling is not enabled.</p></div> | ||
<div><label>Publication status — required</ | <div class="agm-news-form-field"><span class="agm-news-field-label" id="agm-news-status-label">Publication status — required</span> | ||
{{{field|Status|input type=dropdown|values=Published,Draft|mandatory|default=Published}}}</div> | {{{field|Status|input type=dropdown|values=Published,Draft|mandatory|default=Published}}}</div> | ||
</div> | </div> | ||
<label>Short introduction — required</ | <div class="agm-news-form-field"><span class="agm-news-field-label" id="agm-news-intro-label">Short introduction — required</span> | ||
{{{field|Intro|input type=textarea|rows=3|mandatory|maxlength=500}}} | {{{field|Intro|input type=textarea|rows=3|mandatory|maxlength=500}}} | ||
<p class="agm-news-help">Up to 500 characters of plain text for the homepage and archive. The full article body is not stored in Cargo.</p> | <p class="agm-news-help" id="agm-news-intro-help">Up to 500 characters of plain text for the homepage and archive. The full article body is not stored in Cargo.</p></div> | ||
<label>Featured image — optional</ | <div class="agm-news-form-field"><span class="agm-news-field-label" id="agm-news-image-label">Featured image — optional</span> | ||
{{{field|FeaturedImage|input type=text|uploadable|image preview}}} | {{{field|FeaturedImage|input type=text|uploadable|image preview}}} | ||
<p class="agm-news-help">Choose an existing uploaded filename, or use the existing upload control. Normal image rules and permissions apply.</p> | <p class="agm-news-help" id="agm-news-image-help">Choose an existing uploaded filename, or use the existing upload control. Normal image rules and permissions apply.</p></div> | ||
{{{end template}}} | {{{end template}}} | ||
<h2>Article body</h2> | </div> | ||
<p class="agm-news-help">Normal wiki formatting is supported, including headings, lists, tables, links and named <ref> citations. Other template transclusions are not supported in this first version.</p> | <div class="agm-news-form-section" role="region" aria-labelledby="agm-news-body-heading"> | ||
<h2 id="agm-news-body-heading">Article body</h2> | |||
<div class="agm-news-form-field"><span class="agm-news-field-label" id="agm-news-body-label">Article text — required</span> | |||
<p class="agm-news-help" id="agm-news-body-help">Normal wiki formatting is supported, including headings, lists, tables, links and named <ref> citations. Other template transclusions are not supported in this first version.</p> | |||
{{{standard input|free text|rows=18|mandatory}}} | {{{standard input|free text|rows=18|mandatory}}} | ||
</div></div> | |||
<div class="agm-news-form-section" role="region" aria-labelledby="agm-news-sources-heading"> | |||
{{{for template|NewsSources}}} | {{{for template|NewsSources}}} | ||
<h2>Sources and references</h2> | <h2 id="agm-news-sources-heading">Sources and references</h2> | ||
<div class="agm-news-form-field"><span class="agm-news-field-label" id="agm-news-sources-label">Sources — optional</span> | |||
{{{field|Sources|input type=textarea|rows=4}}} | {{{field|Sources|input type=textarea|rows=4}}} | ||
<p class="agm-news-help">Optional source links or reference definitions. Use <ref name="source">…</ref> and reuse with <ref name="source" />. A References list is added automatically.</p> | <p class="agm-news-help" id="agm-news-sources-help">Optional source links or reference definitions. Use <ref name="source">…</ref> and reuse with <ref name="source" />. A References list is added automatically.</p></div> | ||
{{{end template}}} | {{{end template}}} | ||
</div> | |||
<div class="agm-news-form-actions">{{{standard input|save|label=Save article}}} {{{standard input|preview}}} {{{standard input|cancel}}}</div> | <div class="agm-news-form-actions">{{{standard input|save|label=Save article}}} {{{standard input|preview}}} {{{standard input|cancel}}}</div> | ||
</div> | </div> | ||
</includeonly> | </includeonly> | ||
Latest revision as of 09:35, 28 October 2026
This form publishes standalone News pages. Publishing is restricted server-side to Moderators and Administrators.