Difference between revisions of "LinkRetro"

From Sega Retro

Line 1: Line 1:
<includeonly><span style="margin-right: 4px;">[[Image:Reticon.png|link=Sonic Retro]]</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}}}]</includeonly><noinclude>
+
<includeonly><span style="margin-right: 4px;">{{icon|Sonicretro-round.svg|Sonic Retro||background=#303018}}</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}}}]</includeonly><noinclude>
 
For use with forums, topics and posts on [[Sonic Retro]]. To display a specific post inline, use the [[Help:Custom Retro functions#Showing Sonic Retro posts|ipbwiki_post]] tag instead. Usage examples:
 
For use with forums, topics and posts on [[Sonic Retro]]. To display a specific post inline, use the [[Help:Custom Retro functions#Showing Sonic Retro posts|ipbwiki_post]] tag instead. Usage examples:
 
* <nowiki>{{LinkRetro|topic=2102|title=Some topic}}</nowiki>
 
* <nowiki>{{LinkRetro|topic=2102|title=Some topic}}</nowiki>
Line 10: Line 10:
 
: Result: {{LinkRetro|text=filter=18&act=members|title=Arbitrary text that does not fall into one of the above categories}}
 
: Result: {{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.
 
If none of topic, post and forum are given, it defaults to linking to the forums index.
[[Category:Sega Retro templates|LinkRetro]]
+
[[Category:Sega Retro templates]]
 
</noinclude>
 
</noinclude>

Revision as of 14:44, 28 September 2015

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}}
Result:
Sonic Retro
Some topic
  • {{LinkRetro|post=2941|title=Some post}}
Result:
Sonic Retro
Some post
  • {{LinkRetro|forum=12|title=Some forum}}
Result:
Sonic Retro
Some forum
  • {{LinkRetro|text=filter=18&act=members|title=Arbitrary text that does not fall into one of the above categories}}
Result:
Sonic Retro
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.