Template:Forum link
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
orviewtopic.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.
- 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}}
View mode
A subforum (The FlightGear project)
{{forum link|f=42}}
{{forum link|title=The FlightGear project|f=42}}
The FlightGear project subforum
{{forum link|text=The FlightGear project|f=42}}
{{forum link|title=The FlightGear project|f=42|noicon=yes}}
The FlightGear project subforum
{{forum link|title=The FlightGear project|f=42|onlyicon=yes}}
A topic (FlightGear Newsletter)
{{forum link|t=7794}}
{{forum link|title=FlightGear Newsletter|t=7794}}
FlightGear Newsletter topic on the forum
{{forum link|text=FlightGear Newsletter|t=7794}}
{{forum link|title=FlightGear Newsletter|t=7794|noicon=yes}}
FlightGear Newsletter topic on the forum
{{forum link|title=FlightGear Newsletter|t=7794|onlyicon=yes}}
A post (Re: Marking topics as "solved")
{{forum link|p=111333}}
{{forum link|title=Re: Marking topics as "solved"|p=111333}}
Re: Marking topics as "solved" post on the forum
{{forum link|text=Re: Marking topics as "solved"|p=111333}}
Re: Marking topics as "solved"
{{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}}
Subforum, topic and post
Note The f and t parameters are redundant in this URL. |
{{forum link|f=8|t=10805|p=111333}}
{{forum link|title=Re: Marking topics as "solved"|f=8|t=10805|p=111333}}
Re: Marking topics as "solved" post on the forum
{{forum link|text=Re: Marking topics as "solved"|f=8|t=10805|p=111333}}
Re: Marking topics as "solved"
{{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}}
Topic and post
Note The t parameter is redundant in this URL. |
{{forum link|t=10805|p=111333}}
{{forum link|title=Re: Marking topics as "solved"|t=10805|p=111333}}
Re: Marking topics as "solved" post on the forum
{{forum link|text=Re: Marking topics as "solved"|t=10805|p=111333}}
Re: Marking topics as "solved"
{{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}}
Anchoring
{{forum link|t=10805|anchor=p111333}}
{{forum link|title=Re: Marking topics as "solved"|t=10805|anchor=p111333}}
Re: Marking topics as "solved" topic on the forum
{{forum link|text=Re: Marking topics as "solved"|t=10805|anchor=p111333}}
Re: Marking topics as "solved"
{{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}}
Highlighting
{{forum link|t=10805|hilit=board+index}}
{{forum link|title=board index|t=10805|hilit=board+index}}
board index topic on the forum
{{forum link|text=board index|t=10805|hilit=board+index}}
{{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}}
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
Member mode
Member listing
{{forum link|type=member}}
{{forum link|title=Forum member listing|type=member}}
{{forum link|text=Forum member listing|type=member}}
{{forum link|title=Forum member listing|type=member|noicon=yes}}
{{forum link|title=Forum member listing|type=member|onlyicon=yes}}
Specific member
{{forum link|type=member|u=2}}
{{forum link|title=curt|type=member|u=2}}
{{forum link|text=curt|type=member|u=2}}
{{forum link|title=curt|type=member|u=2|noicon=yes}}
{{forum link|title=curt|type=member|u=2|onlyicon=yes}}
Search mode
Search page
{{forum link|type=search}}
{{forum link|title=Search page|type=search}}
{{forum link|text=Search page|type=search}}
{{forum link|title=Search page|type=search|noicon=yes}}
{{forum link|title=Search page|type=search|onlyicon=yes}}
Search everything
{{forum link|type=search|keywords=c172p+floats}}
{{forum link|title=Amphibious Cessna|type=search|keywords=c172p+floats}}
FlightGear forum search for 'c172p+floats'
{{forum link|text=Amphibious Cessna|type=search|keywords=c172p+floats}}
{{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}}
Search a subforum
{{forum link|type=search|f=4|keywords=c172p+floats}}
{{forum link|title=Amphibious Cessna|type=search|f=4|keywords=c172p+floats}}
FlightGear subforum search for 'c172p+floats'
{{forum link|text=Amphibious Cessna|type=search|f=4|keywords=c172p+floats}}
{{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}}
Search a topic
{{forum link|type=search|t=25157|keywords=c172p+floats}}
{{forum link|title=Amphibious Cessna|type=search|t=25157|keywords=c172p+floats}}
FlightGear topic search for 'c172p+floats'
{{forum link|text=Amphibious Cessna|type=search|t=25157|keywords=c172p+floats}}
{{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}}
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
{{forum link|title=Re: Marking topics as "solved"|p=111333|size=32px}}
Re: Marking topics as "solved" post on the forum
{{forum link|title=Re: Marking topics as "solved"|p=111333|size=64px}}
Re: Marking topics as "solved" post on the forum
{{forum link|title=Re: Marking topics as "solved"|p=111333|size=200px}}
Re: Marking topics as "solved" post on the forum
Icon only
{{forum link|title=Re: Marking topics as "solved"|p=111333|onlyicon=yes|size=15px}}
{{forum link|title=Re: Marking topics as "solved"|p=111333|onlyicon=yes|size=32px}}
{{forum link|title=Re: Marking topics as "solved"|p=111333|onlyicon=yes|size=64px}}
{{forum link|title=Re: Marking topics as "solved"|p=111333|onlyicon=yes|size=200px}}
Related templates
- {{forum}}
- {{project infrastructure}}
- {{forum url}}
This template is used to create MediaWiki links - either via text or the icon - to subforums, topics and posts on the FlightGear forum.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Topic title | title | This will be italicised and used to build the link text. | String | optional |
Link text | text | This is an alternative to the title parameter and, if supplied, will be used for the link text. | String | optional |
Type | type | The forum interface type.
| String | optional |
Forum id | f | Used with the type values of view and search. | Number | optional |
Topic id | t | Used with the type values of view and search. | Number | optional |
Post id | p | Used with the type value of view. | Number | optional |
User id | u | Used with the type value of member. | Number | optional |
Anchor | anchor | Used for jumping to posts (optional). Used with the type value of view. | Unknown | optional |
hilit | 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. | Unknown | optional |
Keywords | 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. | String | optional |
noicon | noicon | If true, the little FlightGear icon will not be shown. | Boolean | optional |
onlyicon | onlyicon | If true, only the little FlightGear icon will be shown. | Boolean | optional |
Icon size | size | This should be a valid MediaWiki image size value, e.g. 32px. | Unknown | optional |