Шаблон:quote-hansard/documentation

Usage[уреди]

This template can be used in a dictionary entry to provide a quotation from official reports of legislative debates, often known as Hansard, of any country.

Sample template[уреди]

Most basic parameters for English quotations
#* {{quote-hansard|year=|speaker=|debate=|report=|url=|page=|column=|text=|lang=}}
Most basic parameters for non-English quotations
#* {{quote-hansard|year=|speaker=|debate=|report=|url=|page=|column=|text=|t=|lang=}}
Commonly used parameters
#* {{quote-hansard|author=|speaker=|authorlink=|debate=|title=|url=|archiveurl=|archivedate=|report=|house=|location=|publisher=|date=|volume=|page=|pageurl=|column=|columnurl=|text=|t=|tr=|lang=}}
All available parameters
#* {{quote-hansard|indent=|author=|speaker=|authorlink=|author2=|authorlink2=|author3=|authorlink3=|author4=|authorlink4=|author5=|authorlink5=|last=|first=|last2=|first2=|last3=|first3=|last4=|first4=|last5=|first5=|quotee=|editor=|editors=|debate=|title=|url=|archiveurl=|archivedate=|report=|house=|location=|publisher=|month=|year=|date=|accessdate=|isbn=|issn=|lccn=|oclc=|id=|volume=|issue=|page=|pages=|pageurl=|column=|columns=|columnurl=|text=|passage=|brackets=|t=|translation=|lit=|tr=|transliteration=|subst=|lang=}}

Certain basic parameters can be used in the template without any named parameters, as follows:

#* {{quote-hansard|[year]|[speaker]|[debate]|[report]|[url]|[page]|[column]|[text]|[translation]|lang=}}

This will not work if any of the parameters contains an equals ("=") sign. The value of any parameter containing an equals sign must be surrounded by <nowiki> tags, like this: "<nowiki>http://foo.com?id=bar</nowiki>". Alternatively, use a named parameter such as url.

The following example:

