Template:Forum link: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Fix query parameters present even if the arguments were not passed; make style more in line with Template:Wikipedia for uniformity)
(Fix numbered list being created when the ''label'' parameter was passed)
Line 6: Line 6:
-->|}}{{#if:{{{p|}}}|p={{{p}}}<!-- Add an ampersand if hilit is present afterwards
-->|}}{{#if:{{{p|}}}|p={{{p}}}<!-- Add an ampersand if hilit is present afterwards
-->{{#if:{{{hilit|}}}|&|}}<!--
-->{{#if:{{{hilit|}}}|&|}}<!--
-->|}}{{#if:{{{hilit|}}}|hilit={{{hilit}}}|}}{{#if:{{{label|}}}|#{{{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|}}}|&num;{{{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>
{{Informative template|1=
{{Informative template|1=
__NOTOC__
__NOTOC__

Revision as of 19:58, 17 May 2016

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

A template to standardize forum links.

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

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

Template:Forumref

Related template