Difference between revisions of "Template:UG"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
<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 link to a '''cat'''egory or a single '''show''' (the default) | <br/><font face="courier">|type=</font face="courier">{cat, show} for link to a '''cat'''egory or a single '''show''' (the default) | ||
+ | |||
+ | Example: | ||
+ | |||
+ | <font face="courier"> {{UG |link=Category:War |type=cat |desc=war}} </font> | ||
+ | |||
</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:12, 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: