Template:Codett: Difference between revisions

From All Skies Encyclopaedia
imported>Paradoctor
(..it begins)
 
imported>Paradoctor
(Undid revision 1004791330 by MSGJ (talk): for what possible purpose? all we get is "{{{1}}}")
 
(11 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<includeonly>{{code|{{{code|{{{1}}}}}}|lang={{{lang|{{{2|text}}}}}}|class={{{class|}}}|id={{{id|}}}|style="background:none; border:none; color:inherit; padding: 0px 0px;"}}</includeonly><noinclude>{{documentation}}</noinclude>
{{cleanup|reason=needs some furniture to become a decent citizen}}

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>}}

For example, {{code|someMethodOfSomeClass}} becomes {{codett|someMethodOfSomeClass}}.

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>

[[Category:Programming typing-aid templates]]
[[Category:Semantic markup templates]]
[[Category:Wikipedia XHTML tag-replacing templates]]

Latest revision as of 19:37, 3 January 2025