Difference between revisions of "Template:Fixbox"

From PCGamingWiki, the wiki about fixing PC games
m (added example)
(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))
Line 12: Line 12:
 
   </tr>
 
   </tr>
 
}}
 
}}
</table>{{#ifeq:{{{fix|}}}{{{description|}}}||{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (Fixbox)]] }}}}</includeonly><noinclude>
+
</table>{{#ifeq: {{NAMESPACE}} | |{{#switch:{{#var:section|Top}}
{{Fixbox|description=Example fixbox: Disable touch input in Windows|ref=<ref name="NeoGAF-mainthread-op">{{Refurl|url=http://www.neogaf.com/forum/showpost.php?p=232252280&postcount=1|title=Nier: Automata PC performance thread :: NeoGAF|date=2017-04-01}}</ref>|fix=
+
|Top
# Open the [[Microsoft Windows#Task Manager|Task Manager]] of Windows.
+
|Infobox game
# Go to the '''Services''' tab.
+
|Introduction
# Locate the service named '''Touch Keyboard and Handwriting Panel Service''' or '''TabletInputService'''.
+
|Game data/config
# Right-click on it and choose '''Stop'''.
+
|Game data/saves
 
+
|Save game cloud syncing
'''Notes'''
+
|System requirements
{{ii}} This only stops the service temporarily until the computer is restarted.
+
|References = [[Category:Invalid section order]]
 
}}
 
}}
{{Documentation}}</noinclude>
+
{{#ifeq:{{{fix|}}}{{{description|}}}||[[Category:Invalid template usage (Fixbox)]] }}}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 09:54, 30 August 2021

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

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.
    • See above example.
  • 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.

Syntax

{{Fixbox|description=Name|ref=<ref>Reference</ref>|fix=
--instructions go here--
}}

Collapsed fixbox

Add |collapsed=yes to the template to have the fixbox appear as collapsed and require user input to expand.

Name[1]

--instructions go here--

{{Fixbox|description=Name|ref=<ref>Reference</ref>|collapsed=yes|fix=
--instructions go here--
}}

References

  1. Reference