Template:Tweet: Difference between revisions
More actions
m add to Category:Template Category:Block template |
make sources optional for older/deleted tweets |
||
| Line 9: | Line 9: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td colspan="2"><span class="plainlinks"><span style="color:#71767b">{{#if:{{{wiki_img|}}}|[|}}[{{{source}}}{{#if:{{{wiki_img|}}}|{{!}}|}} SOURCE]{{#if:{{{wiki_img|}}}|]|}} {{#if:{{{ | <td colspan="2"><span class="plainlinks"><span style="color:#71767b">{{#if:{{{wiki_img|}}}|[|}}{{#if: {{{source|}}}|[}}{{{source|}}}{{#if:{{{wiki_img|}}}|{{!}}|}} {{#if: {{{source|}}}|SOURCE]}}{{#if:{{{wiki_img|}}}|]|}} {{#if:{{{source|}}}|·}} {{{time}}} {{#if:{{{date}}}|·}} {{{date}}}</span></span> | ||
</tr> | </tr> | ||
</table></includeonly><noinclude> | </table></includeonly><noinclude> | ||
Latest revision as of 18:23, 11 April 2025
Useage
Meant to be used to (poorly) spoof a tweet embed.
{{tweet
|pfp =
|username =
|@ =
|body =
|time =
|date =
|float =
|width =
}}
Parameters
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| pfp | pfp | Profile picture of the person tweeting. Will optionally default to [[:File:Embedprofile.png]] if none is specified. Will automatically scale to 50px and place double brackets, disallowing any size customization of the profile picture.
| File | suggested |
| username | username | Username of individual at time of tweet or as it is currently displayed if the tweet still exists.
| Content | required |
| @ | @ | The @ handle of the Twitter/X account. It will automatically provide a link to the Twitter/X profile. Don't include the "@" symbol as it will be placed in the link for you.
| Content | required |
| body | body | Content of the tweet.
| Content | required |
| time | time | Time tweet was made. Display in whatever time is available and add time zone. Might become optional in future.
| Content | required |
| date | date | Date tweet was posted. Fill with whatever format source of tweet displayed. | Date | required |
| width | width | The width of the tweet. Will default to 100% of page width. Can be set to specific px, em, etc. size as needed, but recommend 30-40% for any wrapped tweets, and 100% for any tweets that are larger in content.
| Unknown | suggested |
| float | float | Specify either "left" or "right" to define alignment in article. "Center" is theoretically possible but untested. Defaults to "right".
| Boolean | suggested |
Examples
The following would be an example of a hypothetical tweet in which Destiny (@TheOmniLiberal) says "Together we fuck shit up." at 12:34 AM CST on March 19, 2024.
{{tweet
|pfp =File:DestinyLex.jpg
|username =Destiny
|@ =TheOmniLiberal
|body =Together we fuck shit up.
|time =12:34 AM CST
|date =Mar 19, 2024
}}
How it will present:
| Destiny @TheOmniLiberal |
|
| Together we fuck shit up. | |
| 12:34 AM CST · Mar 19, 2024 | |
Can also be embedded within body text in a similar vein to a picture, for example:
<nowiki>
{{tweet
|pfp =
|pfp = File:DestinyLex.jpg
|username = Destiny
|@ = TheOmniLiberal
|body = Together we fuck shit up.
|time = 12:34 AM CST
|date = Mar 19, 2024
|float = right
|width = 30%
}}
Lorem ipsum odor amet, consectetuer adipiscing elit. Senectus facilisis imperdiet quam tempor scelerisque mi. Netus primis tempus lectus ad vestibulum elementum. Rutrum sollicitudin curae laoreet ex dignissim tempus. Suspendisse consequat blandit torquent ipsum tincidunt? Eleifend ultricies venenatis venenatis tempor nisl consequat per at. Nunc aliquet natoque urna integer libero. Aliquam aliquam blandit elementum penatibus metus vivamus imperdiet natoque praesent.
Est maecenas magnis commodo maximus semper tortor. Eget massa nec tellus praesent posuere potenti dictum per. Vel habitant senectus leo torquent, ligula eget vestibulum nam aenean. Mauris praesent curabitur ligula finibus sollicitudin vestibulum aliquam pellentesque. Libero habitasse aptent magnis donec parturient accumsan nisi turpis varius. Vehicula ultricies auctor amet, nisl ridiculus fames.
<nowiki>
will output to:
| Destiny @TheOmniLiberal |
|
| WOOOOOAH LOOK AT MEEEE LOOK AT MEE LOOK AT MEEEE AAAAAAAAAAAAH THIS IS EXAMPLE TEST PLEASE HELP ME ADD MORE WORDS TO THE BODY AAAAAAAAA | |
| 12:34 AM CST · Mar 19, 2024 | |
Lorem ipsum odor amet, consectetuer adipiscing elit. Senectus facilisis imperdiet quam tempor scelerisque mi. Netus primis tempus lectus ad vestibulum elementum. Rutrum sollicitudin curae laoreet ex dignissim tempus. Suspendisse consequat blandit torquent ipsum tincidunt? Eleifend ultricies venenatis venenatis tempor nisl consequat per at. Nunc aliquet natoque urna integer libero. Aliquam aliquam blandit elementum penatibus metus vivamus imperdiet natoque praesent.
Est maecenas magnis commodo maximus semper tortor. Eget massa nec tellus praesent posuere potenti dictum per. Vel habitant senectus leo torquent, ligula eget vestibulum nam aenean. Mauris praesent curabitur ligula finibus sollicitudin vestibulum aliquam pellentesque. Libero habitasse aptent magnis donec parturient accumsan nisi turpis varius. Vehicula ultricies auctor amet, nisl ridiculus fames.
Community Note spoof
An additional template, {{Tweetcomnote}} can be used to spoof a community note on a tweet in a similar manner to the tweet template.
Useage
{{tweetcomnote
| body =
}}
Additionally, this template supports two additional parameters (width and float) that should not be used, as they are legacy hold overs from the parent template, {{tweet}}.
Example
{{Tweet
|pfp =
|username = DGG Superfan
|@ = DGG Superfan12415
|body = Destiny is an advocate for peace in the Middle East.
{{tweetcomnote
| body = Destiny is actually an advocate for peas in the Middle East.
}}
|time =
|date =
|float =
|width =
|source = https://old.destiny.gg/
}}
produces
| DGG Superfan @DGG_Superfan12415 |
|
| Destiny is an advocate for peace in the Middle East. | |
| SOURCE · | |