模板:Codepen:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
无编辑摘要
Kangkk​(留言 | 贡献)
无编辑摘要
第1行: 第1行:
<tabs>{{#tab:name1/#1, name2/#2, etc|{{{name1|}}}|content 2|etc}}</tabs>
<noinclude>{{Documentation}}</noinclude><includeonly><div class="wiki-codepen">{{leftrightflex|
  <tabs>
    {{#if:{{{html|}}}|
      {{#tag:tab|{{#tag:syntaxhighlight|{{{html|}}}|lang=html}}|name='html'}}|}}
    {{#if:{{{style|}}}|
      {{#tag:tab|{{#tag:syntaxhighlight|{{{style|}}}|lang=css}}|name='style'}}|}}
    {{#if:{{{script|}}}|
      {{#tag:tab|{{#tag:syntaxhighlight|{{{script|}}}|lang=javascript}}|name='script'}}|}}
  </tabs>
  |{{#tag:html|
    {{#tag:iframe|
      {{#if:{{{html|}}}|
        {{{html|}}}|}}
      {{#if:{{{style|}}}|
        {{#tag:style|{{{style|}}}|type=text\/css}}|}}
      {{#if:{{{script|}}}|
        {{#tag:script|{{{script|}}}|type=text\/javascript}}|}}
      |class=wiki-codepen-iframe}}
    |class=wiki-codepen-preview}}
  }}</div></includeonly>