Template:FAQ/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
RogueScholar (talk | contribs) m (Update interwikilink target) |
||
Line 1: | Line 1: | ||
==Usage== | == Usage == | ||
<div style="background-color: #f8f9fa; border: 2px solid #c7c8c9; border-radius: 2px; color: #000; font-family: monospace; font-size: 0.875rem; line-height: 1.4; margin: 1.5em auto 1.5em 2em; padding: 0.75em 1.5em; white-space: pre; width: fit-content;">{{[[Template:FAQ|FAQ]]|1=<var>ANCHOR</var>|2=<var>ANCHOR</var>|3=<var>ANCHOR</var>…<br /> | Question = <br /> | Answer = <br /> | BGcolor = <br />}}</div> | |||
Must be used inside of a [[wikipedia:Help:Introduction to tables with Wiki Markup/1|wikitable]] as a row. | |||
===Syntax === | |||
| | # Start out with a table header tag: <code><nowiki>{|</nowiki></code> | ||
| Question | # Place each FAQ question (as {{Para|Question}}) and answer (as {{Para|Answer}}) inside the {{Tlx|FAQ}} template as shown above | ||
| Answer | # End with the closing table tag: <code><nowiki>|}</nowiki></code> | ||
} | |||
Up to ten anchors (assigned to positional parameters {{Para|1}} through {{Para|10}}) and a background color (as {{Para|BGcolor}}) are optional.<includeonly> | |||
[[Category:Page specific templates]]</includeonly> | |||
[[Category:Page specific templates]] | |||
</includeonly> |
Latest revision as of 21:34, 12 September 2022
Usage
Must be used inside of a wikitable as a row.
Syntax
- Start out with a table header tag:
{|
- Place each FAQ question (as
|Question=
) and answer (as|Answer=
) inside the {{FAQ}} template as shown above - End with the closing table tag:
|}
Up to ten anchors (assigned to positional parameters |1=
through |10=
) and a background color (as |BGcolor=
) are optional.