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

From blackwiki
Jump to navigation Jump to search
(update)
(update)
Line 7: Line 7:
  
 
There are three main features:
 
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>".
+
# "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#Q2]]". Follows the pattern "#Q<span style="color:#888;">{index}</span>".
 
# "q", stands for question
 
# "q", stands for question
 
# "a", stands for answer
 
# "a", stands for answer
Line 19: Line 19:
 
</pre>
 
</pre>
  
<div style="background:#fff; padding:10px; border:1px dashed #555;">
+
<div style="background:#fff; padding:10px; border:1px dashed #888;">
 
{{FAQ row
 
{{FAQ row
 
|index=1
 
|index=1
Line 40: Line 40:
 
</pre>
 
</pre>
  
<div style="background:#fff; padding:10px; border:1px dashed #555;">
+
<div style="background:#fff; padding:10px; border:1px dashed #888;">
 
{{FAQ row
 
{{FAQ row
 
|show=yes
 
|show=yes

Revision as of 06:20, 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#Q2". Follows the pattern "#Q{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: