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

From blackwiki
Jump to navigation Jump to search
imported>Gadget850
(→‎See also: {{FAQ templates see also}})
imported>ChyranandChloe
(updating docs)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
  
=== Usage ===
+
Use this template on FAQ subpages.
<code><nowiki>{{</nowiki>FAQ row
 
  
|q=This is some question text...
+
== Parameters ==
 +
=== Use ===
  
|a=This is some answer text...
+
<pre>
 +
{{FAQ row2
 +
|q=This is some question text...
 +
|a=This is some answer text...
 +
}}
 +
</pre>
  
<nowiki>}}</nowiki></code>
+
{{FAQ row2
 +
|q=This is some question text...
 +
|a=This is some answer text...
 +
}}
  
Yields:
+
===Show===
  
{{FAQ row|q=This is some question text...|a=This is some answer text...}}
+
The box defaults to hide the answer text, to override this add the attribute "show=yes".
  
=== Combining with [[Template:FAQ]] ===
+
<pre>
Since {{tlx|FAQ}} transcludes from a /FAQ subpage, {{tlx|FAQ row}} should be used on the subpage.
+
{{FAQ row2
 +
|show=yes
 +
|q=This is some question text...
 +
|a=This is some answer text...
 +
}}
 +
</pre>
 +
 
 +
{{FAQ row2
 +
|show=yes
 +
|q=This is some question text...
 +
|a=This is some answer text...
 +
}}
 +
 
 +
== See also ==
  
=== See also ===
 
 
{{FAQ templates see also}}
 
{{FAQ templates see also}}
  

Revision as of 19:13, 20 September 2009

Use this template on FAQ subpages.

Parameters

Use

{{FAQ row2
|q=This is some question text...
|a=This is some answer text...
}}

Template:FAQ row2

Show

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

{{FAQ row2
|show=yes
|q=This is some question text...
|a=This is some answer text...
}}

Template:FAQ row2

See also

Similar templates: