Difference between revisions of "Template:News"

From Archives of Lusternian Lore
Jump to navigation Jump to search
(Stripped out the defaults and advanced usages. It's probably better this way.)
m (Attempting to fix a problem that only arises in bulleted lists)
Line 20: Line 20:


<!-- Between the onlyinclude tags is where the actual template code happens. -->
<!-- Between the onlyinclude tags is where the actual template code happens. -->
<onlyinclude>
<onlyinclude>[https://www.lusternia.com/news/{{{1}}}/{{{2}}} {{{1}}} #{{{2}}}]</onlyinclude>
[https://www.lusternia.com/news/{{{1}}}/{{{2}}} {{{1}}} #{{{2}}}]
</onlyinclude>


[[Category: Templates]]
[[Category: Templates]]

Revision as of 08:25, 15 March 2022

This template is for easily creating external links to the Lusternia news boards.

Using this template will make maintaining these links easier. Should the URL ever need changing, all news links can be fixed by altering this template.

Syntax

{{News|<board>|<post>}}

{{news|<board>|<post>}}

Parameters

NOTE: parameters must be in order

<board> must be the name of a non-faction Lusternia news board: Public|Announce|Politics|Events|Overhaul
<post> must be the number of a post on the news board.

Returns

This appears on the page as an external link of the form: <board> #<post>

Example

{{news|Events|488}} will go to Events 488 and look like: Events #488

{{{1}}} #{{{2}}}