Vorlage:Cite tweet/Doku: Unterschied zwischen den Versionen
make an usage section, put examples in Examples section, make Error detection a level 2 heading
(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 == | |||
*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 == | ||