Jump to content

Template:Cite govdoc: Difference between revisions

From Raleighpedia
Created page with "<includeonly>"{{{title}}}" {{#if:{{{file|}}}|[[{{{file}}}|(link)]]|[{{{url}}} (link)]}}. ''{{{agency}}}{{#if:{{{department|}}}|, {{{department}}}}}''. {{#if:{{{doc_type|}}}|({{{doc_type}}}). }}{{#if:{{{date|}}}|({{{date}}}). }}{{#if:{{{identifier|}}}|{{{identifier}}}. }}{{#if:{{{pages|}}}|pp. {{{pages}}}. }}{{#if:{{{archive_url|}}}|Archived at [{{{archive_url}}}]. }}Accessed {{{access-date}}}.</includeonly><noinclude> This template is used to create standardized citation..."
 
No edit summary
 
Line 1: Line 1:
<includeonly>"{{{title}}}" {{#if:{{{file|}}}|[[{{{file}}}|(link)]]|[{{{url}}} (link)]}}. ''{{{agency}}}{{#if:{{{department|}}}|, {{{department}}}}}''. {{#if:{{{doc_type|}}}|({{{doc_type}}}). }}{{#if:{{{date|}}}|({{{date}}}). }}{{#if:{{{identifier|}}}|{{{identifier}}}. }}{{#if:{{{pages|}}}|pp. {{{pages}}}. }}{{#if:{{{archive_url|}}}|Archived at [{{{archive_url}}}]. }}Accessed {{{access-date}}}.</includeonly><noinclude>
<includeonly>"{{{title}}}" {{{link|[{{{url}}} (link)]}}}. ''{{{agency}}}{{{department|}}}''. {{{doc_type|}}}{{{identifier|}}}{{{date|}}}{{{pages|}}}{{{archive|}}} Accessed {{{access-date}}}.</includeonly><noinclude>
This template is used to create standardized citations for government documents on Raleighpedia. It supports both external URLs and documents uploaded directly to Raleighpedia.
This template is used to create standardized citations for government documents on Raleighpedia.


<templatedata>
<templatedata>
Line 7: Line 7:
"title": {
"title": {
"label": "Document Title",
"label": "Document Title",
"description": "Title of the government document",
"type": "string",
"type": "string",
"required": true
"required": true
Line 13: Line 12:
"agency": {
"agency": {
"label": "Agency",
"label": "Agency",
"description": "Government entity responsible for the document (e.g., City of Raleigh)",
"type": "string",
"type": "string",
"required": true
"required": true
},
},
"department": {
"department": {
"label": "Department",
"label": "Department (optional)",
"description": "Optional department or division (e.g., Parks, Recreation and Cultural Resources)",
"description": "Include leading comma if used, e.g., , Parks, Recreation and Cultural Resources Department",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"doc_type": {
"doc_type": {
"label": "Document Type",
"label": "Document Type (optional)",
"description": "Type of document (e.g., Master plan, Staff report, Ordinance, Memorandum of understanding)",
"description": "Include parentheses if used, e.g., (Memorandum of understanding).",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"identifier": {
"identifier": {
"label": "Identifier",
"label": "Identifier (optional)",
"description": "Optional identifier such as case number, project name, ordinance number, agenda item label",
"description": "Include trailing period if used, e.g., Agenda item: X.",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"date": {
"date": {
"label": "Date",
"label": "Date (optional)",
"description": "Adoption, publication, issue, or meeting date",
"description": "Include parentheses if used, e.g., (April 19, 2017).",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"pages": {
"pages": {
"label": "Pages",
"label": "Pages (optional)",
"description": "Relevant page number or range",
"description": "Include prefix and period if used, e.g., pp. 12–14.",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"url": {
"url": {
"label": "URL",
"label": "URL (optional)",
"description": "External link to the document (use if not uploaded to Raleighpedia)",
"description": "External URL. Only used if Link is blank.",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"file": {
"link": {
"label": "Uploaded File",
"label": "Link (optional)",
"description": "Internal uploaded file page name, including the File: prefix (e.g., File:2016-MOU.pdf). Use instead of URL when the document is uploaded to Raleighpedia.",
"description": "Full wiki link or external link markup, e.g., [[File:2016-MOU.pdf|(link)]] or [https://example.com (link)]. Overrides URL.",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"archive_url": {
"archive": {
"label": "Archive URL",
"label": "Archive (optional)",
"description": "Optional archived version of the external document",
"description": "Full archive text, e.g., Archived at [https://archive.org/...].",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
Line 67: Line 65:
"access-date": {
"access-date": {
"label": "Access Date",
"label": "Access Date",
"description": "The date you retrieved the document (e.g., January 27, 2026)",
"type": "string",
"type": "string",
"required": true
"required": true

Latest revision as of 14:40, 27 January 2026

This template is used to create standardized citations for government documents on Raleighpedia.

Standard citation template for government documents and official civic records on Raleighpedia.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Document Titletitle

no description

Stringrequired
Agencyagency

no description

Stringrequired
Department (optional)department

Include leading comma if used, e.g., , Parks, Recreation and Cultural Resources Department

Stringsuggested
Document Type (optional)doc_type

Include parentheses if used, e.g., (Memorandum of understanding).

Stringsuggested
Identifier (optional)identifier

Include trailing period if used, e.g., Agenda item: X.

Stringsuggested
Date (optional)date

Include parentheses if used, e.g., (April 19, 2017).

Stringsuggested
Pages (optional)pages

Include prefix and period if used, e.g., pp. 12–14.

Stringsuggested
URL (optional)url

External URL. Only used if Link is blank.

Stringsuggested
Link (optional)link

Full wiki link or external link markup, e.g., [[File:2016-MOU.pdf|(link)]] or [https://example.com (link)]. Overrides URL.

Stringsuggested
Archive (optional)archive

Full archive text, e.g., Archived at [https://archive.org/...].

Stringsuggested
Access Dateaccess-date

no description

Stringrequired