Permanently protected template

Template:FAQ

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Frequently asked questions (FAQ)
Q:
A:
Template documentation[view] [edit] [history] [purge]

Usage

To create an FAQ sub-page (on which you will write your series of questions and answers) begin by placing the FAQ template on the top of the page. To do this, edit the page and on the top place some version of the following text:
{{FAQ}}
produces the standard heading

Frequently asked questions (FAQ)
Q:
A:

Any questions and answers that are eventually placed on the FAQ sub-page will not actually appear until the reader clicks on the "show" button.

If you wish for your FAQ to refer to the FAQ of some other page (which may be useful if the same questions arise on on different but closely related pages and you don't want to make a different FAQ page for each) you can use the "page" parameter to refer to that page as in this example for the talk page of the article Anita Sarkeesian:
{{FAQ|page=Talk:Anita Sarkeesian/FAQ}}
which will produce the similar heading

Frequently asked questions (FAQ)
Information.svg To view an answer, click the [show] link to the right of the question.

which is visually identical to the use of the {{FAQ}} template but "shows" the reader the FAQ for a different page.

If you wish for readers to be aware of the existence of another FAQ page but not use that page for your own FAQ you can add the parameter "see also" which will add the text "see also" and a link to that other page, as in this example which allows the reader to also view the FAQ page for all of Wikipedia (note that the use of the "see also" parameter requires that the page it refers to be enclosed in double brackets to create the actual link):

{{FAQ|see also=[[Wikipedia:FAQ]]}}
which produces this heading:

Frequently asked questions (FAQ) (see also: Wikipedia:FAQ)
Q:
A:

You may wish to specify whether the list of questions and answers is to be shown to readers as collapsed or expanded. To override any default settings you can add the "collapsed" parameter and indicate its value as either "no" or "yes". The default setting for this parameter is "yes".
{{FAQ|collapsed=yes}}
which produces the heading

Or you can specify that the FAQ list should not be collapsed by setting "collapsed" to "no" like this:

{{FAQ|collapsed=no}}
which will produce a heading like this one, with all of the questions and answers displayed as bold Qs and As:

Frequently asked questions (FAQ)
Q:
A:

You can see that in each of the preceding examples the word "edit" appears as blue linked text on the left of the heading next to the large blue question mark. This link allows readers to quickly edit the questions and answers themselves. If you wish for readers to actually visit the FAQ page itself before editing its contents you can set the "quickedit" parameter of the template to "no" (the default setting is "yes") as in this example:
{{FAQ|quickedit=no}}
which will produce a heading that looks like this:

Frequently asked questions (FAQ)
Q:
A:

You may also wish for your FAQ heading to appear as a small box on the right side of the page rather than as a large heading across the top of it. To do this, you can set the "small" parameter of the template to "yes" (the default setting is "no") as in the following example:
{{FAQ|small=yes}}
which will produce a smaller heading like this:

FAQ
Q:
A:

When an FAQ appears on a talk page, the banner has a different color (light tan) than when it appears elsewhere (light blue). This helps readers distinguish what kind of FAQ page they are reading. Here is what the banner looks like on a talk page:

Frequently asked questions (FAQ)
Q:
A:

You may place the various parameters of the template in any order, or you may omit any or all of them-- the template will work regardless, so long as you separate each parameter by a pipe (|) and enclose the template with double curly brackets at the beginning and end.

To actually create your list of questions and answers, you should place the {{FAQ}} template on the page for which you are going to create an FAQ list along with any of the parameters mentioned above and then click "Save". You will see that the page now has an FAQ banner across the top. To get to the as-yet-to-be-created FAQ sub-page click on the "edit" link in the FAQ banner (or the "faq page" link, if you set "quickedit" to "no"). For an example of a functioning FAQ section on a talk page, consider visiting Talk:Tao: the talk page has a FAQ section at the top which can be used as a model.

Section headings

Section headings should not normally be used within the FAQ template since they will show in the table of contents of the page where the FAQ template is transcluded. A way around this is to use markup like the following: <includeonly>;</includeonly><noinclude>==</noinclude>Heading name<noinclude>==</noinclude>, on a line by itself. On the /FAQ content page itself, when not transcluded, it will have navigable headings as if it were a line reading ==Heading name==. When transcluded into the FAQ template (or elsewhere), it will have bold pseudo-headings, as if it were a line reading ;Heading name. (This is a useful trick for long {{Todo}} lists, too.)

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

See the monthly error report for this template.

TemplateData for FAQ

This template creates an FAQ sub-page on an article page or talk page. The FAQ heading will appear on the top of the associated page before that page's content, and as it is a link to a sub-page, its content does not become archived at a later date (though it can always be removed, of course).

Template parameters

Parameter Description Type Status
page first parameter

The name of the page that the FAQ should actually show, if different from the page on which the template is used

Default
Example
Talk:Anita Sarkeesian/FAQ
Auto value
String optional
see also second parameter

A page which the reader may also wish to know about; if used, this will appear in the FAQ heading. Page name must be enclosed within double brackets

Default
Example
[[Wikipedia:FAQ]]
Auto value
String optional
collapsed third parameter

Determines whether or not to show the reader the list of FAQs before clicking on the Show button

Default
Example
no
Auto value
String optional
quickedit fourth parameter

If set to no, the reader will see linked text saying FAQ page on the left side of the header; if set to yes, the reader will see the linked word Edit

Default
Example
no
Auto value
String optional
small fifth parameter

If set to yes, the reader will see the FAQ header in a reduced box on the right side of the page; if set to no, the header will be full-size

Default
no
Example
yes
Auto value
String optional

See also

Similar templates: