Actions

Template

Difference between revisions of "LinkRetro"

From Sonic Retro

(Adding text parameter, for links which are not to topics, forums or posts. Hope this works)
(I'd always been pretty unhappy with that gap between the image and the text, and I think this looks better)
Line 1: Line 1:
<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}}} | {{ #if: {{{text|}}} | {{{text}}} | act=idx }} }} }} }} {{{title}}}]<noinclude>
+
<span style="margin-right: 4px;"><iimg>[[Sonic Retro]]![[Image:reticon.png]]</iimg></span>[http://forums.sonicretro.org/index.php?{{ #if: {{{topic|}}} | showtopic={{{topic}}} | {{ #if: {{{post|}}} | act=findpost&pid={{{post}}} | {{ #if: {{{forum|}}} | showforum={{{forum}}} | {{ #if: {{{text|}}} | {{{text}}} | act=idx }} }} }} }} {{{title}}}]<noinclude>
 
For use with forums, topics and posts on [[Sonic Retro]]. To display a specific post inline, use the ipbwiki_post tag instead. Usage examples:
 
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|topic=2102|title=Some topic}}</nowiki>

Revision as of 15:45, 20 December 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}}
  • {{LinkRetro|text=filter=18&act=members|title=Arbitrary text that does not fall into one of the above categories}}

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