Difference between revisions of "User:Tark/Sandbox"
m (Replaced content with "<div class="youtubebox ratio-{{{ratio|16x9}}} widths-{{{width|512}}}" style="margin:0.75em 0em;"><div class="embedvideo autoResize">{{#if: {{{align|}}}|<div class="embedvi...") (Tag: Replaced) |
m |
||
Line 4: | Line 4: | ||
=== Usage === | === Usage === | ||
− | * <code><nowiki>{{bilibili|710126347}}</nowiki></code> produces: {{ | + | * <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: {{ | + | * <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: {{ | + | * <code><nowiki>{{bilibili|96157214|danmaku=1}}</nowiki></code> produces: {{User:Tark/Sandbox|96157214|danmaku=1}} |
− | * <code><nowiki>{{bilibili|710381282|page=6}}</nowiki></code> produces: {{ | + | * <code><nowiki>{{bilibili|710381282|page=6}}</nowiki></code> produces: {{User:Tark/Sandbox|710381282|page=6}} |
=== Parameters === | === Parameters === |
Revision as of 15:33, 10 July 2023
Documentation for Tark/Sandbox
This template will embed a Bilibili video inside an article.
Usage
{{bilibili|710126347}}
produces:
Item infobox:
- Update
used-by
- Use
{{Used by}}
.used-by = [[Spy]]
/used-by = {{used by|Spy}}
/etc. should be changed toused-by = Spy
.- Figure out how to handle all-except.
- Use
- Update
item-kind
- Use
{{item name|item type {{{item-kind}}}}}
.
- Use
- Change
item-description
toyes
/no
values.- If yes, use the dictionary string.
- If, for some odd reason, the description can't be stored in the dictionary, use
item-description-override
to display a custom one.
- Update
unusual-effect
- Update
item-flags
- See this diff.
- Maybe keep the English text (e.g., "Not Tradable") instead of the attribute name (e.g., "CannotTrade") for readability.
- Update
att-n-[type]
WindBOT:
- Sync
used-by
- Sync
released
&released-major
.- If
released-major
is set, syncreleased
andreleased-major
. - If
released
is set to{{Patch name}}
, syncreleased
. - Otherwise, skip.
- If
- Sync
availability
{{avail}}
needs to be updated to handle single-use cases (e.g., Wiki Cap, Lo-Fi Longwave, others).
- Sync
item-kind
- Sync
item-description
- Sync
unusual-effect
- Sync
item-flags
- Sync
att-n-[type]
Note: "Sync" here means that when WindBOT is updating a translated page, e.g., Unusual Cap/ru, it should seek the values of the original template instead, as we assume the English page is the one which is up to date.
{{bilibili|21525619|Ready Up: Competitive Team Fortress 2 Documentary|width=512|height=320|align=center}}
produces:
Item infobox:
- Update
used-by
- Use
{{Used by}}
.used-by = [[Spy]]
/used-by = {{used by|Spy}}
/etc. should be changed toused-by = Spy
.- Figure out how to handle all-except.
- Use
- Update
item-kind
- Use
{{item name|item type {{{item-kind}}}}}
.
- Use
- Change
item-description
toyes
/no
values.- If yes, use the dictionary string.
- If, for some odd reason, the description can't be stored in the dictionary, use
item-description-override
to display a custom one.
- Update
unusual-effect
- Update
item-flags
- See this diff.
- Maybe keep the English text (e.g., "Not Tradable") instead of the attribute name (e.g., "CannotTrade") for readability.
- Update
att-n-[type]
WindBOT:
- Sync
used-by
- Sync
released
&released-major
.- If
released-major
is set, syncreleased
andreleased-major
. - If
released
is set to{{Patch name}}
, syncreleased
. - Otherwise, skip.
- If
- Sync
availability
{{avail}}
needs to be updated to handle single-use cases (e.g., Wiki Cap, Lo-Fi Longwave, others).
- Sync
item-kind
- Sync
item-description
- Sync
unusual-effect
- Sync
item-flags
- Sync
att-n-[type]
Note: "Sync" here means that when WindBOT is updating a translated page, e.g., Unusual Cap/ru, it should seek the values of the original template instead, as we assume the English page is the one which is up to date.
{{bilibili|96157214|danmaku=1}}
produces:
Item infobox:
- Update
used-by
- Use
{{Used by}}
.used-by = [[Spy]]
/used-by = {{used by|Spy}}
/etc. should be changed toused-by = Spy
.- Figure out how to handle all-except.
- Use
- Update
item-kind
- Use
{{item name|item type {{{item-kind}}}}}
.
- Use
- Change
item-description
toyes
/no
values.- If yes, use the dictionary string.
- If, for some odd reason, the description can't be stored in the dictionary, use
item-description-override
to display a custom one.
- Update
unusual-effect
- Update
item-flags
- See this diff.
- Maybe keep the English text (e.g., "Not Tradable") instead of the attribute name (e.g., "CannotTrade") for readability.
- Update
att-n-[type]
WindBOT:
- Sync
used-by
- Sync
released
&released-major
.- If
released-major
is set, syncreleased
andreleased-major
. - If
released
is set to{{Patch name}}
, syncreleased
. - Otherwise, skip.
- If
- Sync
availability
{{avail}}
needs to be updated to handle single-use cases (e.g., Wiki Cap, Lo-Fi Longwave, others).
- Sync
item-kind
- Sync
item-description
- Sync
unusual-effect
- Sync
item-flags
- Sync
att-n-[type]
Note: "Sync" here means that when WindBOT is updating a translated page, e.g., Unusual Cap/ru, it should seek the values of the original template instead, as we assume the English page is the one which is up to date.
{{bilibili|710381282|page=6}}
produces:
Item infobox:
- Update
used-by
- Use
{{Used by}}
.used-by = [[Spy]]
/used-by = {{used by|Spy}}
/etc. should be changed toused-by = Spy
.- Figure out how to handle all-except.
- Use
- Update
item-kind
- Use
{{item name|item type {{{item-kind}}}}}
.
- Use
- Change
item-description
toyes
/no
values.- If yes, use the dictionary string.
- If, for some odd reason, the description can't be stored in the dictionary, use
item-description-override
to display a custom one.
- Update
unusual-effect
- Update
item-flags
- See this diff.
- Maybe keep the English text (e.g., "Not Tradable") instead of the attribute name (e.g., "CannotTrade") for readability.
- Update
att-n-[type]
WindBOT:
- Sync
used-by
- Sync
released
&released-major
.- If
released-major
is set, syncreleased
andreleased-major
. - If
released
is set to{{Patch name}}
, syncreleased
. - Otherwise, skip.
- If
- Sync
availability
{{avail}}
needs to be updated to handle single-use cases (e.g., Wiki Cap, Lo-Fi Longwave, others).
- Sync
item-kind
- Sync
item-description
- Sync
unusual-effect
- Sync
item-flags
- Sync
att-n-[type]
Note: "Sync" here means that when WindBOT is updating a translated page, e.g., Unusual Cap/ru, it should seek the values of the original template instead, as we assume the English page is the one which is up to date.
Parameters
- Bilibili aid (required)
- This is the Bilibili video ID of the video you want to display.
- You can find this information by copying the iframe code and searching for the "aid" parameter or though the Web Interface ("bvid" can be found in the URL: https://www.bilibili.com/video/BV1mQ4y1M7Cn).
- Caption
- Custom caption to include.
width
- Width of the video, in pixels. Default is 640.
height
- Height of the video, in pixels. Default is 360.
align
- Horizontal alignment of video. Default is left.
danmaku
- Bullet screen/danmaku subtitles. Default is 0 (disabled).
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
{{bilibili tn}}