Template:Code
Jump to navigation
Jump to search
Applies the
and tags to the input, and also forces the code block to stay in one line, rather than allowing for line breaks.Parameters
1 = Content you want to apply the formatting to. wrap = Whether to allow text wrapping or not. "false" by default. nowiki = "true" by default. Set to "false" to disable the <nowiki> tags.
Usage
Example: If a block of code reaches the end of a line, the entire thing will go onto a new line together, like if I did
. This example is exaggerated though. Usually, you'd only have 2-3 words in cases like these.If a block of code reaches the end of a line, the entire thing will go onto a new line together, like if I did {{code|some random text like this that I wanted to stay in one line for reading clarity}}. This example is exaggerated though. Usually, you'd only have 2-3 words in cases like these.
Example:
,{{code|[[Hex Data]]}}, {{code|[[Hex Data]]|nowiki=0}}
Example: The following text will not insist on being on the same line, instead wrapping with the end of the page: try zooming in to see what happens
.
The following text will not insist on being on the same line: {{code|try zooming in to see what happens|wrap=true}}.