Difference between revisions of "Template:Cite tweet"

From Bronies.wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{ #if: {{{user|}}}{{{number|}}} | {{#if: {{#if: {{{title|}}} | {{#if: {{{work|}}} | 1 }} }} | |You must specify the '''''user = ''''' a...")
 
m (+cat)
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
#if: {{{user|}}}{{{number|}}}  
 
#if: {{{user|}}}{{{number|}}}  
 
   | {{#if:  
 
   | {{#if:  
     {{#if: {{{title|}}}
+
     {{#if: {{{user|}}}
       | {{#if: {{{work|}}} | 1 }}
+
       | {{#if: {{{number|}}} | 1 }}
 
     }}
 
     }}
 
     |
 
     |
     |You must specify the '''''user = ''''' and tweet '''''number = ''''' when using {{[[Template:cite tweet|cite tweet]]}}. {{#if: {{NAMESPACE}}
+
     |You must specify the <code>user</code> and tweet <code>number</code> parameters when using {{[[Template:cite tweet|cite tweet]]}}. {{#if: {{NAMESPACE}}
 
       |
 
       |
 
       | [[Category:Articles with broken citations]]
 
       | [[Category:Articles with broken citations]]
Line 15: Line 15:
 
   | {{{author}}} [@{{{user}}}].
 
   | {{{author}}} [@{{{user}}}].
 
   | @{{{user}}}.
 
   | @{{{user}}}.
}}
+
}}{{
&#32;[https://twitter.com/{{{user}}}/{{{number}}} {{#if: {{{text|}}} | “{{{text}}}” (Tweet). | A tweet. }}]
+
#if: {{{text|}}}
{{
+
  | &#32;[https://twitter.com/{{{user}}}/{{{number}}} “{{{text}}}”] (Tweet).
 +
  | &#32;[https://twitter.com/{{{user}}}/{{{number}}} A tweet.]
 +
}}{{
 
#if: {{{date|}}}  
 
#if: {{{date|}}}  
 
   | &#32;Posted on {{#time:F j, Y | {{{date}}} }}.
 
   | &#32;Posted on {{#time:F j, Y | {{{date}}} }}.
Line 23: Line 25:
 
#if: {{{accessdate|}}}
 
#if: {{{accessdate|}}}
 
   | &#32;Retrieved on {{#time:F j, Y | {{{accessdate}}} }}.
 
   | &#32;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
}}