Template:Boxcodelite: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
m (Backup)
m (Rebuilt)
Line 1: Line 1:
<div style="float:right; margin:5px; font-size:85%; box-shadow: 4px 4px 2px 1px #eeeeee;">
<div style="float:{{{float|right}}}; font-size:85%; margin:5px; background:#eebb99; box-shadow: 4px 4px 2px 1px #eeeeee;">
  <div style="float:top; margin-bottom:-5px; background:#eebb99; text-align:center; font-weight:bold;">{{{1|Please enter a title for this config}}}</div>
  <div style="margin-bottom:-5px; text-align:center; font-weight:bold;">{{{title|Code Sample}}}</div>
  <div style="background:#bb8866; border:solid #eebb99 5px; padding:1px;">
  <div style="margin:5px; border:1px dashed #bb8866;">
   <div style="margin-top:-12px; margin-bottom:-12px;">{{{2|Config}}}</div>
   <div style="margin-top:-12px; margin-bottom:-12px;">{{{content|content}}}</div>
  </div>
  </div>
</div><noinclude>[[Category:Templates]]<noinclude>
</div><noinclude>[[Category:Templates]]<noinclude>
<div style="float:{{{float|right}}}; margin:5px; padding:5px; font-size:85%; background:#eebb99; box-shadow: 4px 4px 2px 1px #eeeeee;">
<div style="text-align:center; font-weight:bold;">{{{title|Code Sample}}}</div>
<div style="margin-top:5px; border:1px dashed #bb8866;">
  <div style="margin-top:-12px; margin-bottom:-12px;">{{{content|content}}}</div>
</div>
</div>


{{clear}}<br>
{{clear}}<br>
Line 32: Line 21:


== Examples ==
== Examples ==
{{gameconfig|BLJM85001|<pre>
{{gameconfig|title=BLJM85001|content=<pre>
VERSION = 0xFFFFFFFF
VERSION = 0xFFFFFFFF
S3D.ENABLE = 2
S3D.ENABLE = 2
Line 39: Line 28:
</pre>}}
</pre>}}


{{gameconfig|BLJM85001|<syntaxhighlight lang=xml>
{{gameconfig|title=BLJM85001|content=<syntaxhighlight lang=xml>
VERSION = 0xFFFFFFFF
VERSION = 0xFFFFFFFF
S3D.ENABLE = 2
S3D.ENABLE = 2

Revision as of 03:34, 30 August 2021

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|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|<pre>Config</pre>}}
    • This displays the texts "preformatted", preserves linespaces, black monospace font on top of white background
  • {{gameconfig|Title|<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