![]() | This proposal is part of "A Dozen Visions for Wikitext". Shortcuts: Versioning - Grunge - Markdown - HTML-only wikis - Extension tag fragments - Syntax uniformity - Colon replacement - Backticks - Syntax for Discussions - #media - #lang - #balance - Long arguments - Variable-length/structured arguments - Annotations - Visual Templates - Page Description Language - Native Script Editing - One Wiki |
Backticks for <code>
are often requested, similar to markdown.
<code>hello, world!</code>
becomes
`hello, world!`
(This is the first "inside wikitext" feature that wasn’t in Grunge. The Grunge equivalent would be {`hello, world!`}
, since Grunge prefers consistent curly-brace delimiters.)
This would be a fairly straightforward addition to wikitext; the difficult part would be linting all of our existing content to ensure that existing content with backticks wouldn't be affected. It might be best to enable code backticks only on non-encyclopedic wikis, or in the Template:
or Module:
namespaces, or only as a shortcut in VisualEditor but not as wikitext syntax.
Next section: Syntax for Discussions