Difference between revisions of "Template:UG"

From Wikispooks
Jump to navigation Jump to search
Line 6: Line 6:
 
<br/><font face="courier">|type=</font face="courier">{cat, show} for links to a '''cat'''egory or a single '''show''' (the default)
 
<br/><font face="courier">|type=</font face="courier">{cat, show} for links to a '''cat'''egory or a single '''show''' (the default)
 
</noinclude>
 
</noinclude>
<includeonly>{{#if: {{{link|}}} | {{#if: {{{desc|}}} | {{#ifexpr: ({{{type|}}}='cat')  * Set of radio shows about {{{desc|}}} | * Radio show about {{desc|}} }} |  <font color="red">Missing 'desc' parameter</font> }}
+
<includeonly>{{#if: {{{link|}}} | {{#if: {{{desc|}}} | {{#ifeq: {{{type|}}} | cat | * Set of radio shows about {{{desc|}}} | * Radio show about {{desc|}} }} |  <font color="red">Missing 'desc' parameter</font> }}
 
  | <font color="red">Missing 'link' parameter</font> }}
 
  | <font color="red">Missing 'link' parameter</font> }}

Revision as of 16:07, 20 March 2012

Template:UG, for linking to the Unwelcome Guests radio show. The different sections of the template begin with a '|' character. i.e.
|link=The address of the link (name of the end of the URL (e.g. 517)
|desc=Description
|type={cat, show} for links to a category or a single show (the default)