Difference between revisions of "User:Tark/Sandbox"

From Team Fortress Wiki
Jump to: navigation, search
m
m
 
(33 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="youtubebox ratio-{{{ratio|16x9}}} widths-{{{width|512}}}" style="margin:0.75em 0em;"><div class="embedvideo autoResize">{{#if: {{{align|}}}|<div class="embedvideowrap bilibili-videov2" data-vaid="{{#expr:{{{1|}}}}}" data-vdanmaku="{{#expr:{{{danmaku|0}}}}}" data-vpage="{{#expr:{{{page|1}}}}}" data-vwidth="{{#expr:{{{width|640}}}}}" data-vheight="{{#expr:{{{height|360}}}}}" style="text-align: {{{align|}}}"></div>|<div class="embedvideowrap bilibili-videov2" data-vaid="{{#expr:{{{1|}}}}}" data-vdanmaku="{{#expr:{{{danmaku|0}}}}}" data-vpage="{{#expr:{{{page|1}}}}}" data-vwidth="{{#expr:{{{width|640}}}}}" data-vheight="{{#expr:{{{height|360}}}}}"></div>}}</div>{{#if:{{{2|<noinclude>yes</noinclude>}}}| <br /><div>{{hatnote|1={{{2|Caption here.}}}}}}}</div><noinclude>
+
{{Quotation|uoohhhhhh|waaaaaaaaaaaaaaaaaa|sound=Medic hat taunts04.wav‎}}
{{Doc begin}}
 
This template will embed a Bilibili video inside an article.
 
  
=== Usage ===
+
[[Media:Medic hat taunts04.wav‎]]
* <code><nowiki>{{bilibili|710126347}}</nowiki></code> produces: {{User:Tark/Sandbox|710126347}}
 
* <code><nowiki>{{bilibili|21525619|Ready Up: Competitive Team Fortress 2 Documentary|width=512|height=320|align=center}}</nowiki></code> produces: {{User:Tark/Sandbox|21525619|Ready Up: Competitive Team Fortress 2 Documentary|width=512|height=320|align=center}}
 
* <code><nowiki>{{bilibili|96157214|danmaku=1}}</nowiki></code> produces: {{User:Tark/Sandbox|96157214|danmaku=1}}
 
* <code><nowiki>{{bilibili|710381282|page=6}}</nowiki></code> produces: {{User:Tark/Sandbox|710381282|page=6}}
 
  
=== Parameters ===
+
[[File:Medic hat taunts04.wav‎]]
; Bilibili aid (<span style="color: red">required</span>): This is the Bilibili video ID of the video you want to display.
 
:: You can find this information by [https://i.imgur.com/A4KY931.png copying the iframe code] and searching for the "aid" parameter or though the [https://api.bilibili.com/x/web-interface/view?bvid= Web Interface] ("bvid" can be found in the URL: <nowiki>https://www.bilibili.com/video/</nowiki><span style="color: red">BV1mQ4y1M7Cn</span>).
 
; Caption: Custom caption to include.
 
; {{code|width}}: Width of the video, in pixels. Default is '''640'''.
 
; {{code|height}}: Height of the video, in pixels. Default is '''360'''.
 
; {{code|align}}: Horizontal alignment of video. Default is '''left'''.
 
; {{code|danmaku}}: Bullet screen/danmaku subtitles. Default is '''0''' (disabled).
 
; {{code|page}}: Videos uploaded in a playlist format share the same ID, you can use this parameter to specify which video to display. Default is '''1''' (first video).
 
  
=== See also ===
 
* {{tl|bilibili tn}}
 
  
[[Category:Formatting templates|Bilibili]]
+
TODO: create [[Module:Major updates]]. Similar layout to [[Module:Map credits]] and [[Module:Map credits/data]]
</noinclude>
+
 
 +
Should output data to automatically update and replace the following:
 +
- https://wiki.teamfortress.com/wiki/Team_Fortress_2#External_links
 +
- https://wiki.teamfortress.com/wiki/Patches (Major updates, Seasonal updates, Content packs)
 +
- https://wiki.teamfortress.com/wiki/Template:Major_Updates_Nav
 +
 
 +
Why: easier to manage, keeps everything synchronized automatically and helps outdated language pages

Latest revision as of 12:47, 23 September 2024

waaaaaaaaaaaaaaaaaa
— uoohhhhhh

Media:Medic hat taunts04.wav‎


TODO: create Module:Major updates. Similar layout to Module:Map credits and Module:Map credits/data

Should output data to automatically update and replace the following: - https://wiki.teamfortress.com/wiki/Team_Fortress_2#External_links - https://wiki.teamfortress.com/wiki/Patches (Major updates, Seasonal updates, Content packs) - https://wiki.teamfortress.com/wiki/Template:Major_Updates_Nav

Why: easier to manage, keeps everything synchronized automatically and helps outdated language pages