Template:Forum link: Difference between revisions
Jump to navigation
Jump to search
(Try using the decimal version of the HTML entity) |
(fix: Linking to individual posts were broken; +- Lead section; + doc: Clarified and more examples of template use) |
||
Line 4: | Line 4: | ||
-->|}}{{#if:{{{t|}}}|t={{{t}}}<!-- Add an ampersand if p or hilit are present afterwards | -->|}}{{#if:{{{t|}}}|t={{{t}}}<!-- Add an ampersand if p or hilit are present afterwards | ||
-->{{#if:{{{p|}}}|&|{{#if:{{{hilit|}}}|&|}}}}<!-- | -->{{#if:{{{p|}}}|&|{{#if:{{{hilit|}}}|&|}}}}<!-- | ||
-->|}}{{#if:{{{p|}}}|p={{{p}}}<!-- Add an ampersand if hilit is present afterwards | -->|}}{{#if:{{{p|}}}|p={{{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|}}} | |  [[File:FlightGear icon 15px.png|This is a link to the FlightGear forum|link=Template:Forumref]] }}<noinclude> | -->|}}{{#if:{{{hilit|}}}|hilit={{{hilit}}}|}}{{#if:{{{label|}}}|#{{{label}}}|}} {{#if:{{{title|}}}|''{{{title}}}'' on the forum|Forum link}}]</span>{{#if: {{{noicon|}}} | |  [[File:FlightGear icon 15px.png|This is a link to the FlightGear forum|link=Template:Forumref]] }}<noinclude> | ||
Line 10: | Line 10: | ||
__NOTOC__ | __NOTOC__ | ||
== Goal == | == Goal == | ||
This template can be used when linking to topics and posts on the FlightGear forum. | |||
== Usage == | == Usage == | ||
Line 30: | Line 30: | ||
== Example == | == Example == | ||
Linking to a subtopic | |||
<nowiki>{{forumref|title=FlightGear Newsletter|t=7794}}</nowiki> | <nowiki>{{forumref|title=FlightGear Newsletter|t=7794}}</nowiki> | ||
{{forumref|title=FlightGear Newsletter|t=7794}} | {{forumref|title=FlightGear Newsletter|t=7794}} | ||
Linking to a post | |||
<nowiki>{{forumref|title=Re: Marking topics as "solved"|p=111333}}</nowiki> | |||
{{forumref|title=Re: Marking topics as "solved"|p=111333}} | |||
== Related template == | == Related template == | ||
* {{tl|forum}} | * {{tl|forum}} | ||
}} | }} | ||
[[Category:Link templates]] | [[Category:Link templates]] | ||
</noinclude> | </noinclude> |
Revision as of 16:57, 30 May 2019
The following template description is not displayed when the template is inserted in an article.
Goal
This template can be used when linking to topics and posts on the FlightGear forum.
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)
Example
Linking to a subtopic
{{forumref|title=FlightGear Newsletter|t=7794}}
Linking to a post
{{forumref|title=Re: Marking topics as "solved"|p=111333}}
Related template
- {{forum}}