Jump to content
Toggle menu
  • 15 articles
  • 65 files
  • 7 users
  • 474 edits
Aftermarket Games
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Form:News Article: Difference between revisions

New Games, Classic Systems
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 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>
<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>
<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 class="agm-news-form-field"><span class="agm-news-field-label" id="agm-news-headline-label">Headline — required</span>
<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 class="agm-news-form-field"><span class="agm-news-field-label" id="agm-news-category-label">Category — required</span>
<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 class="agm-news-form-field"><span class="agm-news-field-label" id="agm-news-date-label">Publication date — required</span>
<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-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>
<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 class="agm-news-form-field"><span class="agm-news-field-label" id="agm-news-status-label">Publication status — required</span>
<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>
<div class="agm-news-form-field"><span class="agm-news-field-label" id="agm-news-intro-label">Short introduction — required</span>
<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-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>
<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>
<div class="agm-news-form-field"><span class="agm-news-field-label" id="agm-news-image-label">Featured image — optional</span>
<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-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>
<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}}}
</div>
<h2>Article body</h2>
<div class="agm-news-form-section" role="region" aria-labelledby="agm-news-body-heading">
<p class="agm-news-help">Normal wiki formatting is supported, including headings, lists, tables, links and named &lt;ref&gt; citations. Other template transclusions are not supported in this first version.</p>
<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 &lt;ref&gt; 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 id="agm-news-sources-heading">Sources and references</h2>
<h2>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" id="agm-news-sources-help">Optional source links or reference definitions. Use &lt;ref name="source"&gt;…&lt;/ref&gt; and reuse with &lt;ref name="source" /&gt;. A References list is added automatically.</p></div>
<p class="agm-news-help">Optional source links or reference definitions. Use &lt;ref name="source"&gt;…&lt;/ref&gt; and reuse with &lt;ref name="source" /&gt;. A References list is added automatically.</p>
{{{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>

Revision as of 04:48, 28 October 2026

This form publishes standalone News pages. Publishing is restricted server-side to Moderators and Administrators.