模板:测试:修订间差异

(创建页面,内容为“<includeonly><div class="accordion" id="accordionExample"> <div class="accordion-item"> <div class="accordion-header"> <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne"> {{{标题1}}} </button> </div> <div id="collapseOne" class="accordion-collapse collapse show" data-bs-parent="#accordionExample"> <div class="accordion-b…”)
 
无编辑摘要
 
(未显示同一用户的16个中间版本)
第1行: 第1行:
<includeonly><div class="accordion" id="accordionExample">
<includeonly>{{#ifeq:{{{1|}}}|开始|<div class="accordion accordion-flush" id="accordion-{{{主框|1}}}">}}{{#ifeq:{{{1}}}|结束|</div>}}{{#ifeq:{{{1}}}|内容结束|</div></div></div>}}{{#if:{{{标题|}}}|<div class="accordion-item"><div class="accordion-header"><div class="accordion-button collapsed" data-bs-toggle="collapse" data-bs-target="#flush-collapse{{{选项|1}}}" aria-expanded="false" aria-controls="flush-collapse{{{选项|1}}}">{{{标题}}}</div></div><div id="flush-collapse{{{选项|1}}}" class="accordion-collapse collapse {{#if:{{{展开|}}}|show}}" data-bs-parent="#accordion-{{{主框|1}}}"><div class="accordion-body">}}</includeonly><includeonly>{{#css:.accordion{ margin-bottom: 20px}.accordion .accordion-item{ position: relative;margin-bottom: 2px;font-size: 1rem;}.accordion .accordion-header{ font-weight: bold; color: #915d2e; background: #dfcdad;}.accordion .accordion-button:not(.collapsed){color: #915d2e;}.accordion .accordion-button{ background-color: #dfcdad !important; color: #915d2e;}.accordion-body{ color: #666; background: #fbf9f1;  }.accordion-body p { line-height: 1.6;}}
  <div class="accordion-item">
</includeonly><noinclude>
    <div class="accordion-header">
{{信息
      <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
|class=success
        {{{标题1}}}
|text=如果是第一次来,按"Ctrl+D"可以收藏随时查看更新~觉得WIKI好玩的话,请推荐给朋友哦~(◕ω<)☆<br>
      </button>
按右上角“WIKI功能→编辑”即可修改页面内容。
    </div>
|leftimage=thumbs-up
    <div id="collapseOne" class="accordion-collapse collapse show" data-bs-parent="#accordionExample">
|color=#3c763d
      <div class="accordion-body">
}}
      {{{内容1}}}
{{测试|模板}}[[分类:模板]]{{模板说明}}</noinclude>
      </div>
    </div>
  </div>
  <div class="accordion-item">
    <div class="accordion-header">
      <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
        {{{标题2}}}
      </button>
    </div>
    <div id="collapseTwo" class="accordion-collapse collapse" data-bs-parent="#accordionExample">
      <div class="accordion-body">
      {{{内容2}}}
      </div>
    </div>
  </div>
  <div class="accordion-item">
    <div class="accordion-header">
      <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
        {{{标题2}}}
      </button>
    </div>
    <div id="collapseThree" class="accordion-collapse collapse" data-bs-parent="#accordionExample">
      <div class="accordion-body">
        {{{内容3}}}
      </div>
    </div>
  </div>
</div></includeonly>

2024年5月30日 (四) 15:45的最新版本

模板:[刷新此页面] [编辑] [页面历史]
文档:[查看] [编辑] [页面历史]

说明文档

使用方法

范例

{{测试|开始|主框=1}}
{{测试|标题=测试标题1|选项=1|主框=1|展开=是}}
测试内容
{{测试|内容结束}}
{{测试|标题=测试标题2|选项=2|主框=1}}
测试内容
{{测试|内容结束}}
{{测试|结束}}

运行结果

测试内容

测试内容


所有模板列表