Difference between revisions of "Template:FAQ row/doc"

From blackwiki
Jump to navigation Jump to search
imported>ChyranandChloe
(FAQ row not FAQ row2)
(update)
Line 5: Line 5:
 
== Parameters ==
 
== Parameters ==
 
=== Use ===
 
=== Use ===
 +
 +
There are three main features:
 +
# "index", numbers a specific FAQ. You can link to each specific FAQ that has a unique index on a particular page. For example, to link to FAQ 2 for the Global warming FAQ page, "[[Talk:Global warming/FAQ#FAQ2]]". Follows the pattern "#FAQ<span style="color:#888;">{index}</span>".
 +
# "q", stands for question
 +
# "a", stands for answer
  
 
<pre>
 
<pre>
 
{{FAQ row
 
{{FAQ row
 +
|index=1
 
|q=This is some question text...
 
|q=This is some question text...
 
|a=This is some answer text...
 
|a=This is some answer text...
Line 13: Line 19:
 
</pre>
 
</pre>
  
 +
<div style="background:#fff; padding:10px; border:1px dashed #555;">
 
{{FAQ row
 
{{FAQ row
 +
|index=1
 
|q=This is some question text...
 
|q=This is some question text...
 
|a=This is some answer text...
 
|a=This is some answer text...
 
}}
 
}}
 +
</div>
  
 
===Show===
 
===Show===
  
The box defaults to hide the answer text, to override this add the attribute "show=yes".
+
The box defaults to hide the answer text, to override, add "show=yes".
  
 
<pre>
 
<pre>
 
{{FAQ row
 
{{FAQ row
 
|show=yes
 
|show=yes
 +
|index=2
 
|q=This is some question text...
 
|q=This is some question text...
 
|a=This is some answer text...
 
|a=This is some answer text...
Line 30: Line 40:
 
</pre>
 
</pre>
  
 +
<div style="background:#fff; padding:10px; border:1px dashed #555;">
 
{{FAQ row
 
{{FAQ row
 
|show=yes
 
|show=yes
 +
|index=2
 
|q=This is some question text...
 
|q=This is some question text...
 
|a=This is some answer text...
 
|a=This is some answer text...
 
}}
 
}}
 +
</div>
  
 
== See also ==
 
== See also ==

Revision as of 05:44, 5 January 2011

Use this template on FAQ subpages.

Parameters

Use

There are three main features:

  1. "index", numbers a specific FAQ. You can link to each specific FAQ that has a unique index on a particular page. For example, to link to FAQ 2 for the Global warming FAQ page, "Talk:Global warming/FAQ#FAQ2". Follows the pattern "#FAQ{index}".
  2. "q", stands for question
  3. "a", stands for answer
{{FAQ row
|index=1
|q=This is some question text...
|a=This is some answer text...
}}
Q1: This is some question text...
A1: This is some answer text...

Show

The box defaults to hide the answer text, to override, add "show=yes".

{{FAQ row
|show=yes
|index=2
|q=This is some question text...
|a=This is some answer text...
}}
Q2: This is some question text...
A2: This is some answer text...

See also

Similar templates: