User:锦年、/sandbox2:修订间差异

来自Arcaea中文维基
无编辑摘要
(清空页面)
标签清空
第1行: 第1行:
<includeonly>{{#switch:{{{1}}}
 
|nico
|tudou
|youtube
|youku =
  {{#ev:{{{1}}}
  | {{{2|{{{id|}}} }}}
  |{{#if: {{{3|}}}{{{dimensions|}}} | {{{3|}}}{{{dimensions|}}} | 600x421 }}
  |{{#if: {{{4|}}}{{{alignment|}}} | {{{4|}}}{{{alignment|}}} }}
  |{{#if: {{{5|}}}{{{description|}}} | {{{5|}}}{{{description|}}} }}
  |{{#if: {{{6|}}}{{{container|}}} | {{{6|}}}{{{container|}}} }}
  |{{#if: {{{7|}}}{{{urlargs|}}} | {{{7|}}}{{{urlargs|}}} }}
  }}
|bilibili =
  {{#vardefine:height|421}}{{#vardefine:width|600}}
  {{#if: {{{3|}}}{{{dimensions|}}} |
{{#if: {{#vardefineecho:dis | {{#pos:{{{3|}}}{{{dimensions|}}} | x }} }}
| {{#ifexpr:{{#var:dis}} = 0
| {{#vardefine:height|{{#sub: {{{3|}}}{{{dimensions|}}} | 1 }} }}
| {{#vardefine:height|{{#sub: {{{3|}}}{{{dimensions|}}} | {{#expr: {{#var:dis}} + 1 }} }} }} {{#vardefine:width|{{#sub: {{{3|}}}{{{dimensions|}}} | 0 | {{#var:dis}} }} }}
}}
| {{#vardefine:width|{{{3|}}}{{{dimensions|}}} }}
}}
  }}
  <div class="embedvideo {{#if:{{{4|}}}{{{alignment|}}}|ev_{{{4|}}}{{{alignment|}}}}}" style="width: {{#var:width}}px;"><!--
-->{{#User:锦年、/sandbox1
  |id={{#if: {{#pos: {{{2|{{{id|}}}}}} | av }}{{#pos: {{{2|{{{id|}}}}}} | BV }} | {{{2|{{{id|}}}}}} | BV{{{2|{{{id|}}}}}} }}
  |dimension=height={{#var:height}} width={{#var:width}}
  }}</div>[[Category:Bilibili视频]]
|#default =
  <div class="errorbox">无法识别视频来源“{{{1}}}”。</div>
}}</includeonly><noinclude>{{Documentation}}</noinclude>

2022年3月9日 (三) 00:39的版本