Template:Text formatting template (see also): Difference between revisions
Template page
More actions
I am not sure which one to which |
mNo edit summary |
||
| (20 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
<!-- | <!-- The idea to this template comes from [[Template:Polling template/see also]] but since [[Template:Text formatting template]] not exists (and maybe will never exists) using this direct way without subpage | ||
--> | --><noinclude>{{en|This template is for the navigation between different {{C|Text formatting templates}}.}}</noinclude> | ||
{| class="wikitable" | {| class="wikitable" style="background-color:#fff" | ||
|+ {{C|Text formatting templates}} | |+ {{C|Text formatting templates}} | ||
|- | |- | ||
! Code example !! Renders as !! style="border-right:2px solid #aaa" | Notes | |||
! Code example !! Renders as !! Notes | |||
! Code !! Renders as !! style="border-right:2px solid #aaa" | Notes | |||
! Code !! Renders as !! Notes | |||
|- | |- | ||
| <code>X{{tlx|Exp|superscript text}}</code> || X{{exp|superscript text}} || style="border-right:2px solid #aaa" | {{Warnsign|}} Don't use {{tl|sup}} which links to {{tl|support}} | | <code>X{{tlx|Exp|superscript text}}</code> || X{{exp|superscript text}} || style="border-right:2px solid #aaa" | {{Warnsign|}} Don't use {{tl|sup}} which links to {{tl|support}} | ||
| <code>X{{tlx|Smallsup|small superscript text}}</code> || X{{Smallsup|small superscript text}} || with | | <code>X{{tlx|Smallsup|small superscript text}}</code> || X{{Smallsup|small superscript text}} || with smaller text | ||
|- | |- | ||
| <code>X{{tlx|Sub|subscript text}}</code> || X{{Sub|subscript text}} || style="border-right:2px solid #aaa" | | | <code>X{{tlx|Sub|subscript text}}</code> || X{{Sub|subscript text}} || style="border-right:2px solid #aaa" | | ||
| <code>X{{tlx|Smallsub|small subscript text}}</code> || X{{Smallsub|small subscript text}} || with | | <code>X{{tlx|Smallsub|small subscript text}}</code> || X{{Smallsub|small subscript text}} || with smaller text | ||
|- | |- | ||
| colspan="3" style="border-right:2px solid #aaa" | | | colspan="3" style="border-right:2px solid #aaa" | — | ||
| <code>X{{tlx|Sup sub|superscript|subscript}}</code> || X{{Sup sub|superscript|subscript}} || with | | <code>X{{tlx|Sup sub|superscript|subscript}}</code> || X{{Sup sub|superscript|subscript}} || with smaller text | ||
|- | |- | ||
| <code>X{{tlx|Big|big text}}</code> || X{{Big|big text}} || style="border-right:2px solid #aaa" | | | <code>X{{tlx|Big|big text}}</code> || X{{Big|big text}} || style="border-right:2px solid #aaa" | | ||
| <code>X{{tlx|Small|small text}}</code> || X{{Small|small text}} || | | <code>X{{tlx|Small|small text}}</code> || X{{Small|small text}} || Font size 85% | ||
|- | |- | ||
| <code>X{{tlx|Font-size|120%|font-size 120%}}</code> || X{{Font-size|120%|font-size 120%}} || style="border-right:2px solid #aaa; text-align:right" | ''← could maybe be merged →'' | | <code>X{{tlx|Font-size|120%|font-size 120%}}</code> || X{{Font-size|120%|font-size 120%}} || style="border-right:2px solid #aaa; text-align:right" | ''← could maybe be merged →'' | ||
| Line 26: | Line 23: | ||
|- | |- | ||
| <code>X{{tlx|Overline|overlined}}</code> || X{{Overline|overlined}} || style="border-right:2px solid #aaa" | | | <code>X{{tlx|Overline|overlined}}</code> || X{{Overline|overlined}} || style="border-right:2px solid #aaa" | | ||
| colspan="3" | — | |||
|- | |- | ||
| <code>X{{tlx| | | <code>X{{tlx|Explain|term|explanation}}</code> || X{{Explain|term|explanation}} || style="border-right:2px solid #aaa" | | ||
| colspan="3" | — | |||
|- | |- | ||
| <code>X{{tlx|Mark|marked text}}</code> || X{{Mark|marked text}} || style="border-right:2px solid #aaa" | Same color as used in [[m:Help:diff|diffs]]. | | <code>X{{tlx|Mark|marked text}}</code> || X{{Mark|marked text}} || style="border-right:2px solid #aaa" | Same color as used in [[m:Help:diff|diffs]]. | ||
| <code>X{{tlx|Highlight|highlighted text|#FF0|green}}</code> || X{{Highlight|highlighted text|#FF0|green}} || | | <code>X{{tlx|Highlight|highlighted text|#FF0|green}}</code> || X{{Highlight|highlighted text|#FF0|green}} || Multiple format parameters possible | ||
|- | |||
| <code>X{{tlx|Small-caps|Small capitals}}</code> || X{{Small-caps|Small capitals}} || style="border-right:2px solid #aaa" | | |||
| colspan="3" | — | |||
|- | |- | ||
| <code>X | | <code>X[[:w:en:Help:HTML in wikitext#kbd|<nowiki><kbd></nowiki>]]­teletype[[:w:en:Help:HTML in wikitext#kbd|<nowiki></kbd></nowiki>]]</code> || X<kbd>teletype</kbd> || style="border-right:2px solid #aaa" | [[:w:en:Tag (metadata)|Tags]], not a template yet<sup><small>[[:w:en:Template:Kbd|(en)]]</small></sup> (but used in e.g. {{tl|tld}}) | ||
| <code>X[[:w:en:Help:HTML in wikitext#code|<nowiki><code></nowiki>]]­code[[:w:en:Help:HTML in wikitext#kbd|<nowiki></code></nowiki>]]</code> || X<code>code</code> || [[:w:en:Tag (metadata)|Tags]], not a template yet<sup><small>[[:w:en:Template:Code|(en)]]</small></sup> (but used in e.g. {{tl|tlc}}) | |||
|} | |} | ||
:''Note:'' The capital <code>X</code> in front of each template is used to compare the results to plain text. | :''Note:'' The capital <code>X</code> in front of each template is used to compare the results to plain text. | ||
<noinclude>[[Category:Text formatting templates|+]]</noinclude> | <noinclude> | ||
[[Category:Text formatting templates|+]] | |||
[[Category:Commons navigational templates|templates]] | |||
[[Category:Multi-template documentation]] | |||
</noinclude> | |||
Latest revision as of 13:19, 11 April 2025
English: This template is for the navigation between different Text formatting templates.
| 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.