Difference between revisions of "Template:Citation Style documentation/title"

From Timelines
Jump to: navigation, search
(sp)
m (changing a link to a section title at help:table)
 
(21 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
* '''{{#switch:{{{title_title}}}
 
* '''{{#switch:{{{title_title}}}
 
|encyclopedia=encyclopedia
 
|encyclopedia=encyclopedia
|#default = 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. {{#switch:{{BASEPAGENAME}}
+
|#default = title}}''': 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 journal
+
|Cite arXiv = Displays in quotes
|Cite web
+
|Cite book = Displays in italics
|Cite news
+
|Cite conference = Displays in quotes
|Cite press release
+
|Cite journal = Displays in quotes
|Cite conference
+
|Cite news = Displays in quotes
 +
|Cite web = Displays in quotes
 +
|Cite press release = Displays in quotes
 
|Cite podcast = Displays in quotes
 
|Cite podcast = Displays in quotes
 
|Cite report = Displays unformatted, without italics or quotes
 
|Cite report = Displays unformatted, without italics or quotes
|#default = Displays in italics}}. {{#if:{{{lua|}}}|If '''script-title''' is defined, '''title''' holds romanized transliteration of title in '''script-title'''.}}{{#if:{{{lua|}}}|
+
|#default = Displays in italics}}. If '''script-title''' is defined, '''title''' holds romanized transliteration of title in '''script-title'''.
** '''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:
+
** '''script-title''': Original title for languages that do not use a Latin-based alphabet (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, Vietnamese, 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:
**:<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}}}
 
** '''trans-title''': 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
Line 19: Line 21:
 
! newline !! [ !! ] !! &#124;
 
! newline !! [ !! ] !! &#124;
 
|-
 
|-
| space || &amp;#91; || &amp;#93; || &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>]] || &amp;#124; or [[Template:Pipe|<nowiki>{{pipe}}</nowiki>]] – {{crossref|see also {{section link|Help:Table|Rendering the pipe}}}}
 
|}
 
|}
 
{{#ifeq:{{{title_format|}}}|quotes|
 
{{#ifeq:{{{title_format|}}}|quotes|
 
*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>.  
 
*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>.  
 
:*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;".}}
 
:*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 18:46, 11 December 2016

  • 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, title holds romanized transliteration of title in script-title.
    • script-title: Original title for languages that do not use a Latin-based alphabet (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, Vietnamese, etc); not italicized, follows italicized transliteration defined in title. May be prefixed with an ISO 639-1 two-character code 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; if url is defined, then trans-title is included in the link. Use of the language parameter is recommended.
Titles containing certain characters will display and link incorrectly 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. Alias: titlelink.