v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Template:Code

From Dwarf Fortress Wiki
Revision as of 16:56, 2 February 2022 by Jan (talk | contribs) (→‎Usage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
[token]

Wrapper template that show syntax-highlighted text. The template uses the <syntaxhighlight> tag (see Extension:SyntaxHighlight).

Usage[edit]

Simply wrapper the template around your code: {{code|<your code here>}} or {{code|code=<your code here>}}

{{{code|
...
Your code
...
}}

Note: If the content includes an equals sign (=), you must specify the parameter explicitly:

{{{code|code=
...
Your code with = sign
...
}}