Difference between revisions of "Template:FAQ"

From Waveshare Wiki
Jump to: navigation, search
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{|style="width:{{{width|auto}}};"
+
<div class="panel-group" >
|
+
<accordion parent="accordion"  heading="'''Question:'''{{{1}}}" class="in">
{|class="roundy bd-green bg-green bw-2 mw-collapsible {{#if: {{{collapsed|}}}|mw-collapsed|}} at-c fulltable" style="table-layout:fixed;width:{{{width|100%}}};margin-bottom:3px;margin:5px;"
+
<div>&nbsp;'''Answer:'''</div>
|class="roundytl roundytr bgwhite at-l bw-2" style="margin:auto;"|
+
<div {{#if: {{{2|}}}||style="display:none;"}}>{{{2}}}</div>
'''Q: '''{{{1}}}
+
<div {{#if: {{{3|}}}||style="display:none;"}}>{{{3}}}</div>
|-
+
<div {{#if: {{{4|}}}||style="display:none;"}}>{{{4}}}</div>
|class="roundybl roundybr bgwhite at-l bw-2" style="margin:auto;"|
+
<font color="red"{{#if: {{{5|}}}||style="display:none;"}}>{{{5}}}</font>
'''A: '''{{{2}}}
+
</accordion>
|}
+
</div>
|}
+
 
 +
<noinclude>
 +
== Usage ==
 +
 
 +
<nowiki>{{FAQ1|我是问题1?
 +
|第一段
 +
|第二段
 +
|第三段
 +
|第四段(红字)
 +
}}</nowiki>
 +
 
 +
</noinclude>

Latest revision as of 01:59, 27 April 2022

 Answer:
{{{2}}}
{{{3}}}
{{{4}}}

{{{5}}}


Usage

{{FAQ1|我是问题1? |第一段 |第二段 |第三段 |第四段(红字) }}