Template:XVideo: Difference between revisions

From WMDRock Library
(Trying to embed X videos)
 
No edit summary
Line 2: Line 2:
<div style="width:{{{width|100%}}}"><div class="videoWrapper">
<div style="width:{{{width|100%}}}"><div class="videoWrapper">
<blockquote class="twitter-tweet" data-media-max-width="560">
<blockquote class="twitter-tweet" data-media-max-width="560">
<p lang="en" dir="ltr">{{{text|Video content from X}}} <a href="{{{url|https://t.co/GErNfVl7mI}}}">{{{shorturl|pic.twitter.com/GErNfVl7mI}}}</a></p>
<p lang="en" dir="ltr">{{{text|Video content from X}}} <a href="https://x.com/{{{xcode|}}}"></a></p>
— {{{author|WMD Rock (@WMDRock)}}} <a href="{{{permalink|https://twitter.com/WMDRock/status/1887433280649154680?ref_src=twsrc%5Etfw}}}">{{{date|February 6, 2025}}}</a>
— {{{author|WMD Rock (@WMDRock)}}} <a href="https://x.com/{{{permalink|https://twitter.com/WMDRock/status/1887433280649154680?ref_src=twsrc%5Etfw}}}">{{{date|February 6, 2025}}}</a>
</blockquote>
</blockquote>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
Line 13: Line 13:
<pre>
<pre>
{{XVideo
{{XVideo
|text = Tweet text (e.g., "Every wondered who Mohammed was? Here's a short musical biography.")
|xcode = X url part eg. WMDRock/status/1887433280649154680
|url = Full URL of the media (e.g., "https://t.co/GErNfVl7mI")
|shorturl = Shortened URL in the tweet (e.g., "pic.twitter.com/GErNfVl7mI")
|author = Author name and handle (e.g., "WMD Rock (@WMDRock)")
|permalink = Full permalink to the tweet (e.g., "https://twitter.com/WMDRock/status/1887433280649154680?ref_src=twsrc%5Etfw")
|date = Date of the tweet (e.g., "February 6, 2025")
|width = Percentage of space (default 100%)
|width = Percentage of space (default 100%)
|text = Optional description
|author = Optional [WMD Rock (@WMDRock)
}}
}}
</pre>
</pre>

Revision as of 09:22, 23 February 2025

==Usage== Include the following text to use the template:
{{XVideo
|xcode = X url part eg. WMDRock/status/1887433280649154680
|width = Percentage of space (default 100%)
|text = Optional description
|author = Optional [WMD Rock (@WMDRock)
}}
[[Category:Video Templates]]