Template:Codett: Difference between revisions

From All Skies Encyclopaedia
imported>Paradoctor
(Undid revision 904997689 by TheGoodAndHolyLord (talk) completely different use cases)
imported>DarthKitty
(inherit text color, like <tt> tags)
Line 3: Line 3:
Wrapper for {{tl|code}} that removes background and border, and passes through all other parameters:
Wrapper for {{tl|code}} that removes background and border, and passes through all other parameters:


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


For example, {{code|someMethodOfSomeClass}} becomes {{codett|someMethodOfSomeClass}}.
For example, {{code|someMethodOfSomeClass}} becomes {{codett|someMethodOfSomeClass}}.
Line 9: Line 9:
Can be used to replace {{code|<tt>...</tt>}} tags without disrupting existing text appearance.
Can be used to replace {{code|<tt>...</tt>}} tags without disrupting existing text appearance.


<onlyinclude><includeonly>{{code|{{{code|{{{1}}}}}}|lang={{{lang|{{{2|text}}}}}}|class={{{class|}}}|id={{{id|}}}|style="background:none; border:none"}}</includeonly></onlyinclude>
<onlyinclude><includeonly>{{code|{{{code|{{{1}}}}}}|lang={{{lang|{{{2|text}}}}}}|class={{{class|}}}|id={{{id|}}}|style="background:none; border:none; color:inherit"}}</includeonly></onlyinclude>


[[Category:Programming typing-aid templates]]
[[Category:Programming typing-aid templates]]

Revision as of 12:20, 13 March 2020

Template:Cleanup

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

{{code|{{{code|{{{1}}}}}}|lang={{{lang|{{{2|text}}}}}}|class={{{class|}}}|id={{{id|}}}}}|style="background:none; border:none; color:inherit"}}

For example, someMethodOfSomeClass becomes someMethodOfSomeClass.

Can be used to replace <tt>...</tt> tags without disrupting existing text appearance.