|
|
| Line 1: |
Line 1: |
| <includeonly><div class="ooo-faq">{{#if:{{{question1|}}}|<div class="mw-collapsible mw-collapsed ooo-faq__item"><div class="ooo-faq__question">{{{question1}}}</div><div class="mw-collapsible-content ooo-faq__answer">{{{answer1}}}</div></div>}}{{#if:{{{question2|}}}|<div class="mw-collapsible mw-collapsed ooo-faq__item"><div class="ooo-faq__question">{{{question2}}}</div><div class="mw-collapsible-content ooo-faq__answer">{{{answer2}}}</div></div>}}{{#if:{{{question3|}}}|<div class="mw-collapsible mw-collapsed ooo-faq__item"><div class="ooo-faq__question">{{{question3}}}</div><div class="mw-collapsible-content ooo-faq__answer">{{{answer3}}}</div></div>}}{{#if:{{{question4|}}}|<div class="mw-collapsible mw-collapsed ooo-faq__item"><div class="ooo-faq__question">{{{question4}}}</div><div class="mw-collapsible-content ooo-faq__answer">{{{answer4}}}</div></div>}}{{#if:{{{question5|}}}|<div class="mw-collapsible mw-collapsed ooo-faq__item"><div class="ooo-faq__question">{{{question5}}}</div><div class="mw-collapsible-content ooo-faq__answer">{{{answer5}}}</div></div>}}</div></includeonly><noinclude> | | <includeonly>{{#invoke:OOOFAQ|render}}</includeonly><noinclude> |
| | |
| = OOO FAQ Template = | | = OOO FAQ Template = |
| | |
| | Creates collapsible FAQ sections with unlimited entries. |
|
| |
|
| == Usage == | | == Usage == |
| | |
| <pre> | | <pre> |
| {{OOO-FAQ | | {{OOO-FAQ |
| | question1 = How does power work? | | | question1 = How does power work? |
| | answer1 = Power is generated by generators and distributed through cables. | | | answer1 = Power is generated by generators. |
|
| |
|
| | question2 = Does multiplayer share power grids? | | | question2 = Can conveyors merge? |
| | answer2 = Yes. Connected systems share the same network. | | | answer2 = Yes, using splitters. |
| | |
| | | question3 = Is multiplayer shared? |
| | | answer3 = Yes. |
| }} | | }} |
| </pre> | | </pre> |
|
| |
|
| <templatedata>
| | == Notes == |
| {
| | * Unlimited question/answer pairs supported. |
| "description": "Creates collapsible FAQ sections styled for the Out of Ore Wiki.",
| | * Just increment numbers. |
| "params": {
| | * Styling handled in Common.css. |
| "question1": { "label": "Question 1", "type": "string" },
| | |
| "answer1": { "label": "Answer 1", "type": "content" },
| |
| "question2": { "label": "Question 2", "type": "string" },
| |
| "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" }
| |
| }
| |
| }
| |
| </templatedata>
| |
| </noinclude> | | </noinclude> |