Difference between revisions of "Template:UG"

From Wikispooks
Jump to navigation Jump to search
Line 8: Line 8:
 
Example:
 
Example:
  
<font face="courier"> {{UG |link=Category:War |type=cat |desc=war}} </font>
+
<font face="courier"><nowiki> {{UG |link=Category:War |type=cat |desc=war}} </nowiki></font> => {{UG |link=Category:War |type=cat |desc=war}}
  
 
</noinclude>
 
</noinclude>
 
<includeonly>{{#if: {{{link|}}} | {{#if: {{{desc|}}} | {{#ifeq: {{{type|}}} | cat | * [http://UnwelcomeGuests.net/{{{link}}} Set of radio shows about {{{desc|}}}] | * [http://UnwelcomeGuests.net/{{{link}}} Radio show about {{desc|}}] }} |  <font color="red">Missing 'desc' parameter</font> }}
 
<includeonly>{{#if: {{{link|}}} | {{#if: {{{desc|}}} | {{#ifeq: {{{type|}}} | cat | * [http://UnwelcomeGuests.net/{{{link}}} Set of radio shows about {{{desc|}}}] | * [http://UnwelcomeGuests.net/{{{link}}} 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:13, 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 link to a category or a single show (the default)

Example:

{{UG |link=Category:War |type=cat |desc=war}} =>