Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.

Difference between revisions of "Template:Fixbox"

From PCGamingWiki, the wiki about fixing PC games
(removed inline example (moved to documentation subpage); added section validity check (inverse of section checks in most other templates--a fixbox is valid anywhere except below one of these sections))
(fixed order check to only apply to game pages)
Line 12: Line 12:
 
   </tr>
 
   </tr>
 
}}
 
}}
</table>{{#ifeq: {{NAMESPACE}} | |{{#switch:{{#var:section|Top}}
+
</table>{{#ifeq: {{NAMESPACE}}{{#var:Game}} | true |{{#switch:{{#var:section|Top}}
 
|Top
 
|Top
 
|Infobox game
 
|Infobox game

Revision as of 22:27, 24 September 2021

Documentation for the above template (sometimes hidden from view).

Example

Taken from Full Spectrum Warrior
Modifying the FSW.dll file[1]
Before editing, make a backup of the FSW.dll file in case the modifications go wrong.
  1. Go to <path-to-game>.
  2. Open the FSW.dll file with Notepad or other text editor.
  3. Using the Find function (Ctrl+F), search for "%s.available.gamespy.com". There will be exactly one entry.
  4. Replace the text with "www.example.com/fixes/%s" (or any other working link that is the same length as the original and contains "%s" somewhere. This particular link is guaranteed to work.)
  5. Save the file.
  6. Launch the game.


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 need 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--
}}