Difference between revisions of "Template:Smalltext"

From PC-BSD Wiki
Jump to: navigation, search
(Explanation)
 
Line 3: Line 3:
 
'''<nowiki>{{</nowiki>smalltext{{pipe}}text='''''text to make smaller'''''<nowiki>}}</nowiki>'''
 
'''<nowiki>{{</nowiki>smalltext{{pipe}}text='''''text to make smaller'''''<nowiki>}}</nowiki>'''
 
== Explanation ==
 
== Explanation ==
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 -->
+
Assuming there is text within wiki header markup or html header tags: <h2>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.</h2></noinclude>[[category:uses smalltext]]<noinclude>[[category:templates]][[category:style]]</noinclude><!-- there must be no space or text after this comment -->

Latest revision as of 23:46, 22 April 2013

ERROR

[edit] Usage

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

[edit] Explanation

Assuming there is text within wiki header markup or html header tags:

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.