Template:Codett/doc

From English Wikipedia @ Freddythechick

Wrapper for {{code}} that removes background and border, and passes through all other parameters:

<syntaxhighlight lang="wikitext" class="" style="" inline="1">{{code|{{{code|{{{1}}}}}}|lang={{{lang|{{{2|text}}}}}}|class={{{class|}}}|id={{{id|}}}}}|style="background:none; border:none; color:inherit; padding: 0px 0px;"}}</syntaxhighlight>

For example, <syntaxhighlight lang="text" class="" style="" inline="1">someMethodOfSomeClass</syntaxhighlight> becomes <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">someMethodOfSomeClass</syntaxhighlight>.

Can be used to replace obsolete <tt>...</tt> tags that are applied to code fragments, without disrupting existing text appearance.

See also