Difference between revisions of "Template:FAQ2/doc"

From blackwiki
Jump to navigation Jump to search
imported>Magioladitis
(updated hatnote per bot request)
imported>Frietjes
 
Line 1: Line 1:
{{Documentation subpage}}
+
#REDIRECT [[Template:FAQ/doc]]
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
{{R from merge}}
This template is used to create a list of frequently asked questions with collapsed answers.
 
 
 
=== Usage ===
 
* {{para|heading|no}}; if set to no, then the edit link, question mark image and header text are suppressed; this is useful when stacking multiple templates
 
 
 
* {{para|title|title text}}; defaults to Frequently Asked Questions
 
 
 
* {{para|header|header text}}; defaults as shown above
 
 
 
* {{para|q1|question 1}}
 
:thru
 
: {{para|q20|question 20}}
 
 
 
* {{para|a1|answer 1}}
 
:thru
 
: {{para|a20|answer 20}}
 
 
 
=== Creating the FAQ page ===
 
The best practice is to create the FAQ as a subpage of an article talk page, such as Talk:Foo/FAQ. The subpage can be created and preloaded by:
 
 
 
<!--- Working on this method, commented out for now
 
<inputbox>
 
break=no
 
type=create
 
default=Talk:articletitle/FAQ
 
buttonlabel=Create
 
preload=Template:FAQ2/Preload
 
</inputbox>--->
 
* Edit the main talk page or any section
 
* Insert {{tl|FAQ2/c}} anywhere
 
* Click on Preview
 
* Click on Create FAQ
 
* The FAQ subpage will open in edit mode with the preloaded template
 
* Fill in the template and Save
 
* Browse back to the main talk page and include the FAQ by adding <nowiki>{{/FAQ}}</nowiki>
 
 
 
If the /FAQ page already exists, it will be opened for editing but not preloaded. The preload code at [[Template:FAQ2/Preload]] can be copied and pasted as needed.
 
 
 
=== Examples ===
 
;Simple FAQ
 
<pre>{{FAQ2
 
|q1=Question 1
 
|a1=Answer 1
 
|q2=Question 2
 
|a2=Answer 2
 
}}</pre>
 
 
 
{{FAQ2
 
|q1=Question 1
 
|a1=Answer 1
 
|q2=Question 2
 
|a2=Answer 2
 
}}
 
 
 
;Stacking FAQs:
 
Questions can be separated into sections by using multiple instances of the template:
 
 
 
<pre>{{FAQ2}}
 
 
 
{{FAQ2
 
|heading=no
 
|title=First set of questions
 
|q1=Question 1
 
|a1=Answer 1
 
|q2=Question 2
 
|a2=Answer 2
 
}}
 
{{FAQ2
 
|heading=no
 
|title=Second set of questions
 
|q1=Question 1
 
|a1=Answer 1
 
|q2=Question 2
 
|a2=Answer 2
 
}}</pre>
 
 
 
{{FAQ2}}
 
 
 
{{FAQ2
 
|heading=no
 
|title=First set of questions
 
|q1=Question 1
 
|a1=Answer 1
 
|q2=Question 2
 
|a2=Answer 2
 
}}
 
{{FAQ2
 
|heading=no
 
|title=Second set of questions
 
|q1=Question 1
 
|a1=Answer 1
 
|q2=Question 2
 
|a2=Answer 2
 
}}
 
 
 
=== Questions and answers ===
 
Questions should directly address issues discussed on the article talk page or elsewhere. Answers may include:
 
* Issues that have be resolved by consensus
 
* Issues that may be unresolved
 
* Direct links to discussions, including archives
 
* Links to applicable Wikipedia policies and guidelines; {{tl|further2}} and {{tl|see}} may be used
 
* Links to other policies, guidelines or rules
 
* Referenced quotes from the applicable policies, guidelines or rules
 
* Where editors should discuss these issues
 
 
 
 
 
=== See also ===
 
{{FAQ templates see also}}
 
 
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Talk header templates]]
 
</includeonly>
 

Latest revision as of 18:40, 28 September 2016

Redirect to:

  • From a merge: This is a redirect from a page that was merged into another page. This redirect was kept in order to preserve this page's edit history after its content was merged into the target page's content. Please do not remove the tag that generates this text (unless the need to recreate content on this page has been demonstrated) or delete this page.