Difference between revisions of "Template:News"

27 bytes added ,  00:29, 10 July 2022
m
Ok, the last one made the syntax help appear. I guess I need both tags to get the behavior I want.
m (→‎Example: If I'm right, this will cause the template to work correctly on other pages, but not display at the bottom of this one.)
m (Ok, the last one made the syntax help appear. I guess I need both tags to get the behavior I want.)
 
Line 19: Line 19:
<code><nowiki>{{news|Events|488}}</nowiki></code> will go to Events 488 and look like: [https://www.lusternia.com/news/events/488/ Events #488]
<code><nowiki>{{news|Events|488}}</nowiki></code> will go to Events 488 and look like: [https://www.lusternia.com/news/events/488/ Events #488]


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


[[Category: Templates]]
[[Category: Templates]]
2,691

edits