Actions

Template

Difference between revisions of "LinkRetro"

From Sonic Retro

(New page: Image:reticon.png [http://forums.sonicretro.org/index.php?showtopic={{{topic}}} {{{title}}}] <noinclude> For use with forum topics on Sonic Retro. To show a specific post, use the...)
 
m (NoWrap seems to be causing an issue with big reference lists; text would clip. Feel free to revert back if it's actually more problematic without)
 
(19 intermediate revisions by 6 users not shown)
Line 1: Line 1:
[[Image:reticon.png]] [http://forums.sonicretro.org/index.php?showtopic={{{topic}}} {{{title}}}]
+
<includeonly><span><span style="margin-right: 4px;">{{icon|Sonicretro-round.svg|Sonic Retro|}}</span>[https://forums.sonicretro.org/index.php?{{ #if: {{{topic|}}} | threads/{{{topic}}} | {{ #if: {{{post|}}} | posts/{{{post}}} | {{ #if: {{{forum|}}} | forums/{{{forum}}} | {{ #if: {{{text|}}} | {{{text}}} | act=idx }} }} }} }} {{{title}}}]</span></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:
<noinclude>
+
* <nowiki>{{LinkRetro|topic=2102|title=Some topic}}</nowiki>
For use with forum topics on [[Sonic Retro]]. To show a specific post, use the post tag instead.
+
: Result: {{LinkRetro|topic=2102|title=Some topic}}
 
+
* <nowiki>{{LinkRetro|post=2941|title=Some post}}</nowiki>
[[Category:Link Templates]]
+
: Result: {{LinkRetro|post=2941|title=Some post}}
 +
* <nowiki>{{LinkRetro|forum=12|title=Some forum}}</nowiki>
 +
: Result: {{LinkRetro|forum=12|title=Some forum}}
 +
* <nowiki>{{LinkRetro|text=filter=18&act=members|title=Arbitrary text that does not fall into one of the above categories}}</nowiki>
 +
: 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.
 +
[[Category:Link templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 11:25, 23 January 2022

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.