Template:Codett: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Paradoctor
Undid revision 904997689 by TheGoodAndHolyLord (talk) completely different use cases
meta>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]]
[[Category:Semantic markup templates]]
[[Category:Semantic markup templates]]
[[Category:Wikipedia XHTML tag-replacing templates]]
[[Category:Wikipedia XHTML tag-replacing templates]]

Revision as of 12:20, 13 March 2020

CLEANUP CANDIDATE
Relevant discussion may be found on the talk page. Reason: No reason specified.


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; color:inherit"}}</syntaxhighlight>

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

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