Template:Sthl: Difference between revisions

From Space Station 14 Wiki
(source)
(cat)
 
(One intermediate revision by the same user not shown)
Line 38: Line 38:
''Based on https://cosmoteer.wiki.gg/wiki/Template:Sthl''
''Based on https://cosmoteer.wiki.gg/wiki/Template:Sthl''


[[Category:Markup Templates]]
[[Category:Code templates]]
[[Category:Templates without documentation pages]]
[[Category:Templates without documentation pages]]
[[Category:Unfinished templates]]
[[Category:Unfinished templates]]

Latest revision as of 10:23, 15 August 2024

Template documentation
view or edit this documentation about template documentation

Template:Sthl/doc

Based on https://cosmoteer.wiki.gg/wiki/Template:Sthl

A template version of <syntaxhighlight> (with a few additions and limitations). One of biggest differences is that the content you pass is expanded, meaning if you wish to pass a template expression, wrap it in <nowiki> tag first. See https://www.mediawiki.org/wiki/Extension:SyntaxHighlight for details on <syntaxhighlight>, see the params and their description for changes. The name of this template comes from "SynTax HighLight".

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Content1

The content to display. It will get expanded, so wrap anything that you don't want expanded in <nowiki>...</nowiki>; if you use Visual Editor, the wrapped content will appear with <nowiki> tags in the editor, but will rendered without them once saved.

Contentrequired
Force "Mediawiki" languagemw

A shorthand for "lang=mediawiki". If set, overrides "Code Language" parameter. Set to any value other than 0 to enable.

Auto value
0
Booleansuggested
Code Languagelang

The target code language. "text" by default.

