Vorlage:Cite tweet/Doku: Unterschied zwischen den Versionen

Aus skandinavien-wiki.net
(add a title to incomplete example to prevent error categorisation)
(make an usage section, put examples in Examples section, make Error detection a level 2 heading)
Zeile 5: Zeile 5:


== Usage ==
== Usage ==
{{csdoc|usage}}
{| class="wikitable" style="width: 100%"
|+ Required parameters only, in horizontal format
|- style="vertical-align:top;"
|
:<code><nowiki>{{Cite tweet |user= |number= |date= |title= }}</nowiki></code>
{{end}}
{{csdoc|usage full}}
:<code><nowiki>{{Cite tweet |author= |author-link= |user= |number= |date= |title= |retweet= |access-date= }}</nowiki></code>
{{end}}
== Examples ==
'''<code><nowiki>{{Cite tweet |user=Pigsonthewing |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! }}</nowiki></code>'''
'''<code><nowiki>{{Cite tweet |user=Pigsonthewing |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! }}</nowiki></code>'''
:{{Cite tweet |user=Pigsonthewing |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! }}
:{{Cite tweet |user=Pigsonthewing |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! }}
Zeile 12: Zeile 24:
:{{Cite tweet |user=Pigsonthewing |author=Andy Mabbett |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! |retweet=Wikimedia Foundation [Wikimedia]}}
:{{Cite tweet |user=Pigsonthewing |author=Andy Mabbett |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! |retweet=Wikimedia Foundation [Wikimedia]}}


=== Error detection ===
== Error detection ==
*The parameters {{para|user}}, {{para|number}}, {{para|date}}, and {{para|title}} are '''{{red|required}}'''. If omitted or left blank, errors will be reported. For example:
*The parameters {{para|user}}, {{para|number}}, {{para|date}}, and {{para|title}} are '''{{red|required}}'''. If omitted or left blank, errors will be reported. For example:
*:'''<code><nowiki>{{Cite tweet|title=I'm an incomplete citation!}}</nowiki></code>'''
*:'''<code><nowiki>{{Cite tweet|title=I'm an incomplete citation!}}</nowiki></code>'''
*::{{Cite tweet|title=I'm an incomplete citation!}}
*::{{Cite tweet|title=I'm an incomplete citation!}}
*The tweet URL depends on {{para|user}} and {{para|number}}; if either or both are missing, the URL defaults to <nowiki>https://twitter.com/</nowiki>
*The tweet URL depends on {{para|user}} and {{para|number}}; if either or both are missing, the URL defaults to <nowiki>https://twitter.com/</nowiki>
*Errors are tracked in [[:Category:Cite tweet templates with errors]]  
*Errors are tracked in [[:Category:Cite tweet templates with errors]]


== Parameters ==
== Parameters ==

Version vom 10. April 2015, 06:39 Uhr

A wrapper for {{Cite web}}.

Usage

Copy a blank version to use. Almost all parameter names are supported only in lower case (some initialisms, such as |isbn= have upper-case aliases like |ISBN=, which are acceptable for use). Use the "|" (pipe) character between each parameter. Unused parameters may be deleted to avoid clutter in the edit window. Some samples on this documentation page may include the current date. If the date is not current, then purge the page.

Required parameters only, in horizontal format
{{Cite tweet |user= |number= |date= |title= }}
Full parameter set in horizontal format
{{Cite tweet |author= |author-link= |user= |number= |date= |title= |retweet= |access-date= }}

Examples

{{Cite tweet |user=Pigsonthewing |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! }}

@Pigsonthewing (7 February 2015). "This is an example tweet. Hello, Wikipedians!" (Tweet) – via Twitter.

{{Cite tweet |user=Pigsonthewing |author=Andy Mabbett |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! }}

Andy Mabbett [@Pigsonthewing] (7 February 2015). "This is an example tweet. Hello, Wikipedians!" (Tweet) – via Twitter.

{{Cite tweet |user=Pigsonthewing |author=Andy Mabbett |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! |retweet=Wikimedia Foundation [Wikimedia]}}

Andy Mabbett [@Pigsonthewing] (7 February 2015). "This is an example tweet. Hello, Wikipedians!" (Tweet). Retweeted by Wikimedia Foundation [Wikimedia] – via Twitter.

Error detection

  • The parameters |user=, |number=, |date=, and |title= are required. If omitted or left blank, errors will be reported. For example:
    {{Cite tweet|title=I'm an incomplete citation!}}
    @. "I'm an incomplete citation!" (Tweet) – via Twitter.{{cite web}}: CS1 maint: numeric names: authors list (link) Missing or empty |user=; Missing or empty |number= (help)
  • The tweet URL depends on |user= and |number=; if either or both are missing, the URL defaults to https://twitter.com/
  • Errors are tracked in Category:Cite tweet templates with errors

Parameters

A template for citing tweets posted on Twitter

Vorlagenparameter

ParameterBeschreibungTypStatus
numbernumber

Numerical ID of the tweet

Zahlenwerterforderlich
usernameuser

Twitter account name, without the @

Mehrzeiliger Texterforderlich
Tweettitle

Entire content of the tweet, including hashtags (#), at signs (@), and links

Mehrzeiliger Texterforderlich
authorauthor

Author's name, if known

Unbekanntvorgeschlagen
Author's articleauthor-link authorlink

Title of existing Wikipedia article about the author

Unbekanntoptional
retweeted byretweet

The reliable source who retweeted the tweet, if the original tweeter is not anyone particularly notable. May be wikilinked.

Unbekanntoptional
datedate

date of the tweet; do not wikilink; do not include time. Note: a tweet's timestamp is in your local timezone, and may need to be adjusted to UTC.

Unbekannterforderlich
access dateaccess-date accessdate

The full date when the tweet was accessed; do not wikilink

Unbekanntoptional


Redirects

  1. {{Cite twitter}}

See also