User:Bugman/forum url: Difference between revisions
Jump to navigation
Jump to search
(Support for viewforum.pbp to allow for just the 'f' parameter to be supplied.) |
(Added a TOC for easier documentation navigation, and shifted the details about using the {{project infrastructure}} template into a "Technical details" section.) |
||
Line 25: | Line 25: | ||
}}<noinclude> | }}<noinclude> | ||
{{Informative template|1= | {{Informative template|1= | ||
== Goal == | == Goal == | ||
This template is used to create URLs for subforums, topics or posts on the FlightGear forum | This template is used to create URLs for subforums, topics or posts on the FlightGear forum. | ||
__TOC__ | |||
== Usage == | == Usage == | ||
Line 48: | Line 48: | ||
; hilit: Words on the forum posts to be highlighted (optional). Words should be separated by the plus character "+". | ; hilit: Words on the forum posts to be highlighted (optional). Words should be separated by the plus character "+". | ||
== Technical details == | |||
The protocol and domain name part of the URI is built using the {{tl|project infrastructure}} template. | |||
== Examples == | == Examples == |
Latest revision as of 07:48, 5 June 2019
The following template description is not displayed when the template is inserted in an article.
Goal
This template is used to create URLs for subforums, topics or posts on the FlightGear forum.
Usage
{{forum url | f = | t = | p = | anchor = | hilit = }}
- f
- Forum number to be passed to phpBB's viewtopic.php (optional).
- t
- Thread number to be passed to phpBB's viewtopic.php (optional).
- p
- Post number to be passed to phpBB's viewtopic.php (optional).
- anchor
- HTML anchor, used for jumping to posts (optional).
- hilit
- Words on the forum posts to be highlighted (optional). Words should be separated by the plus character "+".
Technical details
The protocol and domain name part of the URI is built using the {{project infrastructure}} template.
Examples
No arguments
{{User:Bugman/forum url}}
A subforum (The FlightGear project)
{{User:Bugman/forum url|f=42}}
https://forum.flightgear.orgviewforum.php?f=42
A topic (FlightGear Newsletter)
{{User:Bugman/forum url|t=7794}}
https://forum.flightgear.orgviewtopic.php?t=7794
A post (Re: Marking topics as "solved")
{{User:Bugman/forum url|p=111333}}
https://forum.flightgear.orgviewtopic.php?p=111333#p111333
Subforum, topic and post
Note The f and t parameters are redundant in this URL. |
{{User:Bugman/forum url|f=8|t=10805|p=111333}}
https://forum.flightgear.orgviewtopic.php?f=8&t=10805&p=111333#p111333
Topic and post
Note The t parameter is redundant in this URL. |
{{User:Bugman/forum url|t=10805|p=111333}}
https://forum.flightgear.orgviewtopic.php?t=10805&p=111333#p111333
Anchoring
{{User:Bugman/forum url|t=10805|anchor=p111333}}
https://forum.flightgear.orgviewtopic.php?t=10805#p111333
Highlighting
{{User:Bugman/forum url|t=10805|hilit=board+index}}
https://forum.flightgear.orgviewtopic.php?t=10805&hilit=board+index