Template:LinkLRRPodcast: Difference between revisions

From LoadingReadyWiki
Jump to navigationJump to search
m Add recolor support
m Fix indices starting at 0 not 1
 
Line 1: Line 1:
<includeonly>[https://loadingreadyrun.com/lrrcasts/view/{{{0}}}{{#if:{{{2|}}}|/audio-only/AU|}} <span style="color:{{{3|inherit}}};">{{{1|}}}</span>]</includeonly><noinclude>Template for formatting links to LRR Podcasts (for Videos, see [[Template:LinkLRRVideo]]).
<includeonly>[https://loadingreadyrun.com/lrrcasts/view/{{{1}}}{{#if:{{{3|}}}|/audio-only/AU|}} <span style="color:{{{4|inherit}}};">{{{2|}}}</span>]</includeonly><noinclude>Template for formatting links to LRR Podcasts (for Videos, see [[Template:LinkLRRVideo]]).


== Usage ==
== Usage ==

Latest revision as of 04:16, 19 October 2019

Template for formatting links to LRR Podcasts (for Videos, see Template:LinkLRRVideo).

Usage

{{LinkLRRPodcast|Podcast ID|Display Text|Audio-Only|color}}
  • Podcast ID is the podcast number.
  • Display Text is the text to turn into a link, just like adding text to a normal external link.
  • Audio-Only is an optional parameter that can be set to any non-empty value to point to the audio-only page instead of the video page.
  • color can be any valid CSS color (named or hex starting with #), to recolor the link.