Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Tweet/doc: Difference between revisions

Template page
Added pfp documentation and improved example
update parameters
Line 11: Line 11:
|time      =
|time      =
|date      =
|date      =
|float      =
|width      =
}}</pre>
}}</pre>


== Parameters ==
== Parameters ==
{| class="wikitable"
<templatedata>
|-
{
! Parameter || Description || Type|| Status
"params": {
|-
"float": {},
| 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 wikilink double brackets. || content || required
"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.",
| username|| Username of the person making the Tweet. || content || required
"example": "100%, 50px, 100em",
|-
"suggested": true
| @|| @Tag of the person making the tweet. Do not include the "@". || content || required
},
|-
"pfp": {
| body|| Example || content || required
"description": "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.",
|-
"example": "[[File:Embedprofile.png]]",
| time|| Example || content || required
"type": "wiki-file-name",
|-
"suggested": true
| date|| Example || content || required
},
|}
"username": {
"description": "Username of individual at time of tweet or as it is currently displayed if the tweet still exists.",
"example": "The OmniLiberal, Destiny, Dan Saltman",
"type": "content",
"required": true
},
"@": {
"description": "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.",
"example": "TheOmniLiberal",
"type": "content",
"required": true
},
"body": {
"description": "Content of the tweet.",
"example": "I'm not sure how I would feel if I hadn't eaten breakfast this morning.",
"type": "content",
"required": true
},
"time": {
"description": "Time tweet was made. Display in whatever time is available and add time zone. Might become optional in future.",
"example": "12:34 AM EST",
"type": "content",
"required": true
},
"date": {
"description": "Date tweet was posted. Fill with whatever format source of tweet displayed.",
"type": "date",
"required": true
}
},
"paramOrder": [
"pfp",
"username",
"@",
"body",
"time",
"date",
"width",
"float"
]
}
</templatedata>


== Examples ==
== Examples ==

Revision as of 16:40, 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.

Template parameters

ParameterDescriptionTypeStatus
pfppfp

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.

Example
[[File:Embedprofile.png]]
Filesuggested
usernameusername

Username of individual at time of tweet or as it is currently displayed if the tweet still exists.

Example
The OmniLiberal, Destiny, Dan Saltman
Contentrequired
@@

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.

Example
TheOmniLiberal
Contentrequired
bodybody

Content of the tweet.

Example
I'm not sure how I would feel if I hadn't eaten breakfast this morning.
Contentrequired
timetime

Time tweet was made. Display in whatever time is available and add time zone. Might become optional in future.

Example
12:34 AM EST
Contentrequired
datedate

Date tweet was posted. Fill with whatever format source of tweet displayed.

Daterequired
widthwidth

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.

Example
100%, 50px, 100em
Unknownsuggested
floatfloat

no description

Unknownoptional

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