Template:Codett

From immortal gurmat
Revision as of 05:50, 6 July 2019 by wii>Paradoctor (Undid revision 904997689 by TheGoodAndHolyLord (talk) completely different use cases)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Cleanup

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

<syntaxhighlight lang="text" class="" id="" style="" inline="1">{{code|{{{code|{{{1}}}}}}|lang={{{lang|{{{2|text}}}}}}|class={{{class|}}}|id={{{id|}}}}}|style="background:none; border:none"}}</syntaxhighlight>

For example, <syntaxhighlight lang="text" class="" id="" style="" inline="1">someMethodOfSomeClass</syntaxhighlight> becomes <syntaxhighlight lang="text" class="" id="" style="background:none; border:none" inline="1">someMethodOfSomeClass</syntaxhighlight>.

Can be used to replace <syntaxhighlight lang="text" class="" id="" style="" inline="1">...</syntaxhighlight> tags without disrupting existing text appearance.