Template:Forum link: Difference between revisions
(document and expand) |
m (Another French translation.) |
||
(24 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
< | <span class="plainlinks"><!-- | ||
-->{{#if: {{{onlyicon|}}} | |||
| [[{{#if: {{{size|}}} | |||
;< | | File:FlightGear_logo.png | ||
| File:FlightGear icon 15px.png | |||
}}<!-- | |||
-->| {{{size|15px}}}<!-- | |||
-->| {{#if: {{{title|{{{text|}}}}}} | |||
| {{#if: {{{title|}}} | |||
| {{#switch: {{{type|view}}} | |||
| view = <!-- | |||
- -->{{#if: {{{p|}}} | |||
| {{LangSwitch | |||
| de = '{{{title}}}' Post im FlightGear-Forum. | |||
| en = '{{{title}}}' post on the FlightGear forum. | |||
}} | |||
| {{#if: {{{t|}}} | |||
| {{LangSwitch | |||
| de = '{{{title}}}' Thema des FlightGear-Forums. | |||
| en = '{{{title}}}' topic on the FlightGear forum. | |||
}} | |||
| {{LangSwitch | |||
| de = '{{{title}}}' Unterforum des FlightGear-Forums. | |||
| en = '{{{title}}}' subforum of the FlightGear forum. | |||
}} | |||
}} | |||
}} | |||
| member = <!-- | |||
-->{{#if: {{{u|}}} | |||
| {{LangSwitch | |||
| de = Der FlightGear-Forum Benutzer '{{{title}}}'. | |||
| en = The FlightGear forum user '{{{title}}}'. | |||
}} | |||
| {{LangSwitch | |||
| de = Die Mitgliederliste des Forums. | |||
| en = The FlightGear forum listing. | |||
}} | |||
}} | |||
| search = <!-- | |||
-->{{#if: {{{t|}}} | |||
| {{#if: {{{keywords|}}} | |||
| {{LangSwitch | |||
| en = FlightGear topic search for '{{{keywords}}}'. | |||
}} | |||
| {{LangSwitch | |||
| en = FlightGear topic search page. | |||
}} | |||
}} | |||
| {{#if: {{{f|}}} | |||
| {{#if: {{{keywords|}}} | |||
| {{LangSwitch | |||
| en = FlightGear subforum search for '{{{keywords}}}'. | |||
}} | |||
| {{LangSwitch | |||
| en = FlightGear subforum search page. | |||
}} | |||
}} | |||
| {{#if: {{{keywords|}}} | |||
| {{LangSwitch | |||
| en = FlightGear forum search for '{{{keywords}}}'. | |||
}} | |||
| {{LangSwitch | |||
| en = FlightGear forum search page. | |||
}} | |||
}} | |||
}} | |||
}} | |||
}} | |||
| {{{text}}} | |||
}} | |||
| {{LangSwitch | |||
| de = Dies ist ein Link zum FlightGear-Forum. | |||
| en = This is a link to the FlightGear forum. | |||
| fr = Ceci est un lien vers le forum FlightGear. | |||
}} | |||
}}<!-- | |||
-->| link={{forum url | |||
| type = {{{type|view}}} | |||
| f{{#if:{{{f|}}}||NULL}} = {{{f}}} | |||
| t{{#if:{{{t|}}}||NULL}} = {{{t}}} | |||
| p{{#if:{{{p|}}}||NULL}} = {{{p}}} | |||
| u{{#if:{{{u|}}}||NULL}} = {{{u}}} | |||
| anchor{{#if:{{{anchor|}}}||NULL}} = {{{anchor}}} | |||
| hilit{{#if:{{{hilit|}}}||NULL}} = {{{hilit}}} | |||
| keywords{{#if:{{{keywords|}}}||NULL}} = {{{keywords}}} | |||
}}<!-- | |||
-->]] | |||
| [{{forum url | |||
| type = {{{type|view}}} | |||
| f{{#if:{{{f|}}}||NULL}} = {{{f}}} | |||
| t{{#if:{{{t|}}}||NULL}} = {{{t}}} | |||
| p{{#if:{{{p|}}}||NULL}} = {{{p}}} | |||
| u{{#if:{{{u|}}}||NULL}} = {{{u}}} | |||
| anchor{{#if:{{{anchor|}}}||NULL}} = {{{anchor}}} | |||
| hilit{{#if:{{{hilit|}}}||NULL}} = {{{hilit}}} | |||
| keywords{{#if:{{{keywords|}}}||NULL}} = {{{keywords}}} | |||
}} <!-- | |||
-->{{#if: {{{title|{{{text|}}}}}} | |||
| {{#if: {{{title|}}} | |||
| {{#switch: {{{type|view}}} | |||
| view = <!-- | |||
-->{{#if: {{{p|}}} | |||
| {{LangSwitch | |||
| de = ''{{{title}}}'' Post im Forum | |||
| en = ''{{{title}}}'' post on the forum | |||
}} | |||
| {{#if: {{{t|}}} | |||
| {{LangSwitch | |||
| de = ''{{{title}}}'' Thema des Forums | |||
| en = ''{{{title}}}'' topic on the forum | |||
}} | |||
| {{LangSwitch | |||
| de = ''{{{title}}}'' Unterforum | |||
| en = ''{{{title}}}'' subforum | |||
}} | |||
}} | |||
}} | |||
| member = <!-- | |||
-->{{#if: {{{u|}}} | |||
| {{LangSwitch | |||
| de = der Forum Benutzer ''{{{title}}}'' | |||
| en = the forum user ''{{{title}}}'' | |||
}} | |||
| {{LangSwitch | |||
| de = Die Mitgliederliste des Forums | |||
| en = the forum member listing'' | |||
}} | |||
}} | |||
| search = <!-- | |||
-->{{#if: {{{t|}}} | |||
| {{#if: {{{keywords|}}} | |||
| {{LangSwitch | |||
| en = FlightGear topic search for '{{{keywords}}}' | |||
}} | |||
| {{LangSwitch | |||
| en = FlightGear topic search page | |||
}} | |||
}} | |||
| {{#if: {{{f|}}} | |||
| {{#if: {{{keywords|}}} | |||
| {{LangSwitch | |||
| en = FlightGear subforum search for '{{{keywords}}}' | |||
}} | |||
| {{LangSwitch | |||
| en = FlightGear subforum search page | |||
}} | |||
}} | |||
| {{#if: {{{keywords|}}} | |||
| {{LangSwitch | |||
| en = FlightGear forum search for '{{{keywords}}}' | |||
}} | |||
| {{LangSwitch | |||
| en = FlightGear forum search page | |||
}} | |||
}} | |||
}} | |||
}} | |||
}} | |||
| {{{text}}} | |||
}} | |||
}}<!-- | |||
-->]</span><!-- | |||
-->{{#if: {{{noicon|}}} | |||
| | |||
|  [[{{#if: {{{size|}}} | |||
| File:FlightGear_logo.png | |||
| File:FlightGear icon 15px.png | |||
}}<!-- | |||
-->| {{{size|15px}}}<!-- | |||
-->| {{LangSwitch | |||
| de = Dies ist ein Link zum FlightGear-Forum. | |||
| en = This is a link to the FlightGear forum. | |||
| fr = Ceci est un lien vers le forum FlightGear. | |||
}}<!-- | |||
-->| link={{project infrastructure|forum|link=no}}<!-- | |||
-->]] | |||
}} | |||
}}<noinclude> | |||
{{Informative template|1= | |||
== Goal == | |||
This template is used to create MediaWiki links - either via text or the icon - to subforums, topics and posts on the FlightGear forum. | |||
__TOC__ | |||
== Usage == | |||
{{obr}}'''forum link''' | |||
{{!}} ''title'' = | |||
{{!}} ''text'' = | |||
{{!}} ''type'' = | |||
{{!}} ''f'' = | |||
{{!}} ''t'' = | |||
{{!}} ''p'' = | |||
{{!}} ''anchor'' = | |||
{{!}} ''hilit'' = | |||
{{!}} ''u'' = | |||
{{!}} ''keywords'' = | |||
{{!}} ''noicon'' = | |||
{{!}} ''onlyicon'' = | |||
{{!}} ''size'' = | |||
{{cbr}} | |||
; 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 {{param|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 <code>viewforum.php</code> or <code>viewtopic.php</code>. | |||
:; member: For URLs of a user on the forum, via phpBB's <code>memberlist.php</code>. This value will cause the {{param|f}}, {{param|t}}, {{param|p}}, {{param|anchor}}, and {{param|hilit}} parameters to be ignored. | |||
:; search: For URLs performing forum searches, via phpBB's <code>search.php</code>. This value will cause the {{param|p}}, {{param|anchor}}, and {{param|hilit}} parameters to be ignored. | |||
; f: Forum number (optional). Used with the {{param|type}} values of {{param||view}} and {{param||search}}. | |||
; t: Topic number (optional). Used with the {{param|type}} values of {{param||view}} and {{param||search}}. | |||
; p: Post number (optional). Used with the {{param|type}} value of {{param||view}}. | |||
; anchor: HTML anchor, used for jumping to posts (optional). Used with the {{param|type}} value of {{param||view}}. | |||
; hilit: Words on the forum posts to be highlighted (optional). Words should be separated by the plus character "+". Used with the {{param|type}} value of {{param||view}}. | |||
; u: User number (optional). Used with the {{param|type}} value of {{param||member}}. | |||
; keywords: The keywords to perform a forum search with (optional). Words should be separated by the plus character "+". Used with the {{param|type}} value of {{param||search}}. | |||
; noicon: If true, the little FlightGear icon ([[File:FlightGear icon 15px.png]]) will not be shown. | |||
; onlyicon: If true, only the little FlightGear icon ([[File:FlightGear icon 15px.png]]) will be shown. | |||
; size: The icon size (optional). This should be a valid MediaWiki image size value, e.g. {{param||32px}}. | |||
== Technical details == | |||
This template uses the {{tl|forum url}} template to construct the URI part of the link. That template then uses the {{tl|project infrastructure}} template to provide the protocol and domain name part of the URI. | |||
== Examples == | |||
=== No arguments === | |||
{{obr}}forum link{{cbr}} | |||
{{forum link}} | |||
=== View mode === | |||
==== A subforum (The FlightGear project) ==== | |||
{{obr}}forum link{{!}}f=42{{cbr}} | |||
{{forum link|f=42}} | |||
{{obr}}forum link{{!}}title=The FlightGear project{{!}}f=42{{cbr}} | |||
{{forum link|title=The FlightGear project|f=42}} | |||
{{obr}}forum link{{!}}text=The FlightGear project{{!}}f=42{{cbr}} | |||
{{forum link|text=The FlightGear project|f=42}} | |||
{{obr}}forum link{{!}}title=The FlightGear project{{!}}f=42{{!}}noicon=yes{{cbr}} | |||
{{forum link|title=The FlightGear project|f=42|noicon=yes}} | |||
{{obr}}forum link{{!}}title=The FlightGear project{{!}}f=42{{!}}onlyicon=yes{{cbr}} | |||
{{forum link|title=The FlightGear project|f=42|onlyicon=yes}} | |||
==== A topic (FlightGear Newsletter) ==== | |||
{{obr}}forum link{{!}}t=7794{{cbr}} | |||
{{forum link|t=7794}} | |||
{{obr}}forum link{{!}}title=FlightGear Newsletter{{!}}t=7794{{cbr}} | |||
{{forum link|title=FlightGear Newsletter|t=7794}} | |||
{{obr}}forum link{{!}}text=FlightGear Newsletter{{!}}t=7794{{cbr}} | |||
{{forum link|text=FlightGear Newsletter|t=7794}} | |||
{{obr}}forum link{{!}}title=FlightGear Newsletter{{!}}t=7794{{!}}noicon=yes{{cbr}} | |||
{{forum link|title=FlightGear Newsletter|t=7794|noicon=yes}} | |||
{{obr}}forum link{{!}}title=FlightGear Newsletter{{!}}t=7794{{!}}onlyicon=yes{{cbr}} | |||
{{forum link|title=FlightGear Newsletter|t=7794|onlyicon=yes}} | |||
==== A post (Re: Marking topics as "solved") ==== | |||
{{obr}}forum link{{!}}p=111333{{cbr}} | |||
{{forum link|p=111333}} | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}p=111333{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|p=111333}} | |||
{{obr}}forum link{{!}}text=Re: Marking topics as "solved"{{!}}p=111333{{cbr}} | |||
{{forum link|text=Re: Marking topics as "solved"|p=111333}} | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}p=111333{{!}}noicon=yes{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|p=111333|noicon=yes}} | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}p=111333{{!}}onlyicon=yes{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|p=111333|onlyicon=yes}} | |||
==== Subforum, topic and post ==== | |||
{{note|The {{param|f}} and {{param|t}} parameters are redundant in this URL.}} | |||
{{obr}}forum link{{!}}f=8{{!}}t=10805{{!}}p=111333{{cbr}} | |||
{{forum link|f=8|t=10805|p=111333}} | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}f=8{{!}}t=10805{{!}}p=111333{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|f=8|t=10805|p=111333}} | |||
{{obr}}forum link{{!}}text=Re: Marking topics as "solved"{{!}}f=8{{!}}t=10805{{!}}p=111333{{cbr}} | |||
{{forum link|text=Re: Marking topics as "solved"|f=8|t=10805|p=111333}} | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}f=8{{!}}t=10805{{!}}p=111333{{!}}noicon=yes{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|f=8|t=10805|p=111333|noicon=yes}} | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}f=8{{!}}t=10805{{!}}p=111333{{!}}onlyicon=yes{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|f=8|t=10805|p=111333|onlyicon=yes}} | |||
==== Topic and post ==== | |||
{{note|The {{param|t}} parameter is redundant in this URL.}} | |||
{{obr}}forum link{{!}}t=10805{{!}}p=111333{{cbr}} | |||
{{forum link|t=10805|p=111333}} | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}t=10805{{!}}p=111333{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|t=10805|p=111333}} | |||
{{obr}}forum link{{!}}text=Re: Marking topics as "solved"{{!}}t=10805{{!}}p=111333{{cbr}} | |||
{{forum link|text=Re: Marking topics as "solved"|t=10805|p=111333}} | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}t=10805{{!}}p=111333{{!}}noicon=yes{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|t=10805|p=111333|noicon=yes}} | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}t=10805{{!}}p=111333{{!}}onlyicon=yes{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|t=10805|p=111333|onlyicon=yes}} | |||
==== Anchoring ==== | |||
{{obr}}forum link{{!}}t=10805{{!}}anchor=p111333{{cbr}} | |||
{{forum link|t=10805|anchor=p111333}} | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}t=10805{{!}}anchor=p111333{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|t=10805|anchor=p111333}} | |||
{{obr}}forum link{{!}}text=Re: Marking topics as "solved"{{!}}t=10805{{!}}anchor=p111333{{cbr}} | |||
{{forum link|text=Re: Marking topics as "solved"|t=10805|anchor=p111333}} | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}t=10805{{!}}anchor=p111333{{!}}noicon=yes{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|t=10805|anchor=p111333|noicon=yes}} | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}t=10805{{!}}anchor=p111333{{!}}onlyicon=yes{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|t=10805|anchor=p111333|onlyicon=yes}} | |||
==== Highlighting ==== | |||
{{obr}}forum link{{!}}t=10805{{!}}hilit=board+index{{cbr}} | |||
{{forum link|t=10805|hilit=board+index}} | |||
{{obr}}forum link{{!}}title=board index{{!}}t=10805{{!}}hilit=board+index{{cbr}} | |||
{{forum link|title=board index|t=10805|hilit=board+index}} | |||
{{obr}}forum link{{!}}text=board index{{!}}t=10805{{!}}hilit=board+index{{cbr}} | |||
{{forum link|text=board index|t=10805|hilit=board+index}} | |||
{{obr}}forum link{{!}}title=board index{{!}}t=10805{{!}}hilit=board+index{{!}}noicon=yes{{cbr}} | |||
{{forum link|title=board index|t=10805|hilit=board+index|noicon=yes}} | |||
{{obr}}forum link{{!}}title=board index{{!}}t=10805{{!}}hilit=board+index{{!}}onlyicon=yes{{cbr}} | |||
{{forum link|title=board index|t=10805|hilit=board+index|onlyicon=yes}} | |||
===== Highlight a post ===== | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}p=111333{{!}}hilit=contains+a+problem{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|p=111333|hilit=contains+a+problem}} | |||
=== Member mode === | |||
==== Member listing ==== | |||
{{obr}}forum link{{!}}type=member{{cbr}} | |||
{{forum link|type=member}} | |||
{{obr}}forum link{{!}}title=Forum member listing{{!}}type=member{{cbr}} | |||
{{forum link|title=Forum member listing|type=member}} | |||
{{obr}}forum link{{!}}text=Forum member listing{{!}}type=member{{cbr}} | |||
{{forum link|text=Forum member listing|type=member}} | |||
{{obr}}forum link{{!}}title=Forum member listing{{!}}type=member{{!}}noicon=yes{{cbr}} | |||
{{forum link|title=Forum member listing|type=member|noicon=yes}} | |||
{{obr}}forum link{{!}}title=Forum member listing{{!}}type=member{{!}}onlyicon=yes{{cbr}} | |||
{{forum link|title=Forum member listing|type=member|onlyicon=yes}} | |||
==== Specific member ==== | |||
{{obr}}forum link{{!}}type=member{{!}}u=2{{cbr}} | |||
{{forum link|type=member|u=2}} | |||
{{obr}}forum link{{!}}title=curt{{!}}type=member{{!}}u=2{{cbr}} | |||
{{forum link|title=curt|type=member|u=2}} | |||
{{obr}}forum link{{!}}text=curt{{!}}type=member{{!}}u=2{{cbr}} | |||
{{forum link|text=curt|type=member|u=2}} | |||
{{obr}}forum link{{!}}title=curt{{!}}type=member{{!}}u=2{{!}}noicon=yes{{cbr}} | |||
{{forum link|title=curt|type=member|u=2|noicon=yes}} | |||
{{obr}}forum link{{!}}title=curt{{!}}type=member{{!}}u=2{{!}}onlyicon=yes{{cbr}} | |||
{{forum link|title=curt|type=member|u=2|onlyicon=yes}} | |||
=== Search mode === | |||
==== Search page ==== | |||
{{obr}}forum link{{!}}type=search{{cbr}} | |||
{{forum link|type=search}} | |||
{{obr}}forum link{{!}}title=Search page{{!}}type=search{{cbr}} | |||
{{forum link|title=Search page|type=search}} | |||
{{obr}}forum link{{!}}text=Search page{{!}}type=search{{cbr}} | |||
{{forum link|text=Search page|type=search}} | |||
{{obr}}forum link{{!}}title=Search page{{!}}type=search{{!}}noicon=yes{{cbr}} | |||
{{forum link|title=Search page|type=search|noicon=yes}} | |||
{{obr}}forum link{{!}}title=Search page{{!}}type=search{{!}}onlyicon=yes{{cbr}} | |||
{{forum link|title=Search page|type=search|onlyicon=yes}} | |||
==== Search everything ==== | |||
{{obr}}forum link{{!}}type=search{{!}}keywords=c172p+floats{{cbr}} | |||
{{forum link|type=search|keywords=c172p+floats}} | |||
{{obr}}forum link{{!}}title=Amphibious Cessna{{!}}type=search{{!}}keywords=c172p+floats{{cbr}} | |||
{{forum link|title=Amphibious Cessna|type=search|keywords=c172p+floats}} | |||
{{obr}}forum link{{!}}text=Amphibious Cessna{{!}}type=search{{!}}keywords=c172p+floats{{cbr}} | |||
{{forum link|text=Amphibious Cessna|type=search|keywords=c172p+floats}} | |||
{{obr}}forum link{{!}}title=Amphibious Cessna{{!}}type=search{{!}}keywords=c172p+floats{{!}}noicon=yes{{cbr}} | |||
{{forum link|title=Amphibious Cessna|type=search|keywords=c172p+floats|noicon=yes}} | |||
{{obr}}forum link{{!}}title=Amphibious Cessna{{!}}type=search{{!}}keywords=c172p+floats{{!}}onlyicon=yes{{cbr}} | |||
{{forum link|title=Amphibious Cessna|type=search|keywords=c172p+floats|onlyicon=yes}} | |||
==== Search a subforum ==== | |||
{{obr}}forum link{{!}}type=search{{!}}f=4{{!}}keywords=c172p+floats{{cbr}} | |||
{{forum link|type=search|f=4|keywords=c172p+floats}} | |||
{{obr}}forum link{{!}}title=Amphibious Cessna{{!}}type=search{{!}}f=4{{!}}keywords=c172p+floats{{cbr}} | |||
{{forum link|title=Amphibious Cessna|type=search|f=4|keywords=c172p+floats}} | |||
{{obr}}forum link{{!}}text=Amphibious Cessna{{!}}type=search{{!}}f=4{{!}}keywords=c172p+floats{{cbr}} | |||
{{forum link|text=Amphibious Cessna|type=search|f=4|keywords=c172p+floats}} | |||
{{obr}}forum link{{!}}title=Amphibious Cessna{{!}}type=search{{!}}f=4{{!}}keywords=c172p+floats{{!}}noicon=yes{{cbr}} | |||
{{forum link|title=Amphibious Cessna|type=search|f=4|keywords=c172p+floats|noicon=yes}} | |||
{{obr}}forum link{{!}}title=Amphibious Cessna{{!}}type=search{{!}}f=4{{!}}keywords=c172p+floats{{!}}onlyicon=yes{{cbr}} | |||
{{forum link|title=Amphibious Cessna|type=search|f=4|keywords=c172p+floats|onlyicon=yes}} | |||
==== Search a topic ==== | |||
{{obr}}forum link{{!}}type=search{{!}}t=25157{{!}}keywords=c172p+floats{{cbr}} | |||
{{forum link|type=search|t=25157|keywords=c172p+floats}} | |||
{{obr}}forum link{{!}}title=Amphibious Cessna{{!}}type=search{{!}}t=25157{{!}}keywords=c172p+floats{{cbr}} | |||
{{forum link|title=Amphibious Cessna|type=search|t=25157|keywords=c172p+floats}} | |||
{{obr}}forum link{{!}}text=Amphibious Cessna{{!}}type=search{{!}}t=25157{{!}}keywords=c172p+floats{{cbr}} | |||
{{forum link|text=Amphibious Cessna|type=search|t=25157|keywords=c172p+floats}} | |||
{{obr}}forum link{{!}}title=Amphibious Cessna{{!}}type=search{{!}}t=25157{{!}}keywords=c172p+floats{{!}}noicon=yes{{cbr}} | |||
{{forum link|title=Amphibious Cessna|type=search|t=25157|keywords=c172p+floats|noicon=yes}} | |||
{{obr}}forum link{{!}}title=Amphibious Cessna{{!}}type=search{{!}}t=25157{{!}}keywords=c172p+floats{{!}}onlyicon=yes{{cbr}} | |||
{{forum link|title=Amphibious Cessna|type=search|t=25157|keywords=c172p+floats|onlyicon=yes}} | |||
=== Different icon sizes === | |||
==== Text and icon ==== | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}p=111333{{!}}size=15px{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|p=111333|size=15px}} | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}p=111333{{!}}size=32px{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|p=111333|size=32px}} | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}p=111333{{!}}size=64px{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|p=111333|size=64px}} | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}p=111333{{!}}size=200px{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|p=111333|size=200px}} | |||
==== Icon only ==== | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}p=111333{{!}}onlyicon=yes{{!}}size=15px{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|p=111333|onlyicon=yes|size=15px}} | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}p=111333{{!}}onlyicon=yes{{!}}size=32px{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|p=111333|onlyicon=yes|size=32px}} | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}p=111333{{!}}onlyicon=yes{{!}}size=64px{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|p=111333|onlyicon=yes|size=64px}} | |||
{{obr}}forum link{{!}}title=Re: Marking topics as "solved"{{!}}p=111333{{!}}onlyicon=yes{{!}}size=200px{{cbr}} | |||
{{forum link|title=Re: Marking topics as "solved"|p=111333|onlyicon=yes|size=200px}} | |||
== Related templates == | |||
* {{tl|forum}} | |||
* {{tl|project infrastructure}} | |||
* {{tl|forum url}} | |||
}} | |||
[[Category:Link templates]] | |||
</noinclude> |
Revision as of 07:37, 7 June 2019
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}}