Difference between revisions of "Template:Fixbox"
(promoted latest version of fixbox to live -- changes include collapsible state and title in separate row from how it was handled before) |
m (Disable warnings if a fixbox is used under the game data section) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><table class="pcgwikitable fixbox {{#ifeq: {{{collapsed|no}}} | yes | mw-collapsible mw-collapsed }}"> | <includeonly><table class="pcgwikitable fixbox {{#ifeq: {{{collapsed|no}}} | yes | mw-collapsible mw-collapsed }}"> | ||
<tr> | <tr> | ||
− | <th class="fixbox-title | + | <th class="fixbox-title"> |
<div title="Fix" class="svg-icon svg-16 fixbox-icon"></div>{{{description|Instructions}}}{{{ref|}}} | <div title="Fix" class="svg-icon svg-16 fixbox-icon"></div>{{{description|Instructions}}}{{{ref|}}} | ||
</th> | </th> | ||
</tr> | </tr> | ||
+ | {{#if: {{{fix|}}} | | ||
<tr> | <tr> | ||
− | <td | + | <td class="fixbox-body"> |
− | {{{fix| | + | {{{fix|}}} |
</td> | </td> | ||
</tr> | </tr> | ||
− | </table>{{#ifeq:{{{ | + | }} |
+ | </table>{{#ifeq: {{NAMESPACE}}{{#var:Game}} | true |{{#switch:{{#var:section|Top}} | ||
+ | |Top | ||
+ | |Infobox game | ||
+ | |Introduction | ||
+ | |System requirements | ||
+ | |References = {{#ifeq:{{NAMESPACE}}||[[Category:Invalid section order]]}} | ||
+ | }} | ||
+ | {{#ifeq:{{{fix|}}}{{{description|}}}||[[Category:Invalid template usage (Fixbox)]] }}}}</includeonly><noinclude>{{Documentation}}{{References}}</noinclude> |
Latest revision as of 22:29, 5 April 2024
Example
- Taken from Full Spectrum Warrior
Modifying the FSW.dll file[1] |
---|
|
Description
The Fixbox is a specialized container used exclusively for fixes, workarounds, and step-by-step instructions. It provides a formal base for them, as well as keeping the wiki clean.
- The title needs to summarize what the fix/workaround is trying to accomplish.
- For sequenced instructions, use
#
to label each step.#
allows numbered lists to be dynamic.- Ex. If new entries are placed in the middle of a list, the old entries are automatically re-numbered.
- If the title alone is enough to summarize, the
fix
parameter can be omitted, see the below one-line fixbox syntax.
Standard fixbox
Name[2] |
---|
--instructions go here-- |
{{Fixbox|description=Name|ref=<ref>Reference</ref>|fix= --instructions go here-- }}
One-line fixbox
For a short one-line fixbox where instructions are not necessary, the fix
parameter can be omitted entirely:
Use windowed mode, see Video.[3] |
---|
{{Fixbox|description=Use windowed mode, see [[#Video|Video]].|ref=<ref>Reference</ref>}}
Collapsed fixbox
Add |collapsed=yes
to the template to have the fixbox appear as collapsed and require user input to expand.
Name[4] |
---|
--instructions go here-- |
{{Fixbox|description=Name|ref=<ref>Reference</ref>|collapsed=yes|fix= --instructions go here-- }}
References
- ↑ http://forums.steampowered.com/forums/showthread.php?t=1202822
- ↑ Reference
- ↑ Reference
- ↑ Reference