Difference between revisions of "Template:UG"

From Wikispooks
Jump to navigation Jump to search
m
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, episode} for link to a '''cat'''egory or a single '''episode''' (the default)
+
<br/><font face="courier">|type=</font face="courier">{cat, episode, person} for link to a '''cat'''egory, a single '''episode''' (the default) or a '''person'''
  
 
==Episode example==
 
==Episode example==
Line 15: Line 15:
  
 
</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|}}}] |  
 +
{{#ifeq: {{{type|}}} | person |* [http://UnwelcomeGuests.net/Special:WhatLinksHere/{{{link}}}%26limit%3D500 Set of radio shows featuring {{{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:26, 20 March 2012

This makes a link 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, episode, person} for link to a category, a single episode (the default) or a person

Episode example

{{UG |link=517 |type=episode |desc=the assassination of JFK}} => {{#if: 517 |

Category example

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