Difference between revisions of "Template:forumlink"

m (added example of use)
m (Hopefully removes inappropriate return elsewhere)
 
Line 17: Line 17:
 
:{{forumlink|forum=4|topic=1623|title=the uLove thread on the forums}}
 
:{{forumlink|forum=4|topic=1623|title=the uLove thread on the forums}}
  
</noinclude>
+
</noinclude><includeonly>[http://love2d.org/forums/viewtopic.php?f={{{forum|}}}&t={{{topic|}}} {{{title|<sup>#{{{topic}}}</sup> }}}]</includeonly>
<includeonly>[http://love2d.org/forums/viewtopic.php?f={{{forum|}}}&t={{{topic|}}} {{{title|<sup>#{{{topic}}}</sup> }}}]</includeonly>
 

Latest revision as of 06:07, 10 August 2011

A small template to link to a post on the forum. it (should be) template safe, that's why I'm making it.

its a basic template that takes two key parms, and one optional parm as follows.

Given the link:

http://love2d.org/forums/viewtopic.php?f=4&t=1623

The template should be called as:

{{forumlink|forum=4|topic=1623}}

Resulting in:

#1623

We can add the optional title parm to give it a nicer name:

{{forumlink|forum=4|topic=1623|title=the ulove thread on the forums}}

Resulting in:

the uLove thread on the forums