Template:Citation Style documentation/title: Difference between revisions

From All Skies Encyclopaedia
imported>Jonesey95
(Undid revision 659557387 by Jonesey95 (talk). Trying again.)
imported>Redrose64
(add a couple of csdoc ids)
 
(34 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{Crossreference|(See also [[Help:Citation Style 1#Titles and chapters|Help:Citation Style 1 § Titles and chapters]].)}}
* '''{{#switch:{{{title_title}}}
* <b id="csdoc_title">{{#switch:{{{title_title}}}
|encyclopedia=encyclopedia
|encyclopedia=encyclopedia
|#default = title}}''': Title of source. {{#ifeq:{{{link|}}}|no||Can be wikilinked to an existing Wikipedia article or '''url''' may be used to add an external link, but not both.}} {{#switch:{{BASEPAGENAME}}
|#default = title}}</b>: Title of source. {{#switch:{{{link}}}|no=|wikilink_only=Can be wikilinked to an existing Wikipedia article.|Can be wikilinked to an existing Wikipedia article or '''url''' may be used to add an external link, but not both.}} {{#switch:{{BASEPAGENAME}}
|Cite arxiv
|Cite arXiv
|Cite conference
|Cite conference
|Cite journal
|Cite episode
|Cite news
|Cite journal
|Cite web
|Cite magazine
|Cite press release
|Cite news
|Cite podcast = Displays in quotes
|Cite web
|Cite press release
|Cite report = Displays unformatted, without italics or quotes
|Cite podcast = Displays in quotation marks. For titles containing quotation marks, convert regular quotation marks (<kbd>"</kbd>) to single quotation marks (<kbd>'</kbd>). See [[MOS:QINQ]] for guidance in more complex situations.
|#default = Displays in italics}}. If '''script-title''' is defined, '''title''' holds romanized transliteration of title in '''script-title'''.
|Cite report = Displays unformatted, without italics or quotation marks.
** '''script-title''': Original title for languages that do not use a Latin-based alphabet (Arabic, Chinese, Hebrew, Japanese, etc); not italicized, follows italicized transliteration defined in '''title'''. May be prefixed with an [[List of ISO 639-1 codes|ISO 639-1]] two-character code to help browsers properly display the script:
|Cite book = Displays in ''italics''.
|Citation = If '''work''' (or its alias) is defined, then '''title''' is displayed in quotes; otherwise, '''title''' displays in italics.
|#default = Displays in ''italics''.}} {{#if:{{{limited_param_list|}}}||If '''script-title''' is defined, use '''title''' to hold a [[WP:ROMAN|Romanization]] (if available) of the title in '''script-title'''.
** '''script-title''': Original title 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 '''title''' (if present). Must be prefixed with one of the [[Help:Citation_Style_1#{{pipe}}script-&lt;param>{{=}} language codes|supported language codes]] to help browsers properly display the script:
**:<code><nowiki>... |title=Tōkyō tawā |script-title=ja:東京タワー |trans-title=Tokyo Tower ...</nowiki></code>
**:<code><nowiki>... |title=Tōkyō tawā |script-title=ja:東京タワー |trans-title=Tokyo Tower ...</nowiki></code>
** '''trans-title''': English translation of the title if the source cited is in a foreign language. Displays in square brackets after '''{{#switch:{{{title_title}}}
** <b id="csdoc_trans-title">trans-title</b>: English translation of the title if the source cited is in a foreign language. Displays in square brackets after '''{{#switch:{{{title_title}}}
|encyclopedia=encyclopedia
|encyclopedia=encyclopedia
|#default = title}}'''; if '''url''' is defined, then '''trans-title''' is included in the link. Use of the '''language''' parameter is recommended.
|#default = title}}'''. Use of the '''language''' parameter is recommended.}}
:Titles containing certain characters will display and link incorrectly unless those characters are encoded.
:Titles containing certain characters will not display and link correctly unless those characters are encoded.
{| class="wikitable" style="margin-left: 5em"
{| class="wikitable" style="margin-left: 5em"
! newline !! [ !! ] !! &#124;
! newline !! [ !! ] !! &#124;
|-
|-
| space || style="text-align: center;" | &amp;#91; || style="text-align: center;" | &amp;#93; || style="text-align: center;" | &amp;#124;
| space || style="text-align: center;" | &amp;#91; || style="text-align: center;" | &amp;#93; || style="text-align: center;" | <code><nowiki>{{!}}</nowiki></code> (preferred)
|-
|-
|
|
| colspan="2" style="text-align: center;" | [[Template:Bracket|<nowiki>{{bracket|text}}</nowiki>]] || [[Template:Pipe|<nowiki>{{pipe}}</nowiki>]] – see also: [[Help:Table#Rendering_pipe_itself|rendering vertical bars in tables]]
| colspan="2" style="text-align: center;" | [[Template:Bracket|<nowiki>{{bracket|text}}</nowiki>]] || &amp;#124; or [[Template:Pipe|<nowiki>{{pipe}}</nowiki>]] – {{crossref|see also {{section link|Help:Table|Rendering the pipe}}}}
|}{{#if:{{{limited_param_list|}}}||
|}
:* '''title-link''': Title of existing Wikipedia article about the source named in '''title''' – do not use a web address; do not wikilink.
{{#ifeq:{{{title_format|}}}|quotes|
{{#switch:{{BASEPAGENAME}}|Cite journal =
*When the title you are citing contains quotations marks or apostrophes at the beginning, end or both, you can use <code>&amp;thinsp;</code> to place a separation between that punctuation and the quotation marks this template automatically provides around the title, to avoid a non-ideal display such as <nowiki>'''</nowiki>.
:: Some identifiers (specifying free resources) will automatically be linked to the title when {{para|url}} and {{para|title-link}} are not used to specify a different link target. This behaviour can be overridden by one out of a number of special keywords for {{para|title-link}} to manually select a specific source ({{para|title-link|pmc}} or {{para|title-link|doi}}) for auto-linking or to disable the feature ({{para|title-link|none}}).}}
:*For example instead of {{xt|<nowiki>title='name'</nowiki>}} which will display on many browsers with the quotation marks surrounding it as {{!xt|<nowiki>'''name'''</nowiki>}}, use {{xt|<nowiki>|title=</nowiki>}}{{!xt|&amp;thinsp;}}'name'{{!xt|&amp;thinsp;}}, which will display as "&thinsp;'name'&thinsp;".}}
}}
:* '''title-link''': Title of existing Wikipedia article about the source named in '''title''' – do not use a web address; do not wikilink. Alias: '''titlelink'''.

Latest revision as of 20:43, 20 June 2024

(See also Help:Citation Style 1 § Titles and chapters.)

  • title: Title of source. Can be wikilinked to an existing Wikipedia article or url may be used to add an external link, but not both. Displays in italics. If script-title is defined, use title to hold a Romanization (if available) of the title in script-title.
    • script-title: Original title 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 title (if present). Must be prefixed with one of the supported language codes to help browsers properly display the script:
      ... |title=Tōkyō tawā |script-title=ja:東京タワー |trans-title=Tokyo Tower ...
    • trans-title: English translation of the title if the source cited is in a foreign language. Displays in square brackets after title. Use of the language parameter is recommended.
Titles containing certain characters will not display and link correctly unless those characters are encoded.
newline [ ] |
space &#91; &#93; {{!}} (preferred)
{{bracket|text}} &#124; or {{pipe}}see also Help:Table § Rendering the pipe
  • title-link: Title of existing Wikipedia article about the source named in title – do not use a web address; do not wikilink.