Difference between revisions of "Template: Quote"

From A Wiki of Ice and Fire
Jump to: navigation, search
m
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| style="margin:auto; border-collapse:collapse; border-style:none; width:{{#if: {{{wide|}}} | 100% | auto}};
+
<blockquote class="templatequote"><div class="templatequotetext"><p>{{{1|Enter quoted text as first parameter}}}</p></div>{{#if:{{{2<includeonly>|</includeonly>}}}|<div class="templatequotecite"><cite>&mdash;{{{2<noinclude>|Enter source as second parameter</noinclude>}}}</cite></div>}}
| valign="top" style="width:20px; color:#DDDDDD; font-size:40px;"|«
+
</blockquote><noinclude>
| style="padding:5px; font-style:italic; width:{{#if: {{{wide|}}} | 100% | auto}};"|{{{1|Enter quoted text as First paramater}}}
+
 
| valign="bottom" style="width:20px; color:#DDDDDD; font-size:40px;"|»
+
<!--
{{#if:{{{2<includeonly>|</includeonly>}}}|
+
/* Quote template CSS in common.css */
{{!}}-
+
blockquote.templatequote { display:table; margin:1em 0; padding:0; position:relative; }
{{!}}colspan="3" style="padding-right: 40px; font-size:smaller;text-align: right;"{{!}}{{{2<noinclude>|Quote by</noinclude>}}}
+
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; }
|}<noinclude>
+
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==
Type <code><nowiki>{{</nowiki>Quote| Quoted text | Quote by<nowiki>}}</nowiki></code>
+
===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>
+
[[ru:Шаблон:Цитата]]
 +
</noinclude>

Revision as of 20:05, 16 May 2018

Enter quoted text as first parameter

—Enter source as second parameter


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

See Also