Difference between revisions of "Template:Smalltext"

From PC-BSD Wiki
Jump to: navigation, search
Line 1: Line 1:
<span class="smalltext" >{{{txt|{{{1|ERROR}}}}}}</span><noinclude><!-- (there is an error/issue in the code for explanation here) This allows for small text in a heading.
+
<span class="smalltext" >{{{text|{{{txt|{{{1|ERROR}}}}}}}}}</span><noinclude>
<nowiki><span style="font-size:small">{{{txt|{{{1|ERROR}}}}}}</span></nowiki>
+
== Usage ==
== Usage in context ==
+
'''<nowiki>{{</nowiki>smalltext{{pipe}}text='''''text to make smaller'''''<nowiki>}}</nowiki>'''
'''<nowiki>== header text {{</nowiki>smalltext|txt='''''example text'''''<nowiki>}} ==</nowiki>'''
+
== Explanation ==
== Result in context ==
+
This is a simple template to {{smalltext|text=reduce the size of text}} that could {{smalltext|also have '''bold''' or ''italic'' style.}} If an equal sign (=) causes trouble, assign the target to the variable '''''text'''''. Please note that this template adds padding of one space to either side of the text content.</noinclude>[[category:uses smalltext]]<noinclude>[[category:templates]][[category:style]]</noinclude><!-- there must be no space or text after this comment -->
== header text {{Smalltext|txt=example text}}== -->
+
</noinclude><noinclude>[[category:templates]][[category:style]]</noinclude><!-- there must be no space or text after this comment -->
+

Revision as of 22:43, 22 April 2013

ERROR

Usage

{{smalltext|text=text to make smaller}}

Explanation

This is a simple template to reduce the size of text that could also have bold or italic style. If an equal sign (=) causes trouble, assign the target to the variable text. Please note that this template adds padding of one space to either side of the text content.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox