Template:Citation Style documentation/web: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
Import template subpage from English Wikipedia
 
m Update documentation
 
Line 1: Line 1:
:'''''See also:''' [[wikipedia:Help:Citation Style 1#Titles and chapters|Help:Citation Style 1 § Titles and chapters]]
:'''''See also:''' [[wikipedia:Help:Citation Style 1#Titles and chapters|Help:Citation Style 1 § Titles and chapters]]


* <span id="csdoc_title" style="background-color: #f8f9fa; border: 1px solid #c8ccd1; color: #000; font-family: Menlo, Consolas, Monaco, 'Noto Mono', 'Nimbus Mono L', monospace; font-size: 1em; font-weight: 700; padding: 1px 4px;">title</span>: The title of the source page, displays in quotation marks. For titles containing quotation marks, convert double quotation marks (<kbd>"</kbd>) to single quotation marks (<kbd>'</kbd>). If '''<code>script-title</code>''' is defined, use '''<code>title</code>''' to hold a [[wikipedia:Wikipedia:Romanization|Romanization]] (if available) of the title in '''<code>script-title</code>'''.
* <span id="csdoc_title" style="background-color: #f8f9fa; border: 1px solid #c8ccd1; color: #000; font-family: Menlo, Consolas, Monaco, 'Noto Mono', 'Nimbus Mono L', monospace; font-size: 1em; font-weight: 700; padding: 1px 4px;">title</span>: The title of the website source page, displayed wrapped in quotation marks. For titles containing quotation marks, convert double quotation marks (<kbd>"</kbd>) to single quotation marks (<kbd>'</kbd>). If '''{{Code|script-title}}''' is defined, use '''{{Code|title}}''' to hold a [[wikipedia:Wikipedia:Romanization|Romanization]] (if available) of the title in '''{{Code|script-title}}'''.
** '''<code>script-title</code>''': The original title, for languages that do not use a Latin-alphabet script (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, etc.); follows Romanization defined in '''<code>title</code>''' (if present). Must be prefixed with one of the [[wikipedia:Help:Citation Style 1#{{pipe}}script-&lt;param>{{=}} language codes|supported language codes]] to help browsers properly display the script:
** <span id="csdoc_script-title" style="background-color: #f8f9fa; border: 1px solid #c8ccd1; color: #000; font-family: Menlo, Consolas, Monaco, 'Noto Mono', 'Nimbus Mono L', monospace; font-size: 1em; font-weight: 700; padding: 1px 4px;">script-title</span>: The original title, for languages that do not use a Latin-alphabet script (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, etc.); follows Romanization defined in '''{{Code|title}}''' (if present). Must be prefixed with one of the [[wikipedia:Help:Citation_Style_1#%7Cscript-%3Cparam%3E%3D_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>
** <span id="csdoc_trans-title" style="background-color: #f8f9fa; border: 1px solid #c8ccd1; color: #000; font-family: Menlo, Consolas, Monaco, 'Noto Mono', 'Nimbus Mono L', monospace; font-size: 1em; font-weight: 700; padding: 1px 4px;">trans-title</span>: The English translation of the title, if the source cited is in a foreign language; displays inside square brackets after '''{{Code|title}}''' with '''{{Code|trans-title}}''' included in the link. Use of the '''{{Code|language}}''' parameter is recommended.
** <span id="csdoc_trans-title" style="background-color: #f8f9fa; border: 1px solid #c8ccd1; color: #000; font-family: Menlo, Consolas, Monaco, 'Noto Mono', 'Nimbus Mono L', monospace; font-size: 1em; font-weight: 700; padding: 1px 4px;">trans-title</span>: The English translation of the title, if the source cited is in a foreign language; displays in square brackets after '''<code>title</code>''' with '''<code>trans-title</code>''' included in the link. Use of the '''<code>language</code>''' parameter is recommended.
 
:Titles containing certain characters will display and link incorrectly unless those characters are encoded.
<span style="margin-left: 1.6rem;">Titles containing certain characters will display and link incorrectly, unless those characters are properly encoded.</span>
{| class="wikitable" style="margin-left: 5em;"
{| class="wikitable" style="margin-left: 5em;"
  ! scope="col" | newline
  ! scope="col" | newline
  ! scope="col" | [
  ! scope="col" | &lbrack;
  ! scope="col" | ]
  ! scope="col" | &rbrack;
  ! scope="col" | &#124;
  ! scope="col" | &verbar;
  |-
  |-
  | space
  | space
  | style="text-align: center;" | &amp;#91;
  | style="text-align: center;" | &amp;lbrack;
  | style="text-align: center;" | &amp;#93;
  | style="text-align: center;" | &amp;rbrack;
  | style="text-align: center;" | &amp;#124;
  | style="text-align: center;" | &amp;verbar;
  |-
  |-
  |
  |
Line 22: Line 22:
|}
|}
{{Citation Style documentation/required}}
{{Citation Style documentation/required}}
* <span id="csdoc_work"></span><span id="csdoc_website" style="background-color: #f8f9fa; border: 1px solid #c8ccd1; color: #000; font-family: Menlo, Consolas, Monaco, 'Noto Mono', 'Nimbus Mono L', monospace; font-size: 1em; font-weight: 700; padding: 1px 4px;">website</span>: The title of the hosting website of the source (when the website has a clear name, use that rather than the domain name), shown in italics; may be wikilinked. Aliases: '''<code>work</code>'''.
* <span id="csdoc_work"></span><span id="csdoc_website" style="background-color: #f8f9fa; border: 1px solid #c8ccd1; color: #000; font-family: Menlo, Consolas, Monaco, 'Noto Mono', 'Nimbus Mono L', monospace; font-size: 1em; font-weight: 700; padding: 1px 4px;">website</span>: The title of the hosting website of the source (when the website has a clear name, use that rather than the domain name), shown in italics; may be wikilinked. Aliases: '''{{Code|work}}'''.

Latest revision as of 20:45, 22 December 2025

See also: Help:Citation Style 1 § Titles and chapters
  • title: The title of the website source page, displayed wrapped in quotation marks. For titles containing quotation marks, convert double quotation marks (") to single quotation marks ('). If script-title is defined, use title to hold a Romanization (if available) of the title in script-title.
    • script-title: The original title, for languages that do not use a Latin-alphabet script (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, etc.); follows 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: The English translation of the title, if the source cited is in a foreign language; displays inside square brackets after title with trans-title included in the link. Use of the language parameter is recommended.

Titles containing certain characters will display and link incorrectly, unless those characters are properly encoded.

newline [ ] |
space &lbrack; &rbrack; &verbar;
{{Bracket|text}} {{Pipe}} – See also Help:Table § Rendering pipe itself.
This parameter is required and will generate an error if not defined. On errors, Main, Help and Template namespace pages are placed into Category:Articles with incorrect citation syntax. Set |no-tracking=true to disable categorization; mainly used for in-place documentation where the error is demonstrated.
  • website: The title of the hosting website of the source (when the website has a clear name, use that rather than the domain name), shown in italics; may be wikilinked. Aliases: work.