Template:FAQ: Difference between revisions

From Red Faction Wiki
mNo edit summary
mNo edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="banner mw-collapsible mw-collapsed" style="border-color: {{#switch: {{FULLPAGENAME}}
<includeonly>{| class="banner mw-collapsible mw-collapsed" style="border-color: {{#switch: {{FULLPAGENAME}}
   |User talk:SimpleArrows = indianred
   |User talk:SimpleArrows = FireBrick
   |#default = SlateGrey }}; width: 99%; padding: 5px; min-height: 50px;"
  |Red Faction FAQ = FireBrick
|<h3 style="font-family: inherit; font-weight: bold; font-size: 13px; border: none; margin: 0; padding: 0; line-height: 1;">{{{2}}}</h3>
  |Red Faction II FAQ = IndianRed
  |Red Faction: Guerrilla FAQ = DarkOrange
  |Red Faction: Armageddon FAQ = DodgerBlue
   |#default = SlateGrey }}; width: 99%; min-height: 40px; padding-left: 5px; padding-right: 5px; line-height: 1;"
|height="40px;"|<h3 style="font-family: inherit; font-weight: bold; font-size: 13px; border: none; margin: 0; padding: 0; line-height: 1;">{{{2}}}</h3>
|-
|-
|class="mw-collapsible-content"|{{#switch: {{{1|}}}
|class="mw-collapsible-content" style="line-height: 1.7; padding-bottom: 5px;"|{{#switch: {{{1|}}}
  |issue    = <span style="color: indianred; font-weight: bold; font-size: 13px;">Cause:</span><br>{{{3}}} <br><br><span style="color: green; font-weight: bold; font-size: 13px;">Solution:</span><br>{{{4}}}
  |issue    = <span style="color: indianred; font-weight: bold; font-size: 13px;">Cause:</span><br>{{{3}}} <br><br><span style="color: green; font-weight: bold; font-size: 13px;">Solution:</span><br>{{{4}}}
  |question = <span style="color: green; font-weight: bold; font-size: 13px;">Answer:</span><br>{{{3}}} }}
  |question = <span style="color: green; font-weight: bold; font-size: 13px;">Answer:</span><br>{{{3}}} }}
|}</includeonly><noinclude>
|}</includeonly><noinclude>[[Category: Banner Templates]]
<templatedata>
{
"params": {
"1": {
"label": "Type",
"description": "Determines the type of FAQ box it is. The \"issue\" type will fill the box with spaces for a cause and solution. The \"question\" type will fill the box with a space for an answer to a question.",
"example": "issue",
"type": "string",
"suggestedvalues": [
"issue",
"question"
],
"required": true
},
"2": {
"label": "Header",
"description": "Depending on the type, the header can either be an issue or a question.",
"example": "Error \"Please insert Red Faction CD 2\"",
"type": "string",
"required": true
},
"3": {
"label": "Cause/Answer",
"description": "If the FAQ type is \"issue\", this parameter is seen as the cause, which is where an explanation of why the issue (written in the header) is happening. If the FAQ type is \"question\", this parameter is seen as the answer to the question (written in the header).",
"example": "This issue occurs when launching Red Faction (particularly in full screen mode) on some new hardware.",
"type": "string",
"required": true
},
"4": {
"label": "Solution",
"description": "This parameter is only used when the FAQ type is \"issue\", do not use it if the type is \"question\". The information written in this parameter is the solution to the issue (written in the header).",
"example": "All commonly-used community versions resolve this issue - we recommend using Dash Faction for maximum compatibility with new hardware and operating systems. You may need to launch the community version you choose in \"windowed\" or \"stretched\" mode as opposed to full screen mode to resolve this issue.",
"type": "string"
}
},
"description": "Creates a banner-styled box for use on FAQ pages to show solutions/answers to questions and issues.",
"paramOrder": [
"1",
"2",
"3",
"4"
],
"format": "inline"
}
</templatedata>
<pre>{{FAQ|TYPE|HEADER|CAUSE_OR_ANSWER|SOLUTION}}</pre>
 
