微件:PlantInfo:修订间差异

来自PlantsVsZombies Mixed
跳转到导航 跳转到搜索
无编辑摘要
(撤销4573去讨论)的修订版本225
标签撤销
 
(未显示同一用户的12个中间版本)
第1行: 第1行:
<includeonly>
<includeonly>
<tabber>索敌范围=11111|-|雷暴区域范围=22222</tabber>
<table class="wikitable hlist logo" style="text-align:center; width:400px; white-space:normal;display:table;">
<table class="wikitable hlist logo" style="text-align:center; width:825px; white-space:normal;display:table;">
   <tr>
   <tr>
     <th colspan="8" width="100%"><!--{$name|escape:'html'}--></th>
     <th colspan="8" width="50%"><!--{$name|escape:'html'}--></th>
   </tr>
   </tr>
  <!--{if !$pic2}-->
   <tr>
   <tr>
     <td colspan="8" width="100%"><img src="<!--{$pic|escape:'html'}-->"/></td>
     <td colspan="8" width="50%"><img src="<!--{$pic|escape:'html'}-->"/></td>
   </tr>
   </tr>
  <!--{/if}-->
   <!--{if $pic2}-->
   <!--{if $pic2}-->
   <tr>
   <tr>
     <td colspan="8" width="100%">
     <td colspan="8" width="50%" id="tabber-container">
      <div id="tabberContainer"></div>
     </td>
     </td>
   </tr>
   </tr>
第17行: 第17行:
   <tr>
   <tr>
     <th colspan="2" width="25%">画师</th>
     <th colspan="2" width="25%">画师</th>
     <td colspan="6" width="75%"><!--{$painter|escape:'html'}--></td>
     <td colspan="6" width="25%"><!--{$painter|escape:'html'}--></td>
   </tr>
   </tr>
   <tr>
   <tr>
     <th colspan="2" width="25%">获取方式</th>
     <th colspan="2" width="25%">获取方式</th>
     <td colspan="6" width="75%"><!--{$acquirement|escape:'html'}--></td>
     <td colspan="6" width="25%"><!--{$acquirement|escape:'html'}--></td>
   </tr>
   </tr>
   <tr>
   <tr>
     <th colspan="2" width="25%">档案</th>
     <th colspan="2" width="25%">档案</th>
     <td colspan="6" width="75%"><!--{$text|escape:'html'}--></td>
     <td colspan="6" width="25%"><!--{$text|escape:'html'}--></td>
   </tr>
   </tr>
</table>
</table>
<!--{if $pic2}-->
<script>
<script type="text/javascript">
document.getElementById('tabber-container').innerHTML = '<tabber>1=1|-|2=2</tabber>';
$(document).ready(function() {
mw.loader.load('ext.tabber', function() {
    var pic1 = "<!--{$pic|escape:'javascript'}-->";
  document.getElementById('tabber-container').innerHTML = '<tabber>1=1|-|2=2</tabber>';
    var pic2 = "<!--{$pic2|escape:'javascript'}-->";
  $('#tabber-container .tabber').tabber();
    $.ajax( {
        url: mw.util.wikiScript( 'api' ),
        data: {
            action: 'parse',
            text: '<tabber>1技能=1|-|2技能=2</tabber>',
            contentmodel: 'wikitext',
            format: 'json'
        },
        dataType: 'json',
        type: 'POST',
        success: function( data ) {
            if ( data && data.parse && data.parse.text ) {
                var html = data.parse.text['*'];
                $( '#tabberContainer' ).html( html );
            }
        },
        error: function( xhr ) {
            console.error(xhr);
        }
    } );
});
});
</script>
</script>
<!--{/if}-->
</includeonly>
</includeonly>

2024年2月15日 (四) 02:07的最新版本