Template:FAQ/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
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;">{&lbrace;[[Template:FAQ|FAQ]]&vert;1=<var>ANCHOR</var>&vert;2=<var>ANCHOR</var>&vert;3=<var>ANCHOR</var>…<br />&#32;| Question = <br />&#32;| Answer  = <br />&#32;| BGcolor  = <br />&rbrace;}</div>
Must be used inside of a [[wikipedia:Help:Introduction to tables with Wiki Markup/1|wikitable]] as a row.


<pre>{{FAQ|1=ANCHOR|2=ANCHOR|3=ANCHOR (etc)
===Syntax ===
| BGcolor=
# 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>
}}</pre>


Must be used inside of a [[w:Help:Wikitable|wikitable]] as a row. In other words, start out with a table header tag:
Up to ten anchors (assigned to positional parameters {{Para|1}} through {{Para|10}}) and a background color (as {{Para|BGcolor}}) are optional.<includeonly>


<pre>{|</pre>


Place each FAQ Q/A inside an <nowiki>{{FAQ}}</nowiki> template and then end with the closing table tag:
[[Category:Page specific templates]]</includeonly>
 
<pre>|}</pre>
 
Anchors (<code>1</code> through <code>10</code>) and <code>BGcolor</code> are optional. The template can hold up to ten Anchors.
 
<includeonly>
[[Category:Page specific templates]]
</includeonly>

Latest revision as of 21:34, 12 September 2022

Usage

{{FAQ|1=ANCHOR|2=ANCHOR|3=ANCHOR
| Question =
| Answer =
| BGcolor =
}}

Must be used inside of a wikitable as a row.

Syntax

  1. Start out with a table header tag: {|
  2. Place each FAQ question (as |Question=) and answer (as |Answer=) inside the {{FAQ}} template as shown above
  3. 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.