Template:EW charity/doc

This template provides an external link to the record for a charity at the Charity Commission for England and Wales (not the whole of the UK, hence this template was renamed from "UK charity"). This provides confirmation of the charity's status and access to reports and accounts submitted to the Commission. the template now links directly to the charity's record. Previously it did not.

Thanks are due to Mr Tony Dunn of the Register Development Team at the Charity Commission, whose helpful response to an email in Feb 2009 allowed this template to be updated to provide access to the records after redesign of the Charity Commission website.
 * And further thanks for his help in May 2013 after another redesign of the Charity Commission website.
 * Another redesign of the Charity Commission website in 2020 was less helpful, as in some cases charity numbers no longer map to the correct URL. Instead we are now linking to a search for the charity number.

This template calls and passes into  the parameters described in the section "usage". Calling, means that this template is formatted in a similar way to other citations and contains the ability to be linked to short citations using.

Usage
Two non-standard parameters: num=charity regno — This must be present or there is a visual red warning name=charity name — For now, if no name is given, then the Wikipedia article name is used (in the future, the default will be changed to display nothing).

All the remaining parameters are described in detail in Help:CS1 as used in standard citation templates such as

Two parameters are filled in by the template and can not be changed: |title=charity name, registered charity no. charity regno |url=url + charity regno

Thee parameters are filled by the template (if desired one or more all three can be reassigned): |publisher= Charity Commission for England and Wales |ref= Charity Commission charity regno — This can be set to none if no reference link is needed; see for alternative settings.

The parameters below are available and will be displayed if given a value: |date= |year= |orig-year= |access-date= |mode=

or

Where "regno" is the charity's registration number, and "charityname" is the name to appear in the link, if this is not the pagename.

The template has one required parameter, the charity's registration number. This must be input without any spaces.

If the name of the page is not the name of the charity (perhaps it has a disambiguation, or the page includes several branches of an international charity), then the second parameter is the name which should appear in the link.

Thus on the Leukaemia Research page,   produces the output:



and the same result would be produced by   on this or any other page.

TemplateData
{ "description": "A template to provide an external link to the record for a charity at the Charity Commission for England and Wales ", "params": { "1": {   "label": "regno", "description": "The 6-digit charity registration number, must be entered without any spaces", "type": "string", "required": true }, "2": {    "label": "charityname", "description": "The name of the charity for display, if it is not the same as the page name", "type": "string" } }}

Examples
The ordering of the parameters is not important.

Two main parameters  and  :

Two main parameters with  (the separator is changed from dot to comma)

Two main parameters with