Template:Sub/doc: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(Created page with "{{Documentation subpage}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> '''Sub'''scripts text, i.e. : <code><nowiki>{{Sub|Text to be subscripted}}</nowiki></code> produ...")
 
m (fix interwiki links)
 
Line 4: Line 4:
: <code><nowiki>{{Sub|Text to be subscripted}}</nowiki></code> produces: {{su|b=Text to be subscripted}}
: <code><nowiki>{{Sub|Text to be subscripted}}</nowiki></code> produces: {{su|b=Text to be subscripted}}


This template may be listed at [[Wikipedia:Subst]] as a good candidate for substituting (i.e. <nowiki>{{subst:sub}}</nowiki>&nbsp;). On a page that uses the template many times, however, this is likely to clutter and lengthen the page significantly.
This template may be listed at [[Wikipedia:Template:Subst]] as a good candidate for substituting (i.e. <nowiki>{{subst:sub}}</nowiki>&nbsp;). On a page that uses the template many times, however, this is likely to clutter and lengthen the page significantly.


Text can also be subscripted simply by using the <nowiki><sub> and </sub></nowiki> tags, so that:
Text can also be subscripted simply by using the <nowiki><sub> and </sub></nowiki> tags, so that:
Line 16: Line 16:
* {{tl|sup sub}} (text{{sup sub|sup|sub}})
* {{tl|sup sub}} (text{{sup sub|sup|sub}})
* {{tl|e}} (1.23{{e|4}})
* {{tl|e}} (1.23{{e|4}})
* [[Subscript and superscript]]
* [[wikipedia:Subscript and superscript]]


<includeonly>
<includeonly>

Latest revision as of 20:37, 11 February 2017

Subscripts text, i.e.

{{Sub|Text to be subscripted}} produces:
Text to be subscripted

This template may be listed at Wikipedia:Template:Subst as a good candidate for substituting (i.e. {{subst:sub}} ). On a page that uses the template many times, however, this is likely to clutter and lengthen the page significantly.

Text can also be subscripted simply by using the <sub> and </sub> tags, so that:

<sub>Text to be subscripted</sub> also produces: Text to be subscripted

See also