模板:Codett/doc

来自决策链云智库
< 模板:Codett
Zeroclanzhang讨论 | 贡献2024年1月21日 (日) 22:38的版本 (创建页面,内容为“{{Documentation subpage}} <!-- Template categories go at the bottom of this page. --> 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; color:inherit; padding: 0px 0px;"}}</nowiki>}} For example, {{code|someMethodOfSomeClass}} becomes {{codett|someMethodOfSomeClass}}. C…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

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; padding: 0px 0px;"}}

For example, someMethodOfSomeClass becomes someMethodOfSomeClass.

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

See also