Editing Template:Boxcodelite
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
<div style="float: | <div style="float:right; margin-top:-28px; margin-right:10px; font-size:85%;"><div style="float:top; text-align:center; font-weight:bold;">{{{1|Please enter a title for this config}}}</div><div style="border:solid #eebb99 5px; box-shadow: 4px 4px 2px 1px #eeeeee;"><div style="margin-top:-12px; margin-bottom:-12px;">{{{2|Config}}}</div></div></div><noinclude>[[Category:Templates]]<noinclude> | ||
</div><noinclude> | |||
{{clear}} | {{clear}}<br> | ||
== Usage == | == 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 | |||
*'''<nowiki>{{gameconfig|Title|Config}}</nowiki>''' | |||
< | **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 | ||
{{ | *'''<nowiki>{{gameconfig|Title|<pre>Config</pre>}}</nowiki>''' | ||
**This displays the texts "preformatted", preserves linespaces, black monospace font on top of white background | |||
*'''<nowiki>{{gameconfig|Title|<syntaxhighlight lang=bash>Config</syntaxhighlight>}}</nowiki>''' | |||
**This displays the texts with color highlights for the '''lang=[https://www.mediawiki.org/wiki/Extension:SyntaxHighlight#Supported_languages supported_programming_languages]''', if there is no language that fits use '''lang=[https://en.wikipedia.org/wiki/Bash_%28Unix_shell%29 bash]''' | |||
}} | |||
*When this template was created (august 2021) the <nowiki><syntaxhighlight></nowiki> extension is broken in this wiki, so the result of <nowiki><syntaxhighlight></nowiki> or <nowiki><pre></nowiki> is exactly the same, but better use the display mode with the <nowiki><syntaxhighlight></nowiki> as a prevention because eventually the <nowiki><syntaxhighlight></nowiki> extension could be fixed | |||
{{ | == Examples == | ||
{{gameconfig|BLJM85001|<pre> | |||
VERSION = 0xFFFFFFFF | VERSION = 0xFFFFFFFF | ||
S3D.ENABLE = 2 | S3D.ENABLE = 2 | ||
SDRAM_SIZE = 02800000 | SDRAM_SIZE = 02800000 | ||
MIPS_CODE_BLOCK_SIZE = 8192 | MIPS_CODE_BLOCK_SIZE = 8192 | ||
}} | </pre>}} | ||
{{ | {{gameconfig|BLJM85001|<syntaxhighlight lang=xml> | ||
VERSION = 0xFFFFFFFF | |||
S3D.ENABLE = 2 | |||
SDRAM_SIZE = 02800000 | |||
MIPS_CODE_BLOCK_SIZE = 8192 | |||
</syntaxhighlight>}} | |||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |