Ero sivun ”Malline:Quotation” versioiden välillä
ApoWikistä
(lähdekoodi http://en.wikipedia.org/wiki/Template:Quotation , vaihtoehtoinen malline lainausten esittämiseen) |
(Ohjeet) |
||
Rivi 2: | Rivi 2: | ||
{{#if:{{{2|<noinclude>x</noinclude>}}}|<p style="text-align: right;"> – <cite>{{{2}}}{{#if:{{{3|<noinclude>x</noinclude>}}}|, ''{{{3}}}''}}{{#if:{{{4|<noinclude>x</noinclude>}}}|, {{{4}}}}}</cite></p>}}</blockquote><noinclude> | {{#if:{{{2|<noinclude>x</noinclude>}}}|<p style="text-align: right;"> – <cite>{{{2}}}{{#if:{{{3|<noinclude>x</noinclude>}}}|, ''{{{3}}}''}}{{#if:{{{4|<noinclude>x</noinclude>}}}|, {{{4}}}}}</cite></p>}}</blockquote><noinclude> | ||
==Usage== | |||
* '''You should not put quotation marks around the quote. This template acts as a [[pull quote]] to separate it from the text instead.''' | |||
* '''NOTE''': This template should '''not be used''' for [[block quote]]s in article text. For long quotations in the text, the [[Wikipedia:Manual of Style#Quotations|Manual of Style]] recommends using the HTML <[[blockquote]]> element, such as through the use of the {{tl|Quote}} template. | |||
* <code><nowiki>{{Quotation|Clunk mouse colored mauve. Bully other rodents, stealing the cheese rapid. Police mice catch crook squeak video prime time TV show. Juror mouse frown XXXX1.|Whoever said it|Source of the quote}}</nowiki></code> | |||
produces: | |||
{{Quotation|Clunk mouse colored mauve. Bully other rodents, stealing the cheese rapid. Police mice catch crook squeak video prime time TV show. Juror mouse frown XXXX1.|Whoever said it|Source of the quote}} | |||
* <CODE><NOWIKI>{{Quotation|Your text|Author||from "Short Story", in ''Anthology'' (</NOWIKI>{{CURRENTYEAR}}<NOWIKI>)}}</NOWIKI></CODE> | |||
produces the following (notice the <NOWIKI>||</NOWIKI> to skip the italicized parameter): | |||
{{Quotation|Your text|Author||from "Short Story", in ''Anthology'' ({{CURRENTYEAR}})}} | |||
===The equal sign (=)=== | |||
If any of the parameters include an equal sign, this will make the template not recognize the parameter properly. To fix this the parameter needs to be prefixed with "1=", "2=", etc. depending on which of the templates parameter's this applies to. | |||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> | ||
</noinclude> | </noinclude> |
Nykyinen versio 11. tammikuuta 2009 kello 20.40
– {{{2}}}, {{{3}}}, {{{4}}}
Usage[muokkaa]
- You should not put quotation marks around the quote. This template acts as a pull quote to separate it from the text instead.
- NOTE: This template should not be used for block quotes in article text. For long quotations in the text, the Manual of Style recommends using the HTML <blockquote> element, such as through the use of the {{Quote}} template.
{{Quotation|Clunk mouse colored mauve. Bully other rodents, stealing the cheese rapid. Police mice catch crook squeak video prime time TV show. Juror mouse frown XXXX1.|Whoever said it|Source of the quote}}
produces:
Clunk mouse colored mauve. Bully other rodents, stealing the cheese rapid. Police mice catch crook squeak video prime time TV show. Juror mouse frown XXXX1.
– Whoever said it, Source of the quote
{{Quotation|Your text|Author||from "Short Story", in ''Anthology'' (2024)}}
produces the following (notice the || to skip the italicized parameter):
Your text
– Author, from "Short Story", in Anthology (2024)
The equal sign (=)[muokkaa]
If any of the parameters include an equal sign, this will make the template not recognize the parameter properly. To fix this the parameter needs to be prefixed with "1=", "2=", etc. depending on which of the templates parameter's this applies to.