Template:Code

From JoJo's Bizarre Encyclopedia - JoJo Wiki
Jump to navigation Jump to search

Applies the <code> and <nowiki> 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 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.

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: [[Jotaro Kujo]], Jotaro Kujo

{{code|[Jotaro Kujo]]}}, {{code|[[Jotaro Kujo]]|nowiki=false}}

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}}.