Template:Forum link: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(hilit support)
(Cleanup + cat:Templates)
Line 1: Line 1:
<noinclude>A template to standerdize forum links. Parameters:
<includeonly>[http://flightgear.org/forums/viewtopic.php?f={{{f}}}&t={{{t|}}}&p={{{p|}}}&hilit={{{hilit|}}}{{{label|}}} {{#if:{{{title|}}}|"{{{title}}}" in the forums|Forum link}}]</includeonly><noinclude>
;<tt>title</tt>: thread title (optional)
 
;<tt>t</tt>: t-number (argument for phpbb viewtopic.php) (optional)
A template to standardize forum links.
;<tt>p</tt>: p-number (argument for phpbb viewtopic.php) (optional)
 
;<tt>label</tt>: html label, used for jumping to posts (optional)
'''Usage:''' <tt><nowiki>{{</nowiki>forumref|''title''|''t''|''p''|''label''|''hilit''|''f''<nowiki>}}</nowiki></tt>, where
;<tt>hilit</tt>: word in forum thread to highlight (optional)
* ''title'' is the thread title (optional)
;<tt>f</tt>: f-number (argument for phpbb viewtopic.php)</noinclude><includeonly>[http://flightgear.org/forums/viewtopic.php?f={{{f}}}&t={{{t|}}}&p={{{p|}}}&hilit={{{hilit|}}}{{{label|}}} {{#if:{{{title|}}}|"{{{title}}}" in the forums|Forum link}}]</includeonly>
* ''t'' is the t-number (argument for phpbb viewtopic.php) (optional)
* ''p'' is the p-number (argument for phpbb viewtopic.php) (optional)
* ''label'' is a html label, used for jumping to posts (optional)
* ''hilit'' is the words to be highlit in the forum (optional)
* ''f'' is the f-number (argument for phpbb viewtopic.php)
 
[[Category:Templates]]
</noinclude>

Revision as of 14:12, 10 February 2012


A template to standardize forum links.

Usage: {{forumref|title|t|p|label|hilit|f}}, where

  • title is the thread title (optional)
  • t is the t-number (argument for phpbb viewtopic.php) (optional)
  • p is the p-number (argument for phpbb viewtopic.php) (optional)
  • label is a html label, used for jumping to posts (optional)
  • hilit is the words to be highlit in the forum (optional)
  • f is the f-number (argument for phpbb viewtopic.php)