Difference between revisions of "Template:HM prison"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
 
Line 1: Line 1:
 
<span class="url">{{#if:{{{name|{{{2|}}}}}}
 
<span class="url">{{#if:{{{name|{{{2|}}}}}}
|[http://www.justice.gov.uk/global/contacts/noms/prison-finder/{{#if:{{{id|{{{1|}}}}}}|{{{id|{{{1|}}}}}}}}/ {{{name|{{{2|}}}}}}] at justice.gov.uk
+
|[http://www.justice.gov.uk/contacts/prison-finder/{{#if:{{{id|{{{1|}}}}}}|{{{id|{{{1|}}}}}}}}/ {{{name|{{{2|}}}}}}] at justice.gov.uk
|[http://www.justice.gov.uk/global/contacts/noms/prison-finder/{{#if:{{{id|{{{1|}}}}}}|{{{id|{{{1|}}}}}}}}/ justice.gov.uk]
+
|[http://www.justice.gov.uk/contacts/prison-finder/{{#if:{{{id|{{{1|}}}}}}|{{{id|{{{1|}}}}}}}}/ justice.gov.uk]
 
}}</span><noinclude>{{documentation|content=
 
}}</span><noinclude>{{documentation|content=
 
Creates a link to an information page for a prison on the justice.gov.uk website.
 
Creates a link to an information page for a prison on the justice.gov.uk website.
Line 11: Line 11:
 
where  
 
where  
 
: <code><id></code> is the prison ID in the URL,  
 
: <code><id></code> is the prison ID in the URL,  
:: <code><nowiki>http://www.justice.gov.uk/global/contacts/noms/prison-finder/<id>/</nowiki></code>
+
:: <code><nowiki>http://www.justice.gov.uk/contacts/prison-finder/<id>/</nowiki></code>
 
: <code><name></code> is the name of the prison
 
: <code><name></code> is the name of the prison
  

Latest revision as of 12:55, 29 March 2014

justice.gov.uk

Template documentation

Creates a link to an information page for a prison on the justice.gov.uk website.

Usage

{{HM prison|<id>|<name>}}

or

{{HM prison|id=<id>|name=<name>}}

where

<id> is the prison ID in the URL,
http://www.justice.gov.uk/contacts/prison-finder/<id>/
<name> is the name of the prison

See also