m (1 revision imported)
 
Line 57: Line 57:


</includeonly>
</includeonly>
<templatedata>
{
"params": {
"index": {
"aliases": [
"identifier",
"unique ID",
"unique number"
],
"label": "FAQ unique identifier",
"description": "Numbers a specific FAQ. You can link to each specific FAQ that has a unique index on a particular page.",
"example": "To link to FAQ 2 on the Global warming FAQ page, you could use \"Global warming/FAQ#Q2\". So the link follows the pattern of \"#Q{index}\".",
"type": "number"
},
"show": {
"label": "Always (not) show answer?",
"description": "The box hides the answer on Talk page and shows it on the normal/actual page. You may override this by setting to \"yes\" so that the answer is always shown, or \"no\" so that the answer is always hidden. ",
"type": "string",
"suggestedvalues": [
"yes",
"no"
]
},
"q": {
"label": "Question",
"description": "The actual frequently asked question",
"type": "string",
"required": true
},
"a": {
"label": "Answer",
"description": "The actual answer to the frequently asked question",
"type": "string",
"required": true
}
},
"description": "Adds a new specific frequently asked question and answer combination.",
"paramOrder": [
"index",
"show",
"q",
"a"
]
}
</templatedata>

Latest revision as of 16:02, 23 November 2023

Template:Mbox Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab. Use this template on FAQ subpages.

Parameters

Use

There are three main features:

  1. "index", numbers a specific FAQ. You can link to each specific FAQ that has a unique index on a particular page. For example, to link to FAQ 2 for the Global warming FAQ page, "Talk:Global warming/FAQ#Q2". Follows the pattern "#Q{index}".
  2. "q", stands for question
  3. "a", stands for answer.
{{FAQ row
|index=1
|q=This is some question text...
|a=This is some answer text...
}}
Q1: This is some question text...
A1: This is some answer text...

Show

The box hides the answer on talk page and shows it on the /FAQ page. You may override this by adding "show=yes" so that the answer is always shown, or "show=no" so that the answer is always hidden.

{{FAQ row
|show=yes
|index=2
|q=This is some question text...
|a=This is some answer text...
}}
Q2: This is some question text...
A2: This is some answer text...

See also

Similar templates:

  1. REDIRECT Template:Template link

Template:Redirect category shell – basic, non-collapsed list

  1. REDIRECT Template:Template link

Template:Redirect category shell – collapsed questions

  1. REDIRECT Template:Template link

Template:Redirect category shell – groups questions

  1. REDIRECT Template:Template link

Template:Redirect category shell – groups questions

  1. REDIRECT Template:Template link

Template:Redirect category shell – message to be placed on top of separate FAQ pages

  1. REDIRECT Template:Template link

Template:Redirect category shell – not a FAQ (but will link to one); warns against rehashing debates

  1. REDIRECT Template:Template link

Template:Redirect category shell


Adds a new specific frequently asked question and answer combination.

Template parameters

ParameterDescriptionTypeStatus
FAQ unique identifierindex identifier unique ID unique number

Numbers a specific FAQ. You can link to each specific FAQ that has a unique index on a particular page.

Example
To link to FAQ 2 on the Global warming FAQ page, you could use "Global warming/FAQ#Q2". So the link follows the pattern of "#Q{index}".
Numberoptional
Always (not) show answer?show

The box hides the answer on Talk page and shows it on the normal/actual page. You may override this by setting to "yes" so that the answer is always shown, or "no" so that the answer is always hidden.

Suggested values
yes no
Stringoptional
Questionq

The actual frequently asked question

Stringrequired
Answera

The actual answer to the frequently asked question

Stringrequired
This page was last edited on 23 November 2023, at 16:02. Content is available under GPLv3 unless otherwise noted.