Jump to content

Template:OOO-FAQ: Difference between revisions

From Out of Ore Wiki
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 with unlimited entries.
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, using splitters.
| 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 styled for the Out of Ore Wiki.",
   "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:

  1. Click “Edit source” (or switch to wikitext/source mode).
  2. 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).

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Question 1question1

no description

Stringoptional
Answer 1answer1

no description

Contentoptional
Question 2question2

no description

Stringoptional
Answer 2answer2

no description

Contentoptional
Question 3question3

no description

Stringoptional
Answer 3answer3

no description

Contentoptional
Question 4question4

no description

Stringoptional
Answer 4answer4

no description

Contentoptional
Question 5question5

no description

Stringoptional
Answer 5answer5

no description

Contentoptional
Question 6question6

no description

Stringoptional
Answer 6answer6

no description

Contentoptional
Question 7question7

no description

Stringoptional
Answer 7answer7

no description

Contentoptional
Question 8question8

no description

Stringoptional
Answer 8answer8

no description

Contentoptional
Question 9question9

no description

Stringoptional
Answer 9answer9

no description

Contentoptional
Question 10question10

no description

Stringoptional
Answer 10answer10

no description

Contentoptional