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> | 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 & date — no category tag or sort-key needed (the template handles it). | |||
== All news == | == All news == | ||
{{#dpl: | {{#dpl: | ||
|category=Fleet news | |category=Fleet news | ||
|ordermethod= | |notnamespace=User | ||
|notnamespace=Sandbox | |||
|ordermethod=sortkey | |||
|order=descending | |order=descending | ||
|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* ''' | |secseparators= — , | ||
|format=,\n* '''[[%PAGE%|%TITLE%]]''',\n, | |||
}} | }} | ||
[[Category: Contents]] | [[Category: Contents]] | ||