Difference between revisions of "Template:Forum link"

From Kerbal Space Program Wiki
Jump to: navigation, search
(-code of the template; +table for the parameter; !use new links; *simplified the code;)
m (*replace 'Parameter Row' and 'ParameterRow' by 'Parameter row';)
Line 2: Line 2:
  
 
{{Parameter Table|parameters=
 
{{Parameter Table|parameters=
{{Parameter Row|threadID|The ID of the thread}}
+
{{Parameter row|threadID|The ID of the thread}}
{{Parameter Row|postID|The ID of the post.|Not set}}
+
{{Parameter row|postID|The ID of the post.|Not set}}
{{Parameter Row|text|Custom link text.|<tt>Forum thread {{{threadID}}}</tt>}}
+
{{Parameter row|text|Custom link text.|<tt>Forum thread {{{threadID}}}</tt>}}
{{Parameter Row|threadName|The name of the thread.|Not set}}
+
{{Parameter row|threadName|The name of the thread.|Not set}}
 
}}
 
}}
  

Revision as of 20:49, 26 November 2014

Forum thread {{{threadID}}}

Template:Parameter Table

See http://www.mediawiki.org/wiki/Help:Templates#Default_values for more information.

Template

Usage Produces
{{forum link | threadID=12406}}
 Forum thread 12406
{{forum link | threadID=12406 | threadName=Show off your awesome KSP Pictures}}
 Forum thread 12406, "Show off your awesome KSP Pictures"
{{forum link | threadID=12406 | postID=182021}}
 Forum thread 12406
{{forum link | threadID=12406 | threadName=Show off your awesome KSP Pictures | postID=182021}}
 Forum thread 12406, "Show off your awesome KSP Pictures"