Suggested values
abap abl abnf aconf actionscript actionscript3 ada ada2005 ada95 adl agda aheui ahk alloy ambienttalk amdgpu ampl ansys antlractionscrip antlra antlr# antlrcp antlrcshar antlrjav antlrobj antlrper antlrpytho antlrr antlrrub antlr apache apacheconf apdl apl applescript arduino arexx arrow art arturo as as3 asc asm asn1 aspectj aspxc aspxv asy asymptote at augeas autohotkey autoit awk b3d bare basemake bash basic bat batch bazel bbcbasic bbcode bc bdd be befunge berry bf bib bibtex blitzbasic blitzmax blueprint bmax bnf boa boo boogie bplus bqn brainfuck bro bsdmake bstpybte bst bugs cobjdum c c+objdumb c+ ca65 cadl camkes capdl capnp carbon cbmbas cddl ceylon cf3 cfc cfengine3 cfg cfm cfs chai chaiscript chapel charmci cheetah chpl cirru cl clay clean clipper clj cljs clojure clojurescript cmake cobol cobolfree coffeescrip coffee coffeescript comal comal80 commonlis componentpascal console control coq cp cplint cppobjdum cpp cpsa cr crmsh croc cry cryptol crystal cs csh csharp csoundcs csounddocumen csoundor csoundsc csoundscor csound css cssdjang csser cssgensh cssgenshitex cssjinj csslass cssmak cssmozprepro cssmyght cssph cssrub csssmart cssul cu cucumber cuda cxxobjdum cypher cython dobjdum d dart dasm16 dax debcontrol debsources delphi desktop devicetree dg diff django dmesg do docker dockerfile dosbatch doscon dosini dot dpatch dtd dts duby duel dylanconsol dylanli dylanrep dylan earlgre earlgrey easytrieve ebnf ec ecl eg eiffel elisp elixir elm elpi emacslis emacs email eml erb erl erlang evoque ex execline exs extempore ezhil f f90 factor fan fancy fc felix fennel fif fift fish fishshell flatline flo floscript flx fnl forth fortran fortranfixed foxpro freefem fsharp fstar func futhark fy gapconsol gaprep gap gas gawk gcode gd gdscript genshi genshitext gherkin glsl gnuplot go golang golo gooddatac gosu graphql graphviz groff groovy gsed gsql gst haml handlebars haskell haxe haxeml hcl hexdump hlsl hs hsa hsail hspec html htmlcheeta htmldjang htmler htmlevoqu htmlgensh htmlhandlebar htmljinj htmlki htmllass htmlmak htmlmyght htmlng htmlph htmlrub htmlsmart htmlspitfir htmltwi htmlul htmlvelocit htmlcheetah htmldjango http hx hxml hxsl hy hybris hylang i6 i6t i7 icon idl idl4 idr idris iex igor igorpro ik inform6 inform7 ini io ioke irb irc isabelle j jade jags janet jasmin jasminxt java javascript javascriptcheeta javascriptdjang javascripter javascriptgensh javascriptgenshitex javascriptjinj javascriptlass javascriptmak javascriptmozprepro javascriptmyght javascriptph javascriptrub javascriptsmart javascriptspitfir jbst jcl jinja jl jlcon jmespath jp jproperties js jscheeta jsdjang jser jsgensh jsgenshitex jsjinj jslass jsmak jsmyght jsph jsrub jssmart jsspitfir jsul jsgf jslt jsonl jsonobjec json jsonld jsonmlbs jsonnet jsp jsx juliarep julia juttle k kal kconfig kernelconfi kid kmsg koka kotlin kql ksh kuin kusto lagda lasso lassoscript latex lcry lcryptol ldapconf ldaprc ldif lean lean3 lean4 less lhaskell lhs lid lidr lidris lighttpd lighty lilypond limbo linuxconfi linuxconfig liquid lisp literateagd literatecrypto literatehaskel literateidri livescrip livescript llvmmi-body llvmmi llvm lobas logos logtalk lsl lua luau m2 macaulay2 macsyma make makefile mako man maql markdown mask mason mathematica matlab matlabsession mawk maxima mcf mcfunction mcschema md mediawiki menuconfig mesonbuil meson mf mime minid miniscript mips mma modelica modula2 moin monkey monte moo moocode moon moonscript mosel mozhashpreproc mozpercentpreproc mq4 mq5 mql mql4 mql5 ms msc mscgen mupad mxml myghty mysql nasm nawk nb ncl nemerle nesc nestedtext newlisp newspeak ng2 nginx nim nimrod nit nix nixos nodejsrepl notmuch nroff nsh nsi nsis nt numpy nusmv obj obj++ objc objc+ objdumpnas objdump objective objective++ objectivec objectivec+ objectivej objectpascal objj ocaml octave odin omgid oobas ooc opa openbugs openedge openrc openscad output pacmanconf pan parasail pas pascal pawn pcmk peg pem perl perl6 phix php php3 php4 php5 pig pike pkgconfig pl pl6 plpgsql po pointless pony portugol posh postgresconsol postgresexplai postgres postgresqlconsol postgresql postscr postscript pot pov powershell praat procfile progress prolog promela promql properties proto protobuf prql ps1 ps1con psm1 psql psysh ptx pug puppet pwshsessio pwsh py pyul py2 py2tb py3 py3tb pycon pypy pypylog pyrex pytb python python2 python3 pyx q qbasic qbs qlik qlikscript qliksense qlikview qml qvt qvto r racket ragel ragelcp ragele rageljav ragelobj ragelr ragelrub raku rb rbcon rconsole rd react reason reasonml rebol red redsyste redcode registry resource resourcebundle rest restructuredtext rexx rhtml ride rita rkt rnc rngcompac roboconfgrap roboconfinstance robotframework rout rql rs rsl rst rts ruby rust s sage salt sarl sas sass savi sbatch sc scala scaml scd scdoc scheme scilab scm scss sed sgf sh shellsessio shell shen shex shexc sieve silver singularity slash slim sls slurm smali smalltalk smarty smithy sml snbt snobol snowball sobas solidity sophia sourceslis sourceslist sp sparql spec spice spicelang spitfire splus sql sqljinj sqlite3 squeak squidcon squid squidconf srcinfo ssed ssp st stan starlark stata supercollider sv swift swig systemd systemverilog tsq tact tads3 tal tap tasm tcl tcsh tcshcon tea teal teraterm teratermmacro termcap terminfo terraform tex text tf thingsdb thrift ti tid tlb tls tnt todotxt toml tracwik trafficscript treetop ts tsql ttl turtle twig typescript typoscript typoscriptcssdata typoscripthtmldata typst ucode udiff ul4 unicon unixconfig urbiscript urlencoded usd usda uxntal v vala vapi vbne vbnet vbscript vcl vclsnippet vclsnippets vctreestatus velocity verifpal verilog vfp vgl vhdl vim visualprolog visualprologgrammar vyper wast wat wdiff webidl wgsl whiley wikitext winbatch winbugs wowtoc wren x+ x10 xbase xml xmlcheeta xmldjang xmler xmlevoqu xmlgensh xmljinj xmlki xmllass xmlmak xmlmyght xmlph xmlrub xmlsmart xmlspitfir xmlul xmlvelocit xorgcon xpp xq xql xqm xquery xqy xslt xten xtend xulmozprepro yaml yamljinj yang yar yara zeek zephir zig zone zsh
Default
text
Stringsuggested
Inlineinline i

Whether to display the generated inline code block. Disables line numbering.

Auto value
0
Booleansuggested
Enable linesline

Enables displaying of lines. A language must be specified for this to work. Set to 0 to disable, set to any other value to enable.

Auto value
0
Booleansuggested
Highlight lineshighlight

A list of lines to highlight, separated by a comma, e.g., "4", "7". Ranges are also allowed: "2-5". Combined: "4, 7-14".

Stringsuggested
Starting linestart

The line to start counting from. "Enable lines" must be set for this to work.

Numbersuggested
Classclass

Class name to use (?). Might override the default class names.

Stringoptional
Stylestyle

Custom CSS styles.

Contentoptional