Template:Code: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
=== Documentation === | === Documentation === | ||
{{shortcut|cd}} | |||
This template provides an alternative to HTML <code><code></code> elements. Useful for displaying multiple code snippets with custom delimiters. | This template provides an alternative to HTML <code><code></code> elements. Useful for displaying multiple code snippets with custom delimiters. | ||
Revision as of 20:07, 15 January 2026
Documentation
Shortcut
This template provides an alternative to HTML <code> elements. Useful for displaying multiple code snippets with custom delimiters.
Parameters
- Anonymous parameters - code text to display
- d/delimiter - separator between items (default: space, can be "and", "or", ",", etc.)
- wb/wordbreak - allow breaking long text (useful for URLs)
Examples
{{code|text}}–text{{code|1|2|3|4|5}}–12345- Formatted code
- Comma delimiter
- And delimiter
- Or delimiter
- Escape character usage
Source
This template is a fork of Minecraft Wiki's Code template.