Template:Quote: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
(Created page with '<blockquote class="templatequote"><div>{{{text|{{{1|<noinclude>{{lorem ipsum}}</noinclude><includeonly>{{error|Error: No text given for quotation (or equals sign used in the actu…')
 
No edit summary
Line 1: Line 1:
<blockquote class="templatequote"><div>{{{text|{{{1|<noinclude>{{lorem ipsum}}</noinclude><includeonly>{{error|Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)}}</includeonly>}}}}}}
<blockquote class="templatequote"><div>{{{text|{{{1|<noinclude>{{lorem ipsum}}</noinclude><includeonly>{{error|Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)}}</includeonly>}}}}}}
</div>{{#if:{{{sign|{{{2|<noinclude>TRUE</noinclude>}}}}}}|<div class="templatequotecite">&#8212;{{{sign|{{{2|<noinclude>[[Someone's full name|Someone]]</noinclude>}}}}}}{{#if:{{{source|{{{3|<noinclude>TRUE</noinclude>}}}}}}|,&nbsp;<cite>{{{source|{{{3|<noinclude>''Source''</noinclude>}}}}}}</cite>}}</div >}}</blockquote><noinclude>
</div>{{#if:{{{sign|{{{2|<noinclude>TRUE</noinclude>}}}}}}|<div class="templatequotecite">&#8212;{{{sign|{{{2|<noinclude>[[Someone's full name|Someone]]</noinclude>}}}}}}{{#if:{{{source|{{{3|<noinclude>TRUE</noinclude>}}}}}}|,&nbsp;<cite>{{{source|{{{3|<noinclude>''Source''</noinclude>}}}}}}</cite>}}</div >}}</blockquote><noinclude>
=== Usage ===
;Unnamed parameters
<code><nowiki>{{quote|phrase|person|source}}</nowiki></code>
; Named parameters
<code><nowiki>{{quote|text=phrase|sign=person|source=source}}</nowiki></code>
=== Example ===
; Wikitext:
<code><nowiki>{{quote|Cry “Havoc,” and let slip the dogs of war.|[[William Shakespeare]]|[[Julius Caesar (play)|''Julius Caesar'']], Act III, Scene I}}</nowiki></code>
:or
<code><nowiki>{{quote|text=Cry “Havoc,” and let slip the dogs of war.|sign=[[William Shakespeare]]|source=[[Julius Caesar (play)|''Julius Caesar'']], Act III, Scene I}}</nowiki></code>
; Result:
{{quote|text=Cry “Havoc,” and let slip the dogs of war.|sign=[[William Shakespeare]]|source=[[Julius Caesar (play)|''Julius Caesar'']], Act III, Scene I}}
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 14:30, 30 December 2010

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
SomeoneSource

Usage

Unnamed parameters

{{quote|phrase|person|source}}

Named parameters

{{quote|text=phrase|sign=person|source=source}}

Example

Wikitext

{{quote|Cry “Havoc,” and let slip the dogs of war.|[[William Shakespeare]]|[[Julius Caesar (play)|''Julius Caesar'']], Act III, Scene I}}

or

{{quote|text=Cry “Havoc,” and let slip the dogs of war.|sign=[[William Shakespeare]]|source=[[Julius Caesar (play)|''Julius Caesar'']], Act III, Scene I}}

Result
Cry “Havoc,” and let slip the dogs of war.
William ShakespeareJulius Caesar, Act III, Scene I