Template:Forum link: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(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>

Revision as of 16:57, 30 May 2019

Forum link This is a link to the FlightGear forum

The following template description is not displayed when the template is inserted in an article.

Goal

This template can be used when linking to topics and posts on the FlightGear forum.

Usage

{{forumref|title=|t=|p=|label=|hilit=|f=|noicon=}}
title
Topic title
t
Thread number to be passed to phpBB's viewtopic.php (optional)
p
Post number to be passed to phpBB's viewtopic.php (optional)
label
HTML label, used for jumping to posts (optional)
hilit
Words on the forum posts to be highlighted (optional)
f
Forum number to be passed to phpBB's viewtopic.php (optional)
noicon
If true, the little FlightGear icon (FlightGear icon 15px.png) will not be shown.

Example

Linking to a subtopic

{{forumref|title=FlightGear Newsletter|t=7794}}

Template:Forumref


Linking to a post

{{forumref|title=Re: Marking topics as "solved"|p=111333}}

Template:Forumref

Related template