“模板:折叠”的版本间的差异
跳到导航
跳到搜索
BlackWhite(讨论 | 贡献) (建立内容为“<noinclude> {{#template_params:}} </noinclude><includeonly>{| class="wikitable" |} </includeonly>”的新页面) |
BlackWhite(讨论 | 贡献) |
||
第1行: | 第1行: | ||
<noinclude> | <noinclude> | ||
− | {{#template_params:}} | + | {{#template_params:bt1|nr1|bt2|nr2}} |
</noinclude><includeonly>{| class="wikitable" | </noinclude><includeonly>{| class="wikitable" | ||
|} | |} | ||
+ | |||
+ | <div class="accordion" id="accordion"> | ||
+ | <accordion parent="accordion" heading="{{{bt1}}}" class="show"> | ||
+ | {{{nr1}}} | ||
+ | </accordion> | ||
+ | {{#if:{{{#bt2|}}}|<accordion parent="accordion" heading="{{{bt2}}}"> | ||
+ | {{{nr2}}} | ||
+ | </accordion>}} | ||
+ | </div> | ||
+ | |||
</includeonly> | </includeonly> |
2021年12月16日 (四) 11:52的版本
这是“折叠”模板。调用它时应该采用如下格式:
{{折叠 |bt1= |nr1= |bt2= |nr2= }}
编辑页面以阅读模板文本。