Difference between revisions of "Template:Cite tweet"

From Bronies.wiki
Jump to navigation Jump to search
(Fix incorrect parameter names.)
m (+cat)
 
(3 intermediate revisions by the same user not shown)
Line 15: Line 15:
 
   | {{{author}}} [@{{{user}}}].
 
   | {{{author}}} [@{{{user}}}].
 
   | @{{{user}}}.
 
   | @{{{user}}}.
}}
+
}}{{
 [https://twitter.com/{{{user}}}/{{{number}}} {{#if: {{{text|}}} | “{{{text}}}” (Tweet). | A tweet. }}]
+
#if: {{{text|}}}
{{
+
  |  [https://twitter.com/{{{user}}}/{{{number}}} “{{{text}}}”] (Tweet).
 +
  |  [https://twitter.com/{{{user}}}/{{{number}}} A tweet.]
 +
}}{{
 
#if: {{{date|}}}  
 
#if: {{{date|}}}  
 
   |  Posted on {{#time:F j, Y | {{{date}}} }}.
 
   |  Posted on {{#time:F j, Y | {{{date}}} }}.
Line 23: Line 25:
 
#if: {{{accessdate|}}}
 
#if: {{{accessdate|}}}
 
   |  Retrieved on {{#time:F j, Y | {{{accessdate}}} }}.
 
   |  Retrieved on {{#time:F j, Y | {{{accessdate}}} }}.
}}{</includeonly><noinclude>
+
}}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 +
[[Category:Citation templates|Tweet]]
 
</noinclude>
 
</noinclude>

Latest revision as of 16:39, 5 October 2020

This documentation is transcluded from Template:Cite tweet/doc and needs to be edited separately.

This template is used when referencing a tweet posted on Twitter.

Usage

At a minimum, you must provide the username (without leading @-sign) and the numerical ID for the tweet, which is part of the tweet's URL.

{{Cite tweet
| user=tarastrong
| number=640541460992028672
}}

This alone isn't very useful, however. If possible, expand to fill all of the metadata, particularly the tweet content (including any mentions and hashtags, but without parsing those to wikitext) and the date it was posted.

{{Cite tweet
| user=tarastrong
| author=Tara Strong
| number=640541460992028672
| text=He's a Brony! @rupertgrintnet @FANEXPOCANADA
| date=2015-09-06
| accessdate=2020-10-04
}}