Template:Boxcodelite

From PS3 Developer wiki
Revision as of 02:45, 30 August 2021 by Sandungas (talk | contribs)
Jump to navigation Jump to search
Code Sample
content


Usage

This template is intended to display a floating code box at right of the screen, if used repeatedly the code boxes will be aligned in the same row, are dsiplayed with a vertical displacement to top for an optimal usage of the space available, are supposed to be writen inmediatly after the page section name and any other informative text about what the config does should be written after the code boxes

  • {{gameconfig|title=Title|content=Config}}
    • This way allows to display some plain text inside the box, consider it a "hack" that eventually could come in handy incase there are problems with the other modes, but better avoid it
  • {{gameconfig|title=Title|float=left|content=Config}}
    • By default it floats to right, but can be configured to float left
  • {{gameconfig|title=Title|content=<pre>Config</pre>}}
    • This displays the texts "preformatted", preserves linespaces, black monospace font on top of white background
  • {{gameconfig|title=Title|content=<syntaxhighlight lang=bash>Config</syntaxhighlight>}}


  • When this template was created (august 2021) the <syntaxhighlight> extension is broken in this wiki, so the result of <syntaxhighlight> or <pre> is exactly the same, but better use the display mode with the <syntaxhighlight> as a prevention because eventually the <syntaxhighlight> extension could be fixed

Examples

Template:Gameconfig

Template:Gameconfig