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


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "Template:File"

From PCGamingWiki, the wiki about fixing PC games
m (added synonyms for folder type)
m (added <span class="file-span-linebreak"> to better manage line-breaks)
Line 1: Line 1:
<includeonly>{{#switch: {{lc: {{{2|}}} }}
+
<includeonly><span class="file-span-linebreak">{{#switch: {{lc: {{{2|}}} }}
 
|dir
 
|dir
 
|directory
 
|directory
 
|folder=<span class="file-span-directory"></span>
 
|folder=<span class="file-span-directory"></span>
 
|#default=<span class="file-span"></span>
 
|#default=<span class="file-span"></span>
}}<code class="file-code">{{{1}}}</code></includeonly><noinclude>{{Documentation}}</noinclude>
+
}}<code class="file-code">{{{1}}}</code></span></includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 15:53, 8 January 2023

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

This template wraps the text provided to it in code tags and applies some additional styling.

Note that this styling template is meant for fixboxes and regular text, and should not be used in game data rows.

Arguments
  • 1 - text used.
  • 2 - (optional) alternate type (currently only supports folder and registry).
Syntax
{{File|1}}
Related
  • {{Folder}} - shorthand for the folder alternate type.
  • {{Registry}} - shorthand for the registry alternate type.
  • {{Code}}