Difference between revisions of "Template:Smalltext"

From PC-BSD Wiki
Jump to: navigation, search
(Explanation)
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
<includeonly><span style="font-size:small">{{{txt|{{{1|ERROR}}}}}}</span></includeonly><noinclude>
+
<span class="smalltext" >{{{text|{{{txt|{{{1|ERROR}}}}}}}}}</span><noinclude>
<!-- (have to fix an error but no time to do it *now*) This allows for small text in a heading.
+
== Usage ==
<nowiki><span style="font-size:small">{{{txt|{{{1|ERROR}}}}}}</span></nowiki>
+
'''<nowiki>{{</nowiki>smalltext{{pipe}}text='''''text to make smaller'''''<nowiki>}}</nowiki>'''
== Usage in context ==
+
== Explanation ==
'''<nowiki>== header text {{</nowiki>smalltext|txt='''''example text'''''<nowiki>}} ==</nowiki>'''
+
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 -->
== Result in context ==
+
== header text {{Smalltext|txt=example text}}== -->
+
</noinclude>
+
<noinclude>[[category:templates]]</noinclude>
+

Latest revision as of 22: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.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox