Template:Boxcodelite: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
m (It works, now {{boxcodelite}} does the <pre> automatically, and should not be used with <syntaxhighlight>. Im dropping that feature in favour of usage simplicity)
mNo edit summary
Line 9: Line 9:
== Usage ==
== Usage ==
*<nowiki>{{</nowiki>boxcodelite|'''title'''=Title|'''code'''=Code<nowiki>}}</nowiki>
*<nowiki>{{</nowiki>boxcodelite|'''title'''=Title|'''code'''=Code<nowiki>}}</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
**This way allows to display some "preformatted" code inside the box
*<nowiki>{{</nowiki>boxcodelite|'''float'''=left|'''title'''=Title|'''code'''=Code<nowiki>}}</nowiki>
*<nowiki>{{</nowiki>boxcodelite|'''float'''=left|'''title'''=Title|'''code'''=Code<nowiki>}}</nowiki>
**By default it floats to right, but can be configured to float left
**By default it floats to right, but can be configured to float left

Revision as of 19:00, 7 September 2021

Title
Code


Usage

  • {{boxcodelite|title=Title|code=Code}}
    • This way allows to display some "preformatted" code inside the box
  • {{boxcodelite|float=left|title=Title|code=Code}}
    • By default it floats to right, but can be configured to float left

Examples

BLJM85001
VERSION = 0xFFFFFFFF
S3D.ENABLE = 2
SDRAM_SIZE = 02800000
MIPS_CODE_BLOCK_SIZE = 8192
BLJM85001
VERSION = 0xFFFFFFFF
S3D.ENABLE = 2
SDRAM_SIZE = 02800000
MIPS_CODE_BLOCK_SIZE = 8192