Template:Highlight: Difference between revisions
Template page
More actions
m catdiff |
unifiedi |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<span style="background-color:{{{2|# | <span style="background-color:{{{2|#FF6}}}; color:{{{3|black}}}">{{{1}}}</span><noinclude> | ||
| Line 7: | Line 7: | ||
* <nowiki>{{</nowiki>highlight|some text here|#77DD77}} → {{highlight|some text here|#77DD77}} | * <nowiki>{{</nowiki>highlight|some text here|#77DD77}} → {{highlight|some text here|#77DD77}} | ||
* <nowiki>{{</nowiki>highlight|<nowiki>''some text here''</nowiki>|lightskyblue|red}} → {{highlight|''some text here''|lightskyblue|red}} | * <nowiki>{{</nowiki>highlight|<nowiki>''some text here''</nowiki>|lightskyblue|red}} → {{highlight|''some text here''|lightskyblue|red}} | ||
* <nowiki>{{</nowiki>highlight|some text here|none}} → {{highlight|some text here|none}} | |||
* <nowiki>{{</nowiki>highlight|<nowiki>'''bold text here'''</nowiki>|none|blue}} → {{highlight|'''bold text here'''|none|blue}} | |||
'''See also:''' | |||
{{Text formatting template (see also)}} | |||
[[Category:Colorbox formatting templates| ]] | |||
[[Category:Color text formatting templates| ]] | [[Category:Color text formatting templates| ]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 02:37, 13 February 2024
{{{1}}}
Examples:
- {{highlight|some text here}} → some text here
- {{highlight|some text here|#77DD77}} → some text here
- {{highlight|''some text here''|lightskyblue|red}} → some text here
- {{highlight|some text here|none}} → some text here
- {{highlight|'''bold text here'''|none|blue}} → bold text here
See also:
| Code example | Renders as | Notes | Code example | Renders as | Notes |
|---|---|---|---|---|---|
X{{Exp|superscript text}} |
Xsuperscript text | X{{Smallsup|small superscript text}} |
Xsmall superscript text | with smaller text | |
X{{Sub|subscript text}} |
Xsubscript text | X{{Smallsub|small subscript text}} |
Xsmall subscript text | with smaller text | |
| — | X{{Sup sub|superscript|subscript}} |
Xsuperscriptsubscript | with smaller text | ||
X{{Big|big text}} |
Xbig text | X{{Small|small text}} |
Xsmall text | Font size 85% | |
X{{Font-size|120%|font-size 120%}} |
Xfont-size 120% | ← could maybe be merged → | X{{Resize|120%|font-size 120%}} |
Xfont-size 120% | |
X{{Overline|overlined}} |
Xoverlined | — | |||
X{{Explain|term|explanation}} |
Xterm | — | |||
X{{Mark|marked text}} |
Xmarked text | Same color as used in diffs. | X{{Highlight|highlighted text|#FF0|green}} |
Xhighlighted text | Multiple format parameters possible |
X{{Small-caps|Small capitals}} |
XSmall capitals | — | |||
X<kbd>teletype</kbd> |
Xteletype | Tags, not a template yet(en) (but used in e.g. {{Tld}}) | X<code>code</code> |
Xcode |
Tags, not a template yet(en) (but used in e.g. {{Tlc}}) |
- Note: The capital
Xin front of each template is used to compare the results to plain text.