Template:Forum link

From FlightGear wiki
Jump to navigation Jump to search

[1] 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 is used to create MediaWiki links - either via text or the icon - to subforums, topics and posts on the FlightGear forum.

Usage

{{forum link
| title    =
| text     =
| type     =
| f        =
| t        =
| p        =
| anchor   =
| hilit    =
| u        =
| keywords =
| noicon   =
| onlyicon =
| size     =
}}
title
Topic title (optional). This will be italicised and used to build the link text.
text
The link text (optional). This is an alternative to the title parameter and, if supplied, will be used for the link text.
type
The forum interface type that can be one of:
view
The default value. This is used for URLs to posts, topics, and posts, via phpBB's viewforum.php or viewtopic.php.
member
For URLs of a user on the forum, via phpBB's memberlist.php. This value will cause the f, t, p, anchor, and hilit parameters to be ignored.
search
For URLs performing forum searches, via phpBB's search.php. This value will cause the p, anchor, and hilit parameters to be ignored.
f
Forum number (optional). Used with the type values of view and search.
t
Topic number (optional). Used with the type values of view and search.
p
Post number (optional). Used with the type value of view.
anchor
HTML anchor, used for jumping to posts (optional). Used with the type value of view.
hilit
Words on the forum posts to be highlighted (optional). Words should be separated by the plus character "+". Used with the type value of view.
u
User number (optional). Used with the type value of member.
keywords
The keywords to perform a forum search with (optional). Words should be separated by the plus character "+". Used with the type value of search.
noicon
If true, the little FlightGear icon (FlightGear icon 15px.png) will not be shown.
onlyicon
If true, only the little FlightGear icon (FlightGear icon 15px.png) will be shown.
size
The icon size (optional). This should be a valid MediaWiki image size value, e.g. 32px.

Technical details

This template uses the {{forum url}} template to construct the URI part of the link. That template then uses the {{project infrastructure}} template to provide the protocol and domain name part of the URI.

Examples

No arguments

{{forum link}}

[2] This is a link to the FlightGear forum.

View mode

A subforum (The FlightGear project)

{{forum link|f=42}}

[3] This is a link to the FlightGear forum.

{{forum link|title=The FlightGear project|f=42}}

The FlightGear project subforum This is a link to the FlightGear forum.

{{forum link|text=The FlightGear project|f=42}}

The FlightGear project This is a link to the FlightGear forum.

{{forum link|title=The FlightGear project|f=42|noicon=yes}}

The FlightGear project subforum

{{forum link|title=The FlightGear project|f=42|onlyicon=yes}}

'The FlightGear project' subforum of the FlightGear forum.

A topic (FlightGear Newsletter)

{{forum link|t=7794}}

[4] This is a link to the FlightGear forum.

{{forum link|title=FlightGear Newsletter|t=7794}}

FlightGear Newsletter topic on the forum This is a link to the FlightGear forum.

{{forum link|text=FlightGear Newsletter|t=7794}}

FlightGear Newsletter This is a link to the FlightGear forum.

{{forum link|title=FlightGear Newsletter|t=7794|noicon=yes}}

FlightGear Newsletter topic on the forum

{{forum link|title=FlightGear Newsletter|t=7794|onlyicon=yes}}

'FlightGear Newsletter' topic on the FlightGear forum.

A post (Re: Marking topics as "solved")

{{forum link|p=111333}}

[5] This is a link to the FlightGear forum.

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

Re: Marking topics as "solved" post on the forum This is a link to the FlightGear forum.

{{forum link|text=Re: Marking topics as "solved"|p=111333}}

Re: Marking topics as "solved" This is a link to the FlightGear forum.

{{forum link|title=Re: Marking topics as "solved"|p=111333|noicon=yes}}

Re: Marking topics as "solved" post on the forum

{{forum link|title=Re: Marking topics as "solved"|p=111333|onlyicon=yes}}

'Re: Marking topics as "solved"' post on the FlightGear forum.

Subforum, topic and post

Note  The f and t parameters are redundant in this URL.
{{forum link|f=8|t=10805|p=111333}}

[6] This is a link to the FlightGear forum.

{{forum link|title=Re: Marking topics as "solved"|f=8|t=10805|p=111333}}

Re: Marking topics as "solved" post on the forum This is a link to the FlightGear forum.

{{forum link|text=Re: Marking topics as "solved"|f=8|t=10805|p=111333}}

Re: Marking topics as "solved" This is a link to the FlightGear forum.

{{forum link|title=Re: Marking topics as "solved"|f=8|t=10805|p=111333|noicon=yes}}

Re: Marking topics as "solved" post on the forum

