Template:Code: Difference between revisions
Created page with "<includeonly>{{#if: {{{2|}}}{{{wordbreak|{{{wb|}}}}}} | {{#invoke:DelimitedTag|output|1={{{1|{{{code|}}}}}}|tag=code|wordbreak={{{wordbreak|{{{wb|}}}}}}}} | <code>{{{1|{{{code|}}}}}}</code> }}</includeonly><noinclude> === Documentation === This template provides an alternative to HTML <code><code></code> elements. Useful for displaying multiple code snippets with custom delimiters. == Parameters == * '''Anonymous parameters''' - code text to display * '''d/delimi..." |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
=== Documentation === | === Documentation === | ||
{{shortcut|cd}} | |||
This template provides an alternative to HTML <code><code></code> elements. Useful for displaying multiple code snippets with custom delimiters. | This template provides an alternative to HTML <code><code></code> elements. Useful for displaying multiple code snippets with custom delimiters. | ||
| Line 19: | Line 19: | ||
## {{tl|code|<nowiki>''fancy text''</nowiki>}} – {{code|''fancy text''}} | ## {{tl|code|<nowiki>''fancy text''</nowiki>}} – {{code|''fancy text''}} | ||
## {{tl|code|<nowiki>'''emphasized text'''</nowiki>}} – {{code|'''emphasized text'''}} | ## {{tl|code|<nowiki>'''emphasized text'''</nowiki>}} – {{code|'''emphasized text'''}} | ||
## {{tl|code|<nowiki>link to [[ | ## {{tl|code|<nowiki>link to [[Aether]]</nowiki>}} – {{code|link to [[Aether]]}} | ||
## {{tl|code|<nowiki>[https://imgur.com/]</nowiki>}} – {{code|[https://imgur.com/]}} | ## {{tl|code|<nowiki>[https://imgur.com/]</nowiki>}} – {{code|[https://imgur.com/]}} | ||
# Comma delimiter | # Comma delimiter | ||
| Line 47: | Line 47: | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
[[ru:Template: | [[ru:Template:Код]] | ||
</noinclude> | </noinclude> | ||