Template:OOO-FAQ: Difference between revisions
Appearance
mNo edit summary |
m updated faq limit ( 10 visual & with source edit can add infinite) |
||
| Line 3: | Line 3: | ||
= OOO FAQ Template = | = OOO FAQ Template = | ||
Creates collapsible FAQ sections | Creates collapsible FAQ sections styled for the Out of Ore Wiki. | ||
== Usage == | == Usage == | ||
| Line 10: | Line 10: | ||
{{OOO-FAQ | {{OOO-FAQ | ||
| question1 = How does power work? | | question1 = How does power work? | ||
| answer1 = Power is generated by generators. | | answer1 = Power is generated by generators and distributed through cables. | ||
| question2 = Can conveyors merge? | | question2 = Can conveyors merge? | ||
| answer2 = Yes, | | answer2 = Yes. Use splitters/junctions and plan throughput. | ||
| question3 = Does multiplayer share power grids? | |||
| answer3 = Yes, if the machines/cables are connected into the same network. | |||
}} | }} | ||
</pre> | </pre> | ||
== Add more than 10 questions == | |||
The VisualEditor form shows 10 fields, but the template supports unlimited entries. | |||
To add more: | |||
# Click “Edit source” (or switch to wikitext/source mode). | |||
# Add new pairs by continuing the numbering: | |||
<pre> | |||
| question11 = Your question | |||
| answer11 = Your answer | |||
| question12 = Your question | |||
| answer12 = Your answer | |||
</pre> | |||
== Notes == | |||
* Use matching numbers: questionX with answerX. | |||
* Answers can include wiki formatting, links, lists, and multiple paragraphs. | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Creates collapsible FAQ sections | "description": "Creates collapsible FAQ sections (up to 10 fields in VisualEditor; unlimited in source mode).", | ||
"params": { | "params": { | ||
"question1": { "label": "Question 1", "type": "string" }, | "question1": { "label": "Question 1", "type": "string" }, | ||
"answer1": { "label": "Answer 1", "type": "content" }, | "answer1": { "label": "Answer 1", "type": "content" }, | ||
"question2": { "label": "Question 2", "type": "string" }, | "question2": { "label": "Question 2", "type": "string" }, | ||
"answer2": { "label": "Answer 2", "type": "content" } | "answer2": { "label": "Answer 2", "type": "content" }, | ||
"question3": { "label": "Question 3", "type": "string" }, | |||
"answer3": { "label": "Answer 3", "type": "content" }, | |||
"question4": { "label": "Question 4", "type": "string" }, | |||
"answer4": { "label": "Answer 4", "type": "content" }, | |||
"question5": { "label": "Question 5", "type": "string" }, | |||
"answer5": { "label": "Answer 5", "type": "content" }, | |||
"question6": { "label": "Question 6", "type": "string" }, | |||
"answer6": { "label": "Answer 6", "type": "content" }, | |||
"question7": { "label": "Question 7", "type": "string" }, | |||
"answer7": { "label": "Answer 7", "type": "content" }, | |||
"question8": { "label": "Question 8", "type": "string" }, | |||
"answer8": { "label": "Answer 8", "type": "content" }, | |||
"question9": { "label": "Question 9", "type": "string" }, | |||
"answer9": { "label": "Answer 9", "type": "content" }, | |||
"question10": { "label": "Question 10", "type": "string" }, | |||
"answer10": { "label": "Answer 10", "type": "content" } | |||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
"question1","answer1", | "question1","answer1", | ||
"question2","answer2" | "question2","answer2", | ||
"question3","answer3", | |||
"question4","answer4", | |||
"question5","answer5", | |||
"question6","answer6", | |||
"question7","answer7", | |||
"question8","answer8", | |||
"question9","answer9", | |||
"question10","answer10" | |||
] | ] | ||
} | } | ||
Latest revision as of 21:55, 3 March 2026
OOO FAQ Template
Creates collapsible FAQ sections styled for the Out of Ore Wiki.
Usage
{{OOO-FAQ
| question1 = How does power work?
| answer1 = Power is generated by generators and distributed through cables.
| question2 = Can conveyors merge?
| answer2 = Yes. Use splitters/junctions and plan throughput.
| question3 = Does multiplayer share power grids?
| answer3 = Yes, if the machines/cables are connected into the same network.
}}
Add more than 10 questions
The VisualEditor form shows 10 fields, but the template supports unlimited entries.
To add more:
- Click “Edit source” (or switch to wikitext/source mode).
- Add new pairs by continuing the numbering:
| question11 = Your question | answer11 = Your answer | question12 = Your question | answer12 = Your answer
Notes
- Use matching numbers: questionX with answerX.
- Answers can include wiki formatting, links, lists, and multiple paragraphs.
Creates collapsible FAQ sections (up to 10 fields in VisualEditor; unlimited in source mode).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Question 1 | question1 | no description | String | optional |
| Answer 1 | answer1 | no description | Content | optional |
| Question 2 | question2 | no description | String | optional |
| Answer 2 | answer2 | no description | Content | optional |
| Question 3 | question3 | no description | String | optional |
| Answer 3 | answer3 | no description | Content | optional |
| Question 4 | question4 | no description | String | optional |
| Answer 4 | answer4 | no description | Content | optional |
| Question 5 | question5 | no description | String | optional |
| Answer 5 | answer5 | no description | Content | optional |
| Question 6 | question6 | no description | String | optional |
| Answer 6 | answer6 | no description | Content | optional |
| Question 7 | question7 | no description | String | optional |
| Answer 7 | answer7 | no description | Content | optional |
| Question 8 | question8 | no description | String | optional |
| Answer 8 | answer8 | no description | Content | optional |
| Question 9 | question9 | no description | String | optional |
| Answer 9 | answer9 | no description | Content | optional |
| Question 10 | question10 | no description | String | optional |
| Answer 10 | answer10 | no description | Content | optional |