Template:Boxcodelite: Difference between revisions
Jump to navigation
Jump to search
m (Trying to do the <pre> inside the template... i dont remember well if this was working, but worths another try) |
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) |
||
Line 10: | Line 10: | ||
*<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 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>{{</nowiki>boxcodelite|''' | *<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 | ||
== Examples == | == Examples == |
Revision as of 17:35, 7 September 2021
Title
Code
Usage
- {{boxcodelite|title=Title|code=Code}}
- 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
- {{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