Diferencia entre revisiones de «Plantilla:Cquote»
(No se muestran 5 ediciones intermedias de 2 usuarios) | |||
Línea 21: | Línea 21: | ||
|- | |- | ||
{{#if:{{{author|{{{personquoted|{{{source|{{{publication|{{{title|{{{quotesource|{{{4|{{{5|}}}}}}}}}}}}}}}}}}}}}}}}|{{#if:{{NAMESPACE}}||[[Category:Artículos con citas]]}} | {{#if:{{{author|{{{personquoted|{{{source|{{{publication|{{{title|{{{quotesource|{{{4|{{{5|}}}}}}}}}}}}}}}}}}}}}}}}|{{#if:{{NAMESPACE}}||[[Category:Artículos con citas]]}} | ||
− | {{!}} colspan="3" class="cquotecite" style="border: none; padding-right: 4%; font-size: smaller; text-align: right;" {{!}} <cite>— {{#if:{{{ | + | {{!}} colspan="3" class="cquotecite" style="border: none; padding-right: 4%; font-size: smaller; text-align: right;" {{!}} {{#if:{{{author|}}}|<cite>— {{{author}}}</cite>|}}{{#if:{{{source|}}}|<cite>, {{{source}}}</cite>|}} |
}} | }} | ||
|}<!-- {{subst:FULLPAGENAME}} --><noinclude> | |}<!-- {{subst:FULLPAGENAME}} --><noinclude> | ||
− | {{documentation}} | + | <!----- {{documentation}} -----> |
+ | '''Parameters''' | ||
+ | |||
+ | '''Parameter 1''', quote | ||
+ | |||
+ | text of the quote; use <p>...</p> around second or subsequent paragraphs. | ||
+ | |||
+ | Required | ||
+ | |||
+ | Note: if the quote text contains a = (equal sign), then the template must be called with a named parameter for the content. For example: <nowiki>{{Cquote|quote=quote text=more quoted text}}</nowiki> (see Help:Template § Usage hints and workarounds). | ||
+ | |||
+ | '''author''' | ||
+ | |||
+ | Name of the person that wrote or spoke the text being quoted. Can include wiki syntax. | ||
+ | |||
+ | '''source''' | ||
+ | |||
+ | Source of the quote (publication title, speech, etc.). Can include wiki syntax. Can be used without |author= (e.g. for a scripture, law, or other source without an author per se) | ||
+ | |||
+ | '''bgcolor''' | ||
+ | |||
+ | The color of the background. | ||
+ | |||
+ | '''float''' | ||
+ | |||
+ | Defaults to center, but can also be right or left. Usually used with |width=30% or so (otherwise for quotes longer than one line on the rendered page, the float will have no useful effect). | ||
+ | |||
+ | '''width''' | ||
+ | |||
+ | for example |width=30% | ||
+ | |||
+ | '''qcolor''' | ||
+ | |||
+ | color of quotemarks, for example |qcolor=#FF0000 for a red color (only for use in WP:Signpost, and personal pages; do not use in articles, guidelines, etc.) | ||
+ | |||
+ | '''rtl''' | ||
+ | |||
+ | set to any non-blank value for quotes that should be rendered from right to left (e.g., Arabic). Adds the necessary dir attribute and reverses the quotes. | ||
</noinclude> | </noinclude> |
Revisión actual del 20:04 15 ago 2018
“ | Lorem ipsum dolor sit amet, consectetur adipiscing 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. | ” |
Parameters
Parameter 1, quote
text of the quote; use
...
around second or subsequent paragraphs.
Required
Note: if the quote text contains a = (equal sign), then the template must be called with a named parameter for the content. For example: {{Cquote|quote=quote text=more quoted text}} (see Help:Template § Usage hints and workarounds).
author
Name of the person that wrote or spoke the text being quoted. Can include wiki syntax.
source
Source of the quote (publication title, speech, etc.). Can include wiki syntax. Can be used without |author= (e.g. for a scripture, law, or other source without an author per se)
bgcolor
The color of the background.
float
Defaults to center, but can also be right or left. Usually used with |width=30% or so (otherwise for quotes longer than one line on the rendered page, the float will have no useful effect).
width
for example |width=30%
qcolor
color of quotemarks, for example |qcolor=#FF0000 for a red color (only for use in WP:Signpost, and personal pages; do not use in articles, guidelines, etc.)
rtl
set to any non-blank value for quotes that should be rendered from right to left (e.g., Arabic). Adds the necessary dir attribute and reverses the quotes.