Difference between revisions of "Template:FAQ"
Jump to navigation
Jump to search
Bumsakalaka (talk | contribs) |
Bumsakalaka (talk | contribs) |
||
Line 3: | Line 3: | ||
|1 | |1 | ||
|2 = wica-nesting-{{{nesting}}} | |2 = wica-nesting-{{{nesting}}} | ||
}} wica-top-spacing wica-bottom-spacing wica-visible}}}" style="width: {{{width|{{{3|400px}}}}}}; max-width: 100%;"> | }} wica-top-spacing wica-bottom-spacing wica-visible}}}" style="width: {{{width|{{{3|400px}}}}}} !important; max-width: 100%;"> | ||
<div style="background:#686868; padding:0px 10px 2px; border-radius: 10px 10px 0px 0px; border: 2px solid #686868;"> | <div style="background:#686868; padding:0px 10px 2px; border-radius: 10px 10px 0px 0px; border: 2px solid #686868;"> | ||
<span style="background-color: #ffffff; padding: 1px; border-radius: 5px; float: right; margin-left: 10px;"> {{IconBook}} </span><span style="color:#FFFFFF">'''<translate><!--T:1--> Question:</translate>''' {{{header|{{{title|}}}}}}{{{1|}}}</span> | <span style="background-color: #ffffff; padding: 1px; border-radius: 5px; float: right; margin-left: 10px;"> {{IconBook}} </span><span style="color:#FFFFFF">'''<translate><!--T:1--> Question:</translate>''' {{{header|{{{title|}}}}}}{{{1|}}}</span> |
Revision as of 23:23, 25 January 2024
Description
Create a FAQ box with title (header) and body. If a clarification id is provided, it will be displayed in the bottom right corner in brackets. The same id can be used as an anchor for a link. An additional external id (ext id) can be also provided to refer to the CAR, for example in the same generated link. It uses default values for layout that can be overridden (classes and width).
Params
title
orheader
or 1st (mandatory): Title displayed in the header of the boxbody
or 2nd (mandatory): Content displayed in the box bodyid
(optional): Clarification id shown on bottom right corner as a link in brackets. Only shown if provided.extid
(optional): Additional clarification id (with CAR.XXX format) shown on bottom right corner as part of the link generated for param id. Only shown if provided.width
or 3rd (optional + default): Box witdh. Default value =400px
. When device is smaller, then width will be set to 100% of space.class
(optional + default): Wrapper div class string for box layout and separation, Default value = "wica-top-spacing wica-bottom-spacing wica-visible"nesting
(optional) - [0
,1
,2
] Append wica-nesting-# class for margin level 0 (none), 1 (22px) or 2 (42px). Available only whenclass
is not set!
Examples
Code | Description |
---|---|
{{FAQ|title=What if...?|body=If..., then...}} |
FAQ box with specified question and answer |
Question: What if...? Answer: | |
{{FAQ|nesting=1|title=What if...?|body=If..., then...}} |
FAQ box with specified question and answer with nesting level 1 |
Question: What if...? Answer: |