コンテンツにスキップ

Template:Codett

テンプレートの解説[表示] [編集] [履歴] [キャッシュを破棄]

このテンプレートは背景・ボーダー・文字色を取り除いた上で、{{code}}に他の引数をそのまま渡します。

{{code|{{{code|{{{1}}}}}}|lang={{{lang|{{{2|text}}}}}}|class={{{class|}}}|id={{{id|}}}}}|style="background:none; border:none; color:inherit; padding: 0px 0px; color:var(--color-base, #202122);{{{style|}}}"}}

例えばsomeMethodOfSomeClasssomeMethodOfSomeClassになります。

コード片の表示においてHTMLで廃止済みの<tt>...</tt>要素が使われている場合に、既存のテキストの見栄えを崩すことなく置き換えることに使えます。

Note: Sets color to base (  #202122), if you need it to take on the font color of the rest of the body text should that be different from Color-base, then add |style=color:inherit; which will override the previous color attribute.

関連項目

[編集]