Difference between revisions of "Template:UG"

From Wikispooks
Jump to navigation Jump to search
Line 4: Line 4:
 
<br/><font face="courier">|link=</font face="courier">The address of the link (name of the end of the URL (e.g. 517)
 
<br/><font face="courier">|link=</font face="courier">The address of the link (name of the end of the URL (e.g. 517)
 
<br/><font face="courier">|desc=</font face="courier">Description
 
<br/><font face="courier">|desc=</font face="courier">Description
<br/><font face="courier">|type=</font face="courier">{cat, show} for links to a '''cat'''egory or a single '''show'''
+
<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: {{{defsc|}}} | * Radio show about {{{desc|}}} |  <font color="red">Missing 'desc' parameter</font> }}
+
<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> }}
 
  | <font color="red">Missing 'link' parameter</font> }}
 
  | <font color="red">Missing 'link' parameter</font> }}

Revision as of 16:05, 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)