TenthFleet:News: Difference between revisions

Create Fleet news hub/index
 
m News feed: exclude User and Sandbox namespaces
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:


== Post a news item ==
== Post a news item ==
Create a page titled <code><nowiki>TenthFleet:News/</nowiki>''Your headline''</code> and place <code><nowiki>[[Category:Fleet news]]</nowiki></code> at the bottom. It will appear here and on the Main Page automatically, newest first.
Create a page titled <code><nowiki>TenthFleet:News/</nowiki>''Your headline''</code> with:
<pre>{{News|date=1 July 2026|author=Name, Title}}
...article body, verbatim...
{{News end}}</pre>
The <code>date</code> drives both the article header and the news feed's ordering &amp; date &mdash; no category tag or sort-key needed (the template handles it).
 


== All news ==
== All news ==
{{#dpl:
{{#dpl:
|category=Fleet news
|category=Fleet news
|ordermethod=categoryadd
|notnamespace=User
|notnamespace=Sandbox
|ordermethod=sortkey
|order=descending
|order=descending
|addfirstcategorydate=true
|userdateformat=20Y-m-d
|shownamespace=false
|shownamespace=false
|replaceintitle=/News\//,
|replaceintitle=/News\//,
|include={News}:date
|mode=userformat
|mode=userformat
|noresultsheader=''No news items yet.''
|noresultsheader=''No news items yet.''
|format=,\n* '''%DATE%''' &mdash; [[%PAGE%|%TITLE%]],\n,
|secseparators= &mdash; ,
|format=,\n* '''[[%PAGE%|%TITLE%]]''',\n,
}}
}}


[[Category: Contents]]
[[Category: Contents]]