Actions

Template

Difference between revisions of "LinkRetro"

From Sonic Retro

m (Re-fixing category for sorting purposes)
(Recoding to allow linking to a forum, a topic or a post)
Line 1: Line 1:
<iimg>[[Sonic Retro]]![[Image:reticon.png]]</iimg> [http://forums.sonicretro.org/index.php?showtopic={{{topic}}} {{{title}}}]<noinclude>
+
<iimg>[[Sonic Retro]]![[Image:reticon.png]]</iimg> [http://forums.sonicretro.org/index.php?{{ #if: {{{topic|}}} | showtopic={{{topic}}} | {{ #if: {{{post|}}} | act=findpost&pid={{{post}}} | {{ #if: {{{forum|}}} | showforum={{{forum}}} | act=idx }} }} }} {{{title}}}]<noinclude>
For use with forum topics on [[Sonic Retro]]. To show a specific post, use the post tag instead.
+
For use with forums, topics and posts on [[Sonic Retro]]. To display a specific post inline, use the ipbwiki_post tag instead. Usage examples:
 +
* <nowiki>{{LinkRetro|topic=2102|title=Some topic}}</nowiki>
 +
* <nowiki>{{LinkRetro|post=2941|title=Some post}}</nowiki>
 +
* <nowiki>{{LinkRetro|forum=12|title=Some forum}}</nowiki>
 +
(If none of topic, post and forum are given, it defaults to linking to the forums index)
 
[[Category:Link Templates|LinkRetro]]
 
[[Category:Link Templates|LinkRetro]]
 
</noinclude>
 
</noinclude>

Revision as of 12:30, 10 November 2008

<iimg>Sonic Retro!File:Reticon.png</iimg> {{{title}}} For use with forums, topics and posts on Sonic Retro. To display a specific post inline, use the ipbwiki_post tag instead. Usage examples:

  • {{LinkRetro|topic=2102|title=Some topic}}
  • {{LinkRetro|post=2941|title=Some post}}
  • {{LinkRetro|forum=12|title=Some forum}}

(If none of topic, post and forum are given, it defaults to linking to the forums index)