Diferencia entre revisiones de «Plantilla:Cquote»

De CNB
Ir a la navegación Ir a la búsqueda
Busca en cnbGuatemala con Google

 
(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>—&thinsp;{{#if:{{{author|}}}|{{{author}}}|}}</cite>}}
+
{{!}} colspan="3" class="cquotecite" style="border: none; padding-right: 4%; font-size: smaller; text-align: right;" {{!}} {{#if:{{{author|}}}|<cite>—&thinsp;{{{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

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.