Difference between revisions of "Template:FAQ group begin/doc"

From blackwiki
Jump to navigation Jump to search
imported>ChyranandChloe
m (grammer; fix; code;)
imported>ChyranandChloe
m (hide= not show=; minor copyedit)
Line 23: Line 23:
 
</pre>
 
</pre>
  
<div style="background:#fff; border:1px solid #ddd; padding:5px; margin-top:4px;">
+
<div style="background:#fff; border:1px solid #ddd; padding:10px; margin-top:4px;">
 
{{FAQ group begin|header=some text here}}
 
{{FAQ group begin|header=some text here}}
  
Line 36: Line 36:
  
 
<pre>
 
<pre>
{{FAQ group begin|header=some text here|show=yes}}
+
{{FAQ group begin|header=some text here|hide=yes}}
  
 
some filler text...
 
some filler text...
Line 43: Line 43:
 
</pre>
 
</pre>
  
<div style="background:#fff; border:1px solid #ddd; padding:5px; margin-top:4px;">
+
<div style="background:#fff; border:1px solid #ddd; padding:10px; margin-top:4px;">
{{FAQ group begin|header=some text here|show=yes}}
+
{{FAQ group begin|header=some text here|hide=yes}}
  
 
{{Lorem ipsum}}
 
{{Lorem ipsum}}
Line 62: Line 62:
 
}}
 
}}
 
{{FAQ row2
 
{{FAQ row2
|q=Q2: Q2: The article refers to him as...
+
|q=Q2: The article refers to him as...
 
|a='''A2''': the answer...
 
|a='''A2''': the answer...
 
}}
 
}}
Line 68: Line 68:
 
</pre>
 
</pre>
  
<div style="background:#fff; border:1px solid #ddd; padding:5px; margin-top:4px;">
+
<div style="background:#fff; border:1px solid #ddd; padding:10px; margin-top:4px;">
 
{{FAQ group begin|header=Family and religious background|show=yes}}
 
{{FAQ group begin|header=Family and religious background|show=yes}}
 
{{FAQ row2
 
{{FAQ row2

Revision as of 02:57, 7 August 2009

This template is used to group FAQ questions and answers. This template is used together with:

This template is usually used with Template:FAQ row, which contains the question and answer.

Parameters

{{FAQ group end}} has no parameters. {{FAQ group begin}} has two parameters: header, and hide.

header

The parameter header controls the text displayed at the top of the group.

{{FAQ group begin|header=some text here}}

some filler text...

{{FAQ group end}}
some text here

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

hide

The parameter show is optional. The default is "show", to change the default so the contents are hidden pass a "yes" into the "show" parameter.

{{FAQ group begin|header=some text here|hide=yes}}

some filler text...

{{FAQ group end}}
some text here

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Example

This template is often used with Template:FAQ row to provide a complete picture of its use.

{{FAQ group begin|header=Family and religious background|show=yes}}
{{FAQ row2
|q=Q1: Why isn't...
|a='''A1''': the answer...
}}
{{FAQ row2
|q=Q2: The article refers to him as...
|a='''A2''': the answer...
}}
{{FAQ group end}}
Family and religious background

See also

Similar templates: