Template:FAQ: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Expand FAQ box to full width but don't flow over floating elements) |
||
Line 9: | Line 9: | ||
{{#if:{{{source|}}} | | {{#if:{{{source|}}} | | ||
{{#if:{{{reference|}}} | | {{#if:{{{reference|}}} | | ||
<div style="margin-bottom:5px; background-color:lightgrey; padding:5px; border-top-left-radius:10px; border-top-right-radius:10px; border-bottom-right-radius:10px; border-bottom-left-radius:10px;min-width:270px;overflow:hidden;"> | |||
{{{!}} style="width:100%" | |||
{{!}} align="left" colspan="2" {{!}} '''{{{question|}}}''' | {{!}} align="left" colspan="2" {{!}} '''{{{question|}}}''' | ||
{{!}}- | {{!}}- | ||
Line 18: | Line 19: | ||
{{!}}- | {{!}}- | ||
{{!}}} | {{!}}} | ||
</div> | |||
}} | }} | ||
}} | }} | ||
}} | }} | ||
}}</includeonly><noinclude>{{documentation}}</noinclude> | }}</includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 14:46, 6 April 2017
Template documentation (for the above template, sometimes hidden or invisible)
Description
- This template is not intended to be used directly. It provides the formatting for FAQ entries.
- Please use the Templates: UFAQ or OFAQ
Syntax
All parameters are required. The FAQ box will not be drawn if at least one of these parameters is missing.
{{FAQ |question = <mandatory> The question. |answer = <mandatory> The answer to the question. |source = <mandatory> A link where the answer is from. |reference = <mandatory> Who gave the answer. |icon = <optional> The icon which is shown on the left side. Defaults to the descent D. }}
Visit Template:FAQ/doc to edit this text! (How does this work?)