{{quote-hansard|speaker={{w|Ed Miliband}} ([[w:Leader of the Opposition (United Kingdom)|Leader of the Opposition]])|debate=Prime Minister’s Questions|url=http://www.publications.parliament.uk/pa/cm201212/cmhansrd/cm120418/debtext/120418-0001.htm#12041847002002|house=[[w:House of Commons of the United Kingdom|House of Commons]]|date=18 April 2012|column=314|text=Over the past month we have seen the charity tax shambles, the churches tax shambles, the caravan tax shambles and the pasty tax shambles, so we are all keen to hear the Prime Minister’s view on why he thinks, four weeks on from the Budget, even people within Downing Street are calling it an '''omnishambles''' Budget.|lang=en}}

produces this:

2012 април 18, Ed Miliband (Leader of the Opposition), “Prime Minister’s Questions”, in parliamentary debates (House of Commons)‎[1], column 314:
Lua грешка in Модул:languages/errorGetBy at line 14: Please specify a language or etymology language code in the first parameter; the value "<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-51fddb02">Script error: The function &quot;first_lang&quot; does not exist.</span></strong>" is not valid (see Wiktionary:List of languages)..

Parameters[уреди]

All parameters are optional, and may contain inline interwiki or external links as needed.

Parameter Remarks
speaker
or
author
or
last and first
The name of the legislator quoted. Use speaker, author, or last and first (for the first name, and middle names or initials), not all of them. Additional authors can be added using the parameters author2 to author5, or last2 and first2 to last5 and first5.
authorlink The name of an English Wikipedia article about the legislator, which will be linked to the name(s) specified using author. Additional articles can be linked to other authors' names using the parameters authorlink2 to authorlink5. Do not add the prefix ":en:" or "w:".

Alternatively, link each person's name directly, like this: "author=[[w:John Smith (Labour Party leader)|John Smith]]" or "author={{w|David Cameron}}".

editor
or
editors
The name(s) of the editor(s) of the legislative debate reports. Separate multiple names with semicolons.
quotee The name of the person being quoted, if the whole quoted text is a quotation of someone other than the legislator.
debate
or
title
The title of the legislative debate.
url The URL or web address of an external website containing the full text of the legislative debate. Do not link to any website that has content in breach of copyright.
archiveurl and archivedate
or
accessdate
Use archiveurl and archivedate (which must be used together) to indicate the URL or web address of a webpage on a website such as the Internet Archive or Perma.cc at which the webpage has been archived, and the date on which the webpage was archived.

Alternatively, if the webpage cannot be archived, use accessdate to indicate when its URL was accessed. (If the webpage has been archived, it is unnecessary to use this parameter.)

report The name of the legislative debate reports. If this is not stated, "parliamentary debates" is used as a default.
house The name of the legislative body in which the debates took place.
location
or
city
The location where the legislative debate reports were published. If more than one location is stated, separate the locations with semicolons, like this: "London; New York, N.Y.".
publisher The name of one or more publishers of the legislative debate reports. If more than one publisher is stated, separate the names with semicolons.
date
or
year (and month)
Mandatory: the date, or year (and month), of the legislative debate. Use either date, or year (and month), not both.
volume The volume number of the legislative debate reports.
issue The issue number of the legislative debate reports.
page
or
pages
The page number or range of page numbers of the legislative debate reports. Use page to indicate a single page, and pages to indicate a range of pages. For example, "pages=1–2" will display "pages 1–2". Use an en dash to separate the page numbers in the range.
pageurl The URL or web address of the webpage containing the page(s) of the legislative debate reports referred to. The page number(s) will be linked to this webpage.
column
or
columns
The column number or range of column numbers of the legislative debate reports. Use column to indicate a single column, and columns to indicate a range of columns. For example, "columns=300–301" will display "columns 300–301". Use an en dash to separate the column numbers in the range.
columnurl The URL or web address of the webpage containing the column(s) of the legislative debate reports referred to. The column number will be linked to this webpage.
isbn, issn, lccn, oclc, and/or id The International Standard Book Number (ISBN), International Standard Serial Number (ISSN), Library of Congress Control Number (LCCN), or Online Computer Library Center (OCLC) number (which can be looked up at the WorldCat website) of the legislative debate reports.

Use id for an identifier other than the ones listed above.

text or passage The portion of the legislative debate being quoted. Highlight the term defined in bold in the quoted text like this: "'''politics'''".
lang A comma-separated list of language codes indicating the language(s) of the quoted text; for a list of the codes, see Wiktionary:List of languages. If the language is other than English, the template will indicate this fact by displaying "(in [language])" (for one language), or "(in [language] and [language])" (for two languages), or "(in [language], [language] ... and [language])" (for three or more languages). The entry page will also be added to a category in the form "Category:[Language] terms with quotations" for the first listed language (unless termlang is specified, in which case that language is used for the category, or nocat is specified, in which case the page will not be added to any category). The first listed language also determines the font to use and the appropriate transliteration to display, if the text is in a non-Latin script.

Use |worklang= to specify the language(s) that the overall report is written in: see below.

worklang A comma-separated list of language codes indicating the language(s) that the overall report is written in, if different from the quoted text; for a list of the codes, see Wiktionary:List of languages.
termlang A language code indicating the language of the term being illustrated, if different from the quoted text; for a list of the codes, see Wiktionary:List of languages. If specified, this language is the one used when adding the page to a category of the form "Category:[Language] terms with quotations"; otherwise, the first listed language specified using lang is used. Only specify this parameter if the language of the quotation is different from the term's language, e.g. a Middle English quotation used to illustrate a modern English term or an English definition of a Vietnamese term in a Vietnamese-English dictionary.
nocat Use nocat=y or nocat=1 or nocat=on to suppress adding the page to a category of the form "Category:[Language] terms with quotations". This should not normally be done.
brackets Use "brackets=on" to surround a quotation with brackets. This indicates that the quotation either contains a mere mention of a term (for example, "some people find the word manoeuvre hard to spell") rather than an actual use of it (for example, "we need to manoeuvre carefully to avoid causing upset"), or does not provide an actual instance of a term but provides information about related terms.
t or translation If the quoted text is not in English, this parameter can be used to provide an English translation of it.
lit If the quoted text is not in English and the translation supplied using t or translation is idiomatic, this parameter can be used to provide a literal English translation.
footer This parameter can be used to specify arbitrary text to insert in a separate line at the bottom, to specify a comment, footnote, etc.
tr or transliteration If the quoted text uses a different writing system from the Latin alphabet (the usual alphabet used in English), this parameter can be used to provide a transliteration of it into the Latin alphabet. Note that many languages provide an automatic transliteration if this argument is not specified.
subst Phonetic substitutions to be applied to handle irregular transliterations in certain languages with a non-Latin writing system and automatic transliteration (e.g. Russian and Yiddish). If specified, should be one or more substitution expressions separated by commas, where each substitution expression is of the form FROM//TO (FROM/TO is also accepted), where FROM specifies the source text in the source script (e.g. Cyrillic or Hebrew) and TO is the corresponding replacement text, also in the source script. The intent is to respell irregularly-pronounced words phonetically prior to transliteration, so that the transliteration reflects the pronunciation rather than the spelling. The substitutions are applied in order. Note that Lua patterns can be used in FROM and TO in lieu of literal text; see WT:LUA. See also {{ux}} for an example of using subst (the usage is identical to that template).
indent Instead of using wikitext outside the quotation template to indent it (for example, "#* {{quote-hansard|..."), you can use this parameter to specify the indent inside the template (for example, "{{quote-hansard|indent=#*|...")

Technical information[уреди]

This template relies on {{quote-journal}}.