template:tweet

{{Quote box|style={{#if: {{{style|}}}|{{{style}}};}} {{#if: {{{block|}}}|margin:1rem 40px;|}}|align={{#if: {{{left|}}}|left|{{#if: {{{block|}}}|none|right}}}}|width={{#if: {{{block|}}}|{{{width|500px}}}|{{{width|220px}}}}}|quote={{#if: {{{name|}}}||{{Formatting error|Missing name parameter.
|nocategory={{{nocategory|}}}}}}}{{#if: {{{username|}}}||{{Formatting error|Missing username parameter.
|nocategory={{{nocategory|}}}}}}}{{#if: {{{date|{{#if:{{{id|}}}|{{TwitterSnowflake|{{{id}}}}}}}}}}||{{Formatting error|Invalid date parameter.
|nocategory={{{nocategory|}}}}}}}{{#if: {{{text|}}}||{{Formatting error|Missing text parameter.
|nocategory={{{nocategory|}}}}}}}{{#ifeq: {{extract|{{{date|{{#if:{{{id|}}}|{{TwitterSnowflake|{{{id}}}}}}}}}}|show=format}} | dmy

||{{#ifeq: {{extract|{{{date|{{#if:{{{id|}}}|{{TwitterSnowflake|{{{id}}}}}}}}}}|show=format}} | mdy

||{{Formatting error|date parameter should be reformatted to look like:
1 Jan 1970 or Jan 1, 1970
or removed.
|nocategory={{{nocategory|}}}}}

}}

}}{{#if: {{{ID|{{{id|{{{reference|{{{ref|}}}}}}}}}}}}

||{{Formatting error|reference or ID parameter required.
|nocategory={{{nocategory|}}}}}

}}

{{#if: {{{image|}}}

|

|}}

{{{name|}}}
@{{{username|}}}

{{#if: {{{replyto|}}}|

Replying to @{{{replyto|}}}

|}}

{{#if: {{{lang|{{{language|}}}}}}

|

{{langx|{{{lang|{{{language|}}}}}}|{{{text|}}}}}

|

{{{text|}}}

}}

{{#if: {{{translation|}}}|


{{{translation|}}}

|}}

{{{date|{{#if:{{{id|}}}|{{TwitterSnowflake|{{{id}}}}}}}}}}{{{reference|{{{ref

|{{#tag:ref|{{cite tweet|user= {{{username}}} |author= {{{name|}}} |last= {{{last|}}} |first= {{{first|}}} |author-link= {{{author-link|}}} |number= {{{ID|{{{id|}}}}}} |date= {{{date|{{#if:{{{id|}}}|{{TwitterSnowflake|{{{id}}}}}}}}}} |title= {{#invoke:String|replace|{{{text}}}|%s+| |plain=false}} |archive-url= {{{archive-url|}}} |archive-date= {{{archive-date|}}} |url-status= {{{url-status|}}} |ref={{{cite-id|}}} }} | name={{{ref-name|Tweet{{{username}}}}}} }}

}}}}}}

}}

{{documentation}}