Template:UN document/doc

Usage
This Citation Template Structure is to be used for referring to UN documents from a Wikipedia article. Detailed instructions are available on w:WP:CITE. But for a very brief introduction by way of an example, see the Water for Life Decade page and click on "edit" to see the source text.

Example
This is a generic representation of the document containing its official symbol, and several parameters, such as body, session number, type, resolution number, title, and a page number. The  and   tags cause it to appear as a footnote.

In the References section, this appears as:

Note that the page number is not part of the link; it is not possible to link directly to a specific page or section of a document hosted at the United Nations.

For an explanation of the format of the docid (known as the document symbol), see United Nations Document Codes.

Parameters
Some of these values are mutually redundant, but alternatives are necessary.

A page of codes is at http://www.library.yorku.ca/ccm/ScottReference/govpubs/guides/unindex.htm

For reasons best known to itself, the UN site does not support links on their website that go directly to these documents. For now everything is factored through http://www.undemocracy.com

It's possible to decode it into english without reference to all the fields, but it will require http://meta.wikimedia.org/wiki/StringFunctions to be installed.

You can get to the documents through http://documents.un.org/simple.asp or through http://www.undemocracy.org

Best practice
If you are viewing a document on the undemocracy.com site and you want to reference it in a wikipedia article, it is recommended that you find the line at the top of a holding page which says:
 * wiki [ (some greyed text here) ]

and cut and paste from the text box. This will give provide a citation to the document in a correct form for use by this template.

If you are reading transcripts of a speech, then you can click on the
 * [ link to here ]

box to the side of the text and be presented with a similar text box as above from which to cut and paste the fully formed template citation.

Every official United Nations document has a unique ID. An outline of the coding system is at United Nations Document Codes.