Template:Tweet/doc: Difference between revisions
More actions
update parameters |
→Parameters: add float |
||
| Line 19: | Line 19: | ||
{ | { | ||
"params": { | "params": { | ||
"float": {}, | "float": { | ||
"description": "Specify either \"left\" or \"right\" to define alignment in article. \"Center\" is theoretically possible but untested. Defaults to \"right\".", | |||
"example": "left, right", | |||
"type": "boolean", | |||
"suggested": true | |||
}, | |||
"width": { | "width": { | ||
"description": "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.", | "description": "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.", | ||
Revision as of 16:42, 27 September 2024
Documentation for Template:Tweet
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 | |