Template:Plaincode: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
<onlyinclude><code style="border: none; background: transparent; color: {{{color|{{{colour|inherit}}}}}}; padding: 0px 0px 0px 0px; {{{style|}}}">{{{1}}}</code></onlyinclude>
<includeonly><code style="border: none; background: transparent; color: {{{color|{{{colour|inherit}}}}}}; padding: 0px 0px 0px 0px; {{{style|}}}">{{{1}}}</code></includeonly><noinclude>
{{documentation}}
{{documentation}}


[[Category:Formatting templates]]
[[Category:Formatting templates]]
</noinclude>

Latest revision as of 18:52, 7 February 2025

Template documentation[view] [edit] [history] [purge]
English Wikipedia has an article on:

Use this template to create a <code> block without borders or background coloring.

You type You get
{{plaincode|ABCDEFG}} ABCDEFG

Parameters

{{{1}}} (required)
The text to be styled.
{{{color}}} or {{{colour}}} (optional)
Set a custom text color; the default is inherit (i.e. the same as the parent element).
{{{style}}} (optional)
Add custom CSS attributes for styling, other than border, background, color, and padding.