2,562
edits
(Added # back in, but only displays if post is supplied. Added currently valid boards to the doc. Made blank defaults, which enabled new syntax. Added comment about where to find the template code itself.) |
m (Ok, the last one made the syntax help appear. I guess I need both tags to get the behavior I want.) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
<code><nowiki>{{News|<board>|<post>}}</nowiki> | <code><nowiki>{{News|<board>|<post>}}</nowiki> | ||
<nowiki>{{news|<board>|<post> | <nowiki>{{news|<board>|<post>}}</nowiki></code> | ||
===Parameters=== | ===Parameters=== | ||
Line 20: | Line 16: | ||
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== | ||
<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 onlyinclude tags is where the actual template code happens. --> | |||
<includeonly><onlyinclude>[https://www.lusternia.com/news/{{{1}}}/{{{2}}} {{{1}}} #{{{2}}}]</onlyinclude></includeonly> | |||
< | |||
[[Category: Templates]] | [[Category: Templates]] |
edits