Template:Forum link: Difference between revisions

fix: Linking to individual posts were broken; +- Lead section; + doc: Clarified and more examples of template use
(Try using the decimal version of the HTML entity)
(fix: Linking to individual posts were broken; +- Lead section; + doc: Clarified and more examples of template use)
Line 4: Line 4:
-->|}}{{#if:{{{t|}}}|t={{{t}}}<!-- Add an ampersand if p or hilit are present afterwards
-->|}}{{#if:{{{t|}}}|t={{{t}}}<!-- Add an ampersand if p or hilit are present afterwards
-->{{#if:{{{p|}}}|&|{{#if:{{{hilit|}}}|&|}}}}<!--
-->{{#if:{{{p|}}}|&|{{#if:{{{hilit|}}}|&|}}}}<!--
-->|}}{{#if:{{{p|}}}|p={{{p}}}<!-- Add an ampersand if hilit is present afterwards
-->|}}{{#if:{{{p|}}}|p={{{p}}}#p{{{p}}}<!-- Add an ampersand if hilit is present afterwards
-->{{#if:{{{hilit|}}}|&|}}<!--
-->{{#if:{{{hilit|}}}|&|}}<!--
-->|}}{{#if:{{{hilit|}}}|hilit={{{hilit}}}|}}{{#if:{{{label|}}}|&#35;{{{label}}}|}} {{#if:{{{title|}}}|''{{{title}}}'' on the forum|Forum link}}]</span>{{#if: {{{noicon|}}} | | &#32;[[File:FlightGear icon 15px.png|This is a link to the FlightGear forum|link=Template:Forumref]] }}<noinclude>
-->|}}{{#if:{{{hilit|}}}|hilit={{{hilit}}}|}}{{#if:{{{label|}}}|&#35;{{{label}}}|}} {{#if:{{{title|}}}|''{{{title}}}'' on the forum|Forum link}}]</span>{{#if: {{{noicon|}}} | | &#32;[[File:FlightGear icon 15px.png|This is a link to the FlightGear forum|link=Template:Forumref]] }}<noinclude>
Line 10: Line 10:
__NOTOC__
__NOTOC__
== Goal ==
== Goal ==
A template to standardize forum links.
This template can be used when linking to topics and posts on the FlightGear forum.


== Usage ==
== Usage ==
Line 30: Line 30:


== Example ==
== Example ==
Linking to a subtopic
  <nowiki>{{forumref|title=FlightGear Newsletter|t=7794}}</nowiki>
  <nowiki>{{forumref|title=FlightGear Newsletter|t=7794}}</nowiki>


{{forumref|title=FlightGear Newsletter|t=7794}}
{{forumref|title=FlightGear Newsletter|t=7794}}
Linking to a post
<nowiki>{{forumref|title=Re: Marking topics as "solved"|p=111333}}</nowiki>
{{forumref|title=Re: Marking topics as "solved"|p=111333}}


== Related template ==
== Related template ==
* {{tl|forum}}
* {{tl|forum}}
}}
}}


[[Category:Link templates]]
[[Category:Link templates]]
</noinclude>
</noinclude>