Template:Citation Style documentation/quote: Difference between revisions

From The Goon Show Depository
en>Trappist the monk
(allow hiding |quote-page(s)= for templates that also don't support |page(s)=;)
 
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
** '''script-quote''': Original quotation for languages that do not use a Latin-based script (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, etc.); not italicized, follows italicized Romanization defined in '''quote''' (if available). Alias: none. Must be prefixed with one of the [[Help:Citation_Style_1#{{pipe}}script-<param>{{=}} language codes|supported language codes]] to help browsers properly display the script:
** '''script-quote''': Original quotation for languages that do not use a Latin-based script (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, etc.); not italicized, follows italicized Romanization defined in '''quote''' (if available). Alias: none. Must be prefixed with one of the [[Help:Citation_Style_1#{{pipe}}script-<param>{{=}} language codes|supported language codes]] to help browsers properly display the script:
**:<code><nowiki>... |quote=Tōkyō tawā |script-quote=ja:東京タワー |trans-quote=Tokyo Tower ...</nowiki></code>
**:<code><nowiki>... |quote=Tōkyō tawā |script-quote=ja:東京タワー |trans-quote=Tokyo Tower ...</nowiki></code>
** '''trans-quote''': English translation of the quotation if the source quoted is in a foreign language. Displays in square brackets. Alias: none.{{#if:{{{unpaginated|}}}||
** <b id="csdoc_trans-quote">trans-quote</b>: English translation of the quotation if the source quoted is in a foreign language. Displays in square brackets. Alias: none.{{#if:{{{unpaginated|}}}||
* <b>quote-page</b>: The number of a single page quoted in {{para|quote}}. Use either {{para|quote-page}} or {{para|quote-pages}}, but not both. Should be a subset of the page(s) specified in {{para|page}}, {{para|pages}} or {{para|at}}. Displays preceded by {{code|p.}} unless {{para|no-pp|yes}}. If hyphenated, use {{tl|hyphen}} to indicate this is intentional (e.g. {{para|quote-page|<nowiki>3{{hyphen}}12</nowiki>}}). Alias: none.
* <b>quote-page</b>: The number of a single page quoted in {{para|quote}}. Use either {{para|quote-page}} or {{para|quote-pages}}, but not both. Should be a subset of the page(s) specified in {{para|page}}, {{para|pages}} or {{para|at}}. Displays preceded by {{code|p.}} unless {{para|no-pp|yes}}. If hyphenated, use {{tl|hyphen}} to indicate this is intentional (e.g. {{para|quote-page|<nowiki>3{{hyphen}}12</nowiki>}}). Alias: none.
* OR: <b>quote-pages</b>: A list or range of pages quoted in {{para|quote}}. Use either {{para|quote-page}} or {{para|quote-pages}}, but not both. Should be a subset of the pages specified in {{para|pages}} or {{para|at}}. Separate using an en dash (–); separate non-sequential pages with a comma (,). Displays preceded by {{code|pp.}} unless {{para|no-pp|yes}} is defined. Hyphens are automatically converted to en dashes; if hyphens are appropriate because individual page numbers contain hyphens, for example: pp. 3-1–3-15, use [[Help:Citation_Style_1#Accept-this-as-written_markup|double parentheses]] to tell the template to display the value of {{para|quote-pages}} without processing it, and use {{tl|hyphen}} to indicate to editors that a hyphen is really intended: {{para|quote-pages|<nowiki>((3{{hyphen}}1{{ndash}}3{{hyphen}}15))</nowiki>}}. Alias: none.}}
* OR: <b>quote-pages</b>: A list or range of pages quoted in {{para|quote}}. Use either {{para|quote-page}} or {{para|quote-pages}}, but not both. Should be a subset of the pages specified in {{para|pages}} or {{para|at}}. Separate using an en dash (–); separate non-sequential pages with a comma (,). Displays preceded by {{code|pp.}} unless {{para|no-pp|yes}} is defined. Hyphens are automatically converted to en dashes; if hyphens are appropriate because individual page numbers contain hyphens, for example: pp. 3-1–3-15, use [[Help:Citation_Style_1#Accept-this-as-written_markup|double parentheses]] to tell the template to display the value of {{para|quote-pages}} without processing it, and use {{tl|hyphen}} to indicate to editors that a hyphen is really intended: {{para|quote-pages|<nowiki>((3{{hyphen}}1{{ndash}}3{{hyphen}}15))</nowiki>}}. Alias: none.}}

Latest revision as of 18:27, 18 July 2024

  • quote: Relevant text quoted from the source. Displays enclosed in quotes. When supplied, the citation terminator (a period by default) is suppressed, so the quote must include terminating punctuation. If script-quote is defined, use quote to hold a Romanization (if available) of the text in script-quote.
    • script-quote: Original quotation for languages that do not use a Latin-based script (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, etc.); not italicized, follows italicized Romanization defined in quote (if available). Alias: none. Must be prefixed with one of the [[Help:Citation_Style_1#|script-<param>=

Error: The retired template {{Template:Citation Style documentation/quote}} has been transcluded; see mw:Help:Magic words#Other for details. To fix this, use only the code {{=}} to generate the = character. language codes|supported language codes]] to help browsers properly display the script:

    • ... |quote=Tōkyō tawā |script-quote=ja:東京タワー |trans-quote=Tokyo Tower ...
    • trans-quote: English translation of the quotation if the source quoted is in a foreign language. Displays in square brackets. Alias: none.
  • quote-page: The number of a single page quoted in |quote=. Use either |quote-page= or |quote-pages=, but not both. Should be a subset of the page(s) specified in |page=, |pages= or |at=. Displays preceded by p. unless |no-pp=yes. If hyphenated, use {{hyphen}} to indicate this is intentional (e.g. |quote-page=3{{hyphen}}12). Alias: none.
  • OR: quote-pages: A list or range of pages quoted in |quote=. Use either |quote-page= or |quote-pages=, but not both. Should be a subset of the pages specified in |pages= or |at=. Separate using an en dash (–); separate non-sequential pages with a comma (,). Displays preceded by pp. unless |no-pp=yes is defined. Hyphens are automatically converted to en dashes; if hyphens are appropriate because individual page numbers contain hyphens, for example: pp. 3-1–3-15, use double parentheses to tell the template to display the value of |quote-pages= without processing it, and use {{hyphen}} to indicate to editors that a hyphen is really intended: |quote-pages=((3{{hyphen}}1{{ndash}}3{{hyphen}}15)). Alias: none.