Form:News Article: Difference between revisions
New Games, Classic Systems
More actions
Approved News form presentation and accessible labels |
Guarded rollback of News form presentation 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 | <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> | ||
{{{for template|NewsArticle}}} | {{{for template|NewsArticle}}} | ||
<div class="agm-news-form-grid"> | <div class="agm-news-form-grid"> | ||
<div | <div><label>Headline — required</label> | ||
{{{field|Headline|input type=text|mandatory|maxlength=160|default={{PAGENAME}}}}}</div> | {{{field|Headline|input type=text|mandatory|maxlength=160|default={{PAGENAME}}}}}</div> | ||
<div | <div><label>Category — required</label> | ||
{{{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 | <div><label>Publication date — required</label> | ||
{{{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 | <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> | ||
<div | <div><label>Publication status — required</label> | ||
{{{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</label> | ||
{{{field|Intro|input type=textarea|rows=3|mandatory|maxlength=500}}} | {{{field|Intro|input type=textarea|rows=3|mandatory|maxlength=500}}} | ||
<p class="agm-news | <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> | ||
< | <label>Featured image — optional</label> | ||
{{{field|FeaturedImage|input type=text|uploadable|image preview}}} | {{{field|FeaturedImage|input type=text|uploadable|image preview}}} | ||
<p class="agm-news | <p class="agm-news-help">Choose an existing uploaded filename, or use the existing upload control. Normal image rules and permissions apply.</p> | ||
{{{end template}}} | {{{end template}}} | ||
<h2>Article body</h2> | |||
<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> | |||
<h2 | |||
<p class="agm-news | |||
{{{standard input|free text|rows=18|mandatory}}} | {{{standard input|free text|rows=18|mandatory}}} | ||
{{{for template|NewsSources}}} | {{{for template|NewsSources}}} | ||
<h2 | <h2>Sources and references</h2> | ||
{{{field|Sources|input type=textarea|rows=4}}} | {{{field|Sources|input type=textarea|rows=4}}} | ||
<p class="agm-news | <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> | ||
{{{end template}}} | {{{end template}}} | ||
<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> | ||
Revision as of 04:48, 28 October 2026
This form publishes standalone News pages. Publishing is restricted server-side to Moderators and Administrators.