Difference between revisions of "Template:Citation Style documentation/web"
From Timelines
(Correcting documentation. Since URL is required for cite web, the title cannot be wikilinked.) |
(Script-title;) |
||
Line 1: | Line 1: | ||
− | * <span id="csdoc_title" />'''title''': Title of source page on website. Displays in quotes. | + | * <span id="csdoc_title" />'''title''': Title of source page on website. Displays in quotes. 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); follows 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> | ||
+ | ** <span id="csdoc_trans_title" />'''trans-title''': English translation of the title if the source cited is in a foreign language. Displays in square brackets after '''title'''; '''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. | :Titles containing certain characters will display and link incorrectly unless those characters are encoded. | ||
{| class="wikitable" style="margin-left: 5em" | {| class="wikitable" style="margin-left: 5em" | ||
Line 6: | Line 9: | ||
| space || &#91; || &#93; || &#124; | | space || &#91; || &#93; || &#124; | ||
|} | |} | ||
− | |||
{{Citation Style documentation/required}} | {{Citation Style documentation/required}} | ||
* <span id="csdoc_work" /><span id="csdoc_website" />'''website''': Title of website; may be wikilinked. Displays in italics. Aliases: '''work''' | * <span id="csdoc_work" /><span id="csdoc_website" />'''website''': Title of website; may be wikilinked. Displays in italics. Aliases: '''work''' |
Revision as of 05:40, 2 October 2014
- <span id="csdoc_title" />title: Title of source page on website. Displays in quotes. 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); follows 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 ...
- <span id="csdoc_trans_title" />trans-title: English translation of the title if the source cited is in a foreign language. Displays in square brackets after title; trans-title is included in the link. Use of the language parameter is recommended.
- script-title: Original title for languages that do not use a Latin-based alphabet (Arabic, Chinese, Hebrew, Japanese, etc); follows transliteration defined in title. May be prefixed with an ISO 639-1 two-character code to help browsers properly display the script:
- Titles containing certain characters will display and link incorrectly unless those characters are encoded.
newline | [ | ] | | |
---|---|---|---|
space | [ | ] | | |
- This parameter is required and will generate an error if not defined. On errors, main, help and template pages are placed into Category:Articles with incorrect citation syntax. Set
|template-doc-demo=true
to disable categorization; mainly used for documentation where the error is demonstrated.
- <span id="csdoc_work" /><span id="csdoc_website" />website: Title of website; may be wikilinked. Displays in italics. Aliases: work