Difference between revisions of "Template: Quote"
(Created page with "{| style="margin:auto; border-collapse:collapse; border-style:none; width:{{#if: {{{wide|}}} | 100% | auto}}; | valign="top" style="width:20px; color:#DDDDDD; font-size:40px;"|«...") |
|||
(10 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | {| | + | <blockquote class="templatequote"><div class="templatequotetext"><p>{{{1|Enter quoted text as first parameter}}}</p></div>{{#if:{{{2<includeonly>|</includeonly>}}}|<div class="templatequotecite"><cite>—{{{2<noinclude>|Enter source as second parameter</noinclude>}}}</cite></div>}} |
− | + | </blockquote><noinclude> | |
− | + | ||
− | + | <!-- | |
− | { | + | /* Quote template CSS in common.css */ |
− | { | + | blockquote.templatequote { display:table; margin:1em 0; padding:0; position:relative; } |
− | { | + | blockquote.templatequote:before, blockquote.templatequote:after { position:absolute; top:0; height:1em; color:#DDDDDD; font:normal bold 3.5em 'Times New Roman',Times,serif; line-height:0.75em; } |
− | + | blockquote.templatequote:before { left:0; content:open-quote; } | |
− | + | blockquote.templatequote:after { right:0; content:close-quote; } | |
+ | blockquote.templatequote p { margin:0; } | ||
+ | blockquote.templatequote p i { font-style:normal; } | ||
+ | div.templatequotetext { margin:0 3em 0 2.5em; text-align:justify; font-style:italic; } | ||
+ | div.templatequotecite { text-align:left; margin:0.5em 2.5em; } | ||
+ | div.templatequotecite cite { font-style:normal; } | ||
+ | --> | ||
+ | |||
==Usage== | ==Usage== | ||
− | + | ===Enter=== | |
+ | <code><nowiki>{{</nowiki>quote| Quoted text | Quote by<nowiki>}}</nowiki></code> | ||
+ | ===Example=== | ||
+ | <code><nowiki>{{</nowiki>quote|Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post. I am the sword in the darkness. I am the watcher on the walls. I am the fire that burns against the cold, the light that brings the dawn, the horn that wakes the sleepers, the shield that guards the realms of men. I pledge my life and honor to the <nowiki>[[Night's Watch]]</nowiki>, for this night and all the nights to come. |Oath of the <nowiki>[[Night's Watch]]}}</nowiki></code> | ||
+ | ===Results=== | ||
+ | {{quote|Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post. I am the sword in the darkness. I am the watcher on the walls. I am the fire that burns against the cold, the light that brings the dawn, the horn that wakes the sleepers, the shield that guards the realms of men. I pledge my life and honor to the [[Night's Watch]], for this night and all the nights to come. |Oath of the [[Night's Watch]]}} | ||
+ | |||
+ | ==See Also== | ||
+ | * [[Template:Quote box]] | ||
+ | |||
[[Category:Templates]] | [[Category:Templates]] | ||
+ | [[ru:Шаблон:Цитата]] | ||
</noinclude> | </noinclude> | ||
− | |||
− |
Revision as of 20:05, 16 May 2018
Enter quoted text as first parameter
—Enter source as second parameter
Contents
Usage
Enter
{{quote| Quoted text | Quote by}}
Example
{{quote|Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post. I am the sword in the darkness. I am the watcher on the walls. I am the fire that burns against the cold, the light that brings the dawn, the horn that wakes the sleepers, the shield that guards the realms of men. I pledge my life and honor to the [[Night's Watch]], for this night and all the nights to come. |Oath of the [[Night's Watch]]}}
Results
Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post. I am the sword in the darkness. I am the watcher on the walls. I am the fire that burns against the cold, the light that brings the dawn, the horn that wakes the sleepers, the shield that guards the realms of men. I pledge my life and honor to the Night's Watch, for this night and all the nights to come.
—Oath of the Night's Watch