Difference between revisions of "Template:News"

63 bytes removed ,  21:25, 13 March 2022
I think I have this fixed for the moment.
(includeonly should have been onlyinclude)
(I think I have this fixed for the moment.)
Line 6: Line 6:
<code><nowiki>{{News|<board>|<post>}}</nowiki></code>
<code><nowiki>{{News|<board>|<post>}}</nowiki></code>


<code><nowiki>{{News|board = <board>|post = <post>}}</nowiki></code>
<code><nowiki>{{news|<board>|<post>}}</nowiki></code>
 
<code><nowiki>{{news|post = <post>|board = <board>}}</nowiki></code>
===Parameters===
===Parameters===
<code><board></code> must be the name of a Lusternia news board.
NOTE: parameters must be in order
<code><post></code> must be the number of a post on the news board
:<code><board></code> must be the name of a Lusternia news board.
:<code><post></code> must be the number of a post on the news board
===Returns===
===Returns===
This appears on the page as an external link of the form: <board> #<post>
This appears on the page as an external link of the form: <board> #<post>
==Example==
==Example==
<code><nowiki>{{news|Events|488}}</nowiki></code> will look and function like [https://www.lusternia.com/news/events/488/ Events #488]
<code><nowiki>{{news|Events|488}}</nowiki></code> will look and function like: [https://www.lusternia.com/news/events/488/ Events #488]




<onlyinclude>
<onlyinclude>
[https://www.lusternia.com/news/{{{board}}}/{{{post}}} {{{board}}} #{{{post}}}]
[https://www.lusternia.com/news/{{{1}}}/{{{2}}} {{{1}}} {{{2}}}]
</onlyinclude>
</onlyinclude>
2,691

edits