'''Usage (issue):'''
<pre>{{FAQ| issue | Error "Please insert Red Faction CD 2" | You're running Red Faction version 1.0, 1.1, or 1.2, and those versions require CD 2 be in your CD-ROM drive for the game to launch. | Official version 1.21, as well as all commonly-used [[RF Clients#Community-Made|community versions of Red Faction]] resolve this issue and allow you to launch the game without CD 2 in your CD-ROM drive.
}}</pre>
'''Output:'''
{{FAQ|issue|Error "Please insert Red Faction CD 2"|You're running Red Faction version 1.0, 1.1, or 1.2, and those versions require CD 2 be in your CD-ROM drive for the game to launch.|Official version 1.21, as well as all commonly-used [[RF Clients#Community-Made|community versions of Red Faction]] resolve this issue and allow you to launch the game without CD 2 in your CD-ROM drive.}}
{{FAQ|issue|Error "Please insert Red Faction CD 2"|You're running Red Faction version 1.0, 1.1, or 1.2, and those versions require CD 2 be in your CD-ROM drive for the game to launch.|Official version 1.21, as well as all commonly-used [[RF Clients#Community-Made|community versions of Red Faction]] resolve this issue and allow you to launch the game without CD 2 in your CD-ROM drive.}}
<hr>
'''Usage (question):'''
<pre>{{FAQ| question | Where can I get a copy of Red Faction? | Red Faction is available for purchase as a digital download or physical copy (CD).<br>'''Digital Download:'''
*[https://store.steampowered.com/app/20530/Red_Faction Steam]
*[https://www.gog.com/game/red_faction GoG]
}}</pre>
'''Output:'''
{{FAQ| question | Where can I get a copy of Red Faction? | Red Faction is available for purchase as a digital download or physical copy (CD).<br>'''Digital Download:'''
*[https://store.steampowered.com/app/20530/Red_Faction Steam]
*[https://www.gog.com/game/red_faction GoG]
}}
<hr>
'''FAQ Page Columns:'''
The FAQ box is intended for use in a column which allows for more boxes to be used in a smaller amount of space. This method only allows for 2 columns on a page.


{{FAQ|issue|Error "Unable to initialize DirectX 8.0"|This issue occurs when launching Red Faction (particularly in full screen mode) on some new hardware.|All commonly-used community versions resolve this issue - we recommend using [[Dash_Faction_Installation_Guide|Dash Faction]] for maximum compatibility with new hardware and operating systems. You may need to launch the community version you choose in "windowed" or "stretched" mode as opposed to full screen mode to resolve this issue.}}
Wrap the boxes in a column div as follows to make the first column:
<pre><div class="column">FAQ_BOXES_HERE</div></pre>
To make the second column, do the same thing you did for the first column to another collection of FAQ boxes.
<pre><div class="column">
FIRST_COLUMN_BOXES
</div>
<div class="column">
SECOND_COLUMN_BOXES
</div>
</pre>


{{FAQ|issue|Error "At least 8 MB of available video memory is required"|This error occurs when Red Faction 1.0, 1.1, or 1.2 is launched on a system with 2GiB or more available video memory.
If content is going to be placed after the 2 columns, another div is needed to make sure the formatting of the content isn't affected by the columns. Add this code after the end of the 2 column divs (do not put any content into this div):
At a technical level, the issue is caused by a signed DWORD being read as less than the minimum of 5MiB, and is resolved with the replacement of a signed less than comparision with an unsigned less than comparison.|Official version 1.21, as well as both [[Dash_Faction_Installation_Guide|Dash Faction]] and Pure Faction resolve this issue and allow you to launch the game on systems with 2GiB or more available video memory.}}
<pre><div style="clear: both;"></div></pre>
</noinclude>
</noinclude>

Latest revision as of 13:11, 5 February 2024

Creates a banner-styled box for use on FAQ pages to show solutions/answers to questions and issues.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Type1

Determines the type of FAQ box it is. The "issue" type will fill the box with spaces for a cause and solution. The "question" type will fill the box with a space for an answer to a question.

Suggested values
issue question
Example
issue
Stringrequired
Header2

Depending on the type, the header can either be an issue or a question.

Example
Error "Please insert Red Faction CD 2"
Stringrequired
Cause/Answer3

If the FAQ type is "issue", this parameter is seen as the cause, which is where an explanation of why the issue (written in the header) is happening. If the FAQ type is "question", this parameter is seen as the answer to the question (written in the header).

Example
This issue occurs when launching Red Faction (particularly in full screen mode) on some new hardware.
Stringrequired
Solution4

This parameter is only used when the FAQ type is "issue", do not use it if the type is "question". The information written in this parameter is the solution to the issue (written in the header).

Example
All commonly-used community versions resolve this issue - we recommend using Dash Faction for maximum compatibility with new hardware and operating systems. You may need to launch the community version you choose in "windowed" or "stretched" mode as opposed to full screen mode to resolve this issue.
Stringoptional
{{FAQ|TYPE|HEADER|CAUSE_OR_ANSWER|SOLUTION}}

Usage (issue):

{{FAQ| issue | Error "Please insert Red Faction CD 2" | You're running Red Faction version 1.0, 1.1, or 1.2, and those versions require CD 2 be in your CD-ROM drive for the game to launch. | Official version 1.21, as well as all commonly-used [[RF Clients#Community-Made|community versions of Red Faction]] resolve this issue and allow you to launch the game without CD 2 in your CD-ROM drive.
}}

Output:


Usage (question):

{{FAQ| question | Where can I get a copy of Red Faction? | Red Faction is available for purchase as a digital download or physical copy (CD).<br>'''Digital Download:'''
*[https://store.steampowered.com/app/20530/Red_Faction Steam] 
*[https://www.gog.com/game/red_faction GoG] 
}}

Output:


FAQ Page Columns:

The FAQ box is intended for use in a column which allows for more boxes to be used in a smaller amount of space. This method only allows for 2 columns on a page.

Wrap the boxes in a column div as follows to make the first column:

<div class="column">FAQ_BOXES_HERE</div>

To make the second column, do the same thing you did for the first column to another collection of FAQ boxes.

<div class="column">
FIRST_COLUMN_BOXES
</div>
<div class="column">
SECOND_COLUMN_BOXES
</div>

If content is going to be placed after the 2 columns, another div is needed to make sure the formatting of the content isn't affected by the columns. Add this code after the end of the 2 column divs (do not put any content into this div):

<div style="clear: both;"></div>