Difference between revisions of "Template:FAQ row"

From blackwiki
Jump to navigation Jump to search
imported>ChyranandChloe
m (small tweak, background transparent)
imported>ChyranandChloe
m (Reverted edits by ChyranandChloe (talk) to last version by Slakr)
Line 1: Line 1:
<div class="NavFrame" style="background:transparent; border:none; margin:0px; padding:2px 0px 2px 0px;">
+
{{Navbox
<div class="NavHead" style="height:auto; background:#fdefbf; border:1px solid #e8daaa; margin:0px; padding:2px 35px 2px 2px; font-weight:bold; text-align:left;">{{{q|}}}</div>
+
|name={{{q|Q:}}}
<div class="NavContent" style="background:#fdefbf; border-left:2px solid #e8daaa; margin:2px 0px 2px 15px; padding:2px; font-weight:normal; text-align:left;{{#ifeq:{{{show|}}}|yes|| display:none;}}">{{{a|}}}</div></div>
+
|title={{bullet}} {{{q|Q:}}}
<noinclude>{{documentation}}</noinclude>
+
|titlestyle=text-align:left;background:#F8EABA;
 +
|navbar=off
 +
|border=none
 +
|state=collapsed
 +
|style=padding-bottom:2px;
 +
|list1={{{a|'''A:'''}}}
 +
}}<noinclude>{{documentation}}</noinclude>

Revision as of 19:19, 20 September 2009

Template documentation[view] [edit] [history] [purge]

Script error: No such module "Uses TemplateStyles". 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...
}}

Show

The box hides the answer on talk page and shows it on the /FAQ page. You may override this by adding "show=yes" so that the answer is always shown, or "show=no" so that the answer is always hidden.

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

See also

Similar templates: