Difference between revisions of "Template:Tinyquote"
Jump to navigation
Jump to search
(Ripped it off ED. Hope it works.) |
(Added usage, recategorized as a formatting template.) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 12: | Line 12: | ||
</center> | </center> | ||
<noinclude> | <noinclude>{{usage|1=This is a formatting template used to add a block quote to an article, but with a smaller font than what is used for [[Template:Quote]] or [[Template:Squote]]. | ||
< | The format for using this template is as follows:<br /> | ||
'''<pre>{{Tinyquote|1=I'LL BREAK YOU DEAD!|2=Christian Weston Chandler|3=Phone message to Jason Kendrick Howell}}</pre>''' | |||
- Displays:{{Tinyquote|I'LL BREAK YOU DEAD!|Christian Weston Chandler|Phone message to Jason Kendrick Howell}} | |||
'''Template structure''' | |||
<nowiki>{{Tinyquote| 1 | 2 | 3 |color=silver|size=360%}}</nowiki> | |||
'''Notes''' | '''Notes''' | ||
Line 27: | Line 29: | ||
# If you want to change the color and size variables, you must declare the parameter explicitly (i.e. you must include "color=" or "size="). | # If you want to change the color and size variables, you must declare the parameter explicitly (i.e. you must include "color=" or "size="). | ||
#If you want to change the size parameter, then you must include a unit of measurement (e.g. %, px, pt). | #If you want to change the size parameter, then you must include a unit of measurement (e.g. %, px, pt). | ||
# "If a parameter value contains an equals sign, the parameter name must be declared explicitly." This means that if you want to include a URL in your quote, and if that URL contains an equals sign, then you must explicitly declare the parameter. All that means is that you should add "1=", "2=", or "3=", as appropriate, ahead of your quote text, speaker, or source, like this: <nowiki>{{ | # "If a parameter value contains an equals sign, the parameter name must be declared explicitly." This means that if you want to include a URL in your quote, and if that URL contains an equals sign, then you must explicitly declare the parameter. All that means is that you should add "1=", "2=", or "3=", as appropriate, ahead of your quote text, speaker, or source, like this: <nowiki>{{quote|1=Quote text|2=Person|3=Source|color=silver|size=360%}}</nowiki> | ||
</noinclude> | |||
'''<pre>{{Tinyquote|1=I'LL BREAK YOU DEAD!|2=Chris|3=URL with = sign|color=blue|size=500%}}</pre>''' | |||
- Displays:{{Tinyquote|1=I'LL BREAK YOU DEAD!|2=Chris|3=URL with = sign|color=blue|size=500%}} | |||
}} | |||
[[Category:Formatting and function templates|{{PAGENAME}}]] | |||
See [[Template:Quote]] for displaying block quotes in a larger font size. | |||
See [[Template:Squote]] for displaying block quotes in a slightly larger font size.</noinclude> |
Latest revision as of 12:26, 2 December 2010
— |
Usage
These usage notes will not be included in articles bearing this template.
This is a formatting template used to add a block quote to an article, but with a smaller font than what is used for Template:Quote or Template:Squote.
The format for using this template is as follows:
{{Tinyquote|1=I'LL BREAK YOU DEAD!|2=Christian Weston Chandler|3=Phone message to Jason Kendrick Howell}}
- Displays:
—Christian Weston Chandler, Phone message to Jason Kendrick Howell |
Template structure
{{Tinyquote| 1 | 2 | 3 |color=silver|size=360%}}
Notes
- The "color" and "size" parameters refer to the quotation marks—not the text.
- If you want to change the color and size variables, you must declare the parameter explicitly (i.e. you must include "color=" or "size=").
- If you want to change the size parameter, then you must include a unit of measurement (e.g. %, px, pt).
- "If a parameter value contains an equals sign, the parameter name must be declared explicitly." This means that if you want to include a URL in your quote, and if that URL contains an equals sign, then you must explicitly declare the parameter. All that means is that you should add "1=", "2=", or "3=", as appropriate, ahead of your quote text, speaker, or source, like this: {{quote|1=Quote text|2=Person|3=Source|color=silver|size=360%}}
{{Tinyquote|1=I'LL BREAK YOU DEAD!|2=Chris|3=URL with = sign|color=blue|size=500%}}
- Displays:
—Chris, URL with = sign |
See Template:Quote for displaying block quotes in a larger font size.
See Template:Squote for displaying block quotes in a slightly larger font size.