{{forum link|title=Re: Marking topics as "solved"|f=8|t=10805|p=111333|onlyicon=yes}}

'Re: Marking topics as "solved"' post on the FlightGear forum.

Topic and post

Note  The t parameter is redundant in this URL.
{{forum link|t=10805|p=111333}}

[7] This is a link to the FlightGear forum.

{{forum link|title=Re: Marking topics as "solved"|t=10805|p=111333}}

Re: Marking topics as "solved" post on the forum This is a link to the FlightGear forum.

{{forum link|text=Re: Marking topics as "solved"|t=10805|p=111333}}

Re: Marking topics as "solved" This is a link to the FlightGear forum.

{{forum link|title=Re: Marking topics as "solved"|t=10805|p=111333|noicon=yes}}

Re: Marking topics as "solved" post on the forum

{{forum link|title=Re: Marking topics as "solved"|t=10805|p=111333|onlyicon=yes}}

'Re: Marking topics as "solved"' post on the FlightGear forum.

Anchoring

{{forum link|t=10805|anchor=p111333}}

[8] This is a link to the FlightGear forum.

{{forum link|title=Re: Marking topics as "solved"|t=10805|anchor=p111333}}

Re: Marking topics as "solved" topic on the forum This is a link to the FlightGear forum.

{{forum link|text=Re: Marking topics as "solved"|t=10805|anchor=p111333}}

Re: Marking topics as "solved" This is a link to the FlightGear forum.

{{forum link|title=Re: Marking topics as "solved"|t=10805|anchor=p111333|noicon=yes}}

Re: Marking topics as "solved" topic on the forum

{{forum link|title=Re: Marking topics as "solved"|t=10805|anchor=p111333|onlyicon=yes}}

'Re: Marking topics as "solved"' topic on the FlightGear forum.

Highlighting

{{forum link|t=10805|hilit=board+index}}

[9] This is a link to the FlightGear forum.

{{forum link|title=board index|t=10805|hilit=board+index}}

board index topic on the forum This is a link to the FlightGear forum.

{{forum link|text=board index|t=10805|hilit=board+index}}

board index This is a link to the FlightGear forum.

{{forum link|title=board index|t=10805|hilit=board+index|noicon=yes}}

board index topic on the forum

{{forum link|title=board index|t=10805|hilit=board+index|onlyicon=yes}}

'board index' topic on the FlightGear forum.

Highlight a post
{{forum link|title=Re: Marking topics as "solved"|p=111333|hilit=contains+a+problem}}

Re: Marking topics as "solved" post on the forum This is a link to the FlightGear forum.

Member mode

Member listing

{{forum link|type=member}}

[10] This is a link to the FlightGear forum.

{{forum link|title=Forum member listing|type=member}}

the forum member listing This is a link to the FlightGear forum.

{{forum link|text=Forum member listing|type=member}}

Forum member listing This is a link to the FlightGear forum.

{{forum link|title=Forum member listing|type=member|noicon=yes}}

the forum member listing

{{forum link|title=Forum member listing|type=member|onlyicon=yes}}

The FlightGear forum listing.

Specific member

{{forum link|type=member|u=2}}

[11] This is a link to the FlightGear forum.

{{forum link|title=curt|type=member|u=2}}

the forum user curt This is a link to the FlightGear forum.

{{forum link|text=curt|type=member|u=2}}

curt This is a link to the FlightGear forum.

{{forum link|title=curt|type=member|u=2|noicon=yes}}

the forum user curt

{{forum link|title=curt|type=member|u=2|onlyicon=yes}}

The FlightGear forum user 'curt'.

Search mode

Search page

{{forum link|type=search}}

[12] This is a link to the FlightGear forum.

{{forum link|title=Search page|type=search}}

FlightGear forum search page This is a link to the FlightGear forum.

{{forum link|text=Search page|type=search}}

Search page This is a link to the FlightGear forum.

{{forum link|title=Search page|type=search|noicon=yes}}

FlightGear forum search page

{{forum link|title=Search page|type=search|onlyicon=yes}}

FlightGear forum search page.

Search everything

{{forum link|type=search|keywords=c172p+floats}}

[13] This is a link to the FlightGear forum.

{{forum link|title=Amphibious Cessna|type=search|keywords=c172p+floats}}

FlightGear forum search for 'c172p+floats' This is a link to the FlightGear forum.

{{forum link|text=Amphibious Cessna|type=search|keywords=c172p+floats}}

Amphibious Cessna This is a link to the FlightGear forum.

{{forum link|title=Amphibious Cessna|type=search|keywords=c172p+floats|noicon=yes}}

FlightGear forum search for 'c172p+floats'

{{forum link|title=Amphibious Cessna|type=search|keywords=c172p+floats|onlyicon=yes}}

FlightGear forum search for 'c172p+floats'.

Search a subforum

{{forum link|type=search|f=4|keywords=c172p+floats}}

[14] This is a link to the FlightGear forum.

{{forum link|title=Amphibious Cessna|type=search|f=4|keywords=c172p+floats}}

FlightGear subforum search for 'c172p+floats' This is a link to the FlightGear forum.

{{forum link|text=Amphibious Cessna|type=search|f=4|keywords=c172p+floats}}

Amphibious Cessna This is a link to the FlightGear forum.

{{forum link|title=Amphibious Cessna|type=search|f=4|keywords=c172p+floats|noicon=yes}}

FlightGear subforum search for 'c172p+floats'

{{forum link|title=Amphibious Cessna|type=search|f=4|keywords=c172p+floats|onlyicon=yes}}

link=https://forum.flightgear.org/search.php?keywords=c172p+floats&fid[]=4

Search a topic

{{forum link|type=search|t=25157|keywords=c172p+floats}}

[15] This is a link to the FlightGear forum.

{{forum link|title=Amphibious Cessna|type=search|t=25157|keywords=c172p+floats}}

FlightGear topic search for 'c172p+floats' This is a link to the FlightGear forum.

{{forum link|text=Amphibious Cessna|type=search|t=25157|keywords=c172p+floats}}

Amphibious Cessna This is a link to the FlightGear forum.

{{forum link|title=Amphibious Cessna|type=search|t=25157|keywords=c172p+floats|noicon=yes}}

FlightGear topic search for 'c172p+floats'

{{forum link|title=Amphibious Cessna|type=search|t=25157|keywords=c172p+floats|onlyicon=yes}}

FlightGear topic search for 'c172p+floats'.

Different icon sizes

Text and icon

{{forum link|title=Re: Marking topics as "solved"|p=111333|size=15px}}

Re: Marking topics as "solved" post on the forum This is a link to the FlightGear forum.

{{forum link|title=Re: Marking topics as "solved"|p=111333|size=32px}}

Re: Marking topics as "solved" post on the forum This is a link to the FlightGear forum.

{{forum link|title=Re: Marking topics as "solved"|p=111333|size=64px}}

Re: Marking topics as "solved" post on the forum This is a link to the FlightGear forum.

{{forum link|title=Re: Marking topics as "solved"|p=111333|size=200px}}

Re: Marking topics as "solved" post on the forum This is a link to the FlightGear forum.

Icon only

{{forum link|title=Re: Marking topics as "solved"|p=111333|onlyicon=yes|size=15px}}

'Re: Marking topics as "solved"' post on the FlightGear forum.

{{forum link|title=Re: Marking topics as "solved"|p=111333|onlyicon=yes|size=32px}}

'Re: Marking topics as "solved"' post on the FlightGear forum.

{{forum link|title=Re: Marking topics as "solved"|p=111333|onlyicon=yes|size=64px}}

'Re: Marking topics as "solved"' post on the FlightGear forum.

{{forum link|title=Re: Marking topics as "solved"|p=111333|onlyicon=yes|size=200px}}

'Re: Marking topics as "solved"' post on the FlightGear forum.

Related templates


This template is used to create MediaWiki links - either via text or the icon - to subforums, topics and posts on the FlightGear forum.

Template parameters

ParameterDescriptionTypeStatus
Topic titletitle

This will be italicised and used to build the link text.

Stringoptional
Link texttext

This is an alternative to the title parameter and, if supplied, will be used for the link text.

Stringoptional
Typetype

The forum interface type.

Suggested values
view member search
Default
view
Stringoptional
Forum idf

Used with the type values of view and search.

Numberoptional
Topic idt

Used with the type values of view and search.

Numberoptional
Post idp

Used with the type value of view.

Numberoptional
User idu

Used with the type value of member.

Numberoptional
Anchoranchor

Used for jumping to posts (optional). Used with the type value of view.

Unknownoptional
hilithilit

Words on the forum posts to be highlighted (optional). Words should be separated by the plus character "+". Used with the type value of view.

Unknownoptional
Keywordskeywords

The keywords to perform a forum search with (optional). Words should be separated by the plus character "+". Used with the type value of search.

Stringoptional
noiconnoicon

If true, the little FlightGear icon will not be shown.

Booleanoptional
onlyicononlyicon

If true, only the little FlightGear icon will be shown.

Booleanoptional
Icon sizesize

This should be a valid MediaWiki image size value, e.g. 32px.

Unknownoptional