Menú alternativo
Menú alternativo personal
No has accedido
Tu dirección IP será visible si haces alguna edición

Diferencia entre revisiones de «Plantilla:Quote box»

De ProleWiki, la enciclopedia proletaria
mSin resumen de edición
mSin resumen de edición
 
(No se muestran 5 ediciones intermedias del mismo usuario)
Línea 28: Línea 28:
         |center = center-aligned
         |center = center-aligned
         |left-aligned
         |left-aligned
     }}" style="{{{sstyle|}}}"><!--Manually inserted dashes will need to be removed from uses of the template first, I guess, then enable this:--><!--—&thinsp;-->{{{author|{{{2|}}}}}}{{#if:{{{author|}}}{{{2|}}}|{{#if:{{{source|}}}{{{3|}}}|<!--Display comma-space only if both cite parameters are present.-->,&#32;}}}}{{{source|{{{3|}}}}}}</cite>}}
     }}" style="{{{sstyle|}}}"><!--Manually inserted dashes will need to be removed from uses of the template first, I guess, then enable this:--><!--—&thinsp;-->[[{{{author|{{{2|}}}}}}]]{{#if:{{{author|}}}{{{2|}}}|{{#if:{{{source|}}}{{{3|}}}|<!--Display comma-space only if both cite parameters are present.-->,&#32;}}}}''{{{source|{{{3|}}}}}}''</cite>}}
</div>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using quote box with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Quote box]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | align | author | bgcolor | border | class | content | fontsize | halign | qalign | qclass | qstyle | quote | quoted | quotetext | salign | source | sstyle | style | tclass | text | title | title_bg | title_fnt | tstyle | width }}
</div>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using quote box with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Quote box]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | align | author | bgcolor | border | class | content | fontsize | halign | qalign | qclass | qstyle | quote | quoted | quotetext | salign | source | sstyle | style | tclass | text | title | title_bg | title_fnt | tstyle | width }}


Línea 60: Línea 60:
"title": {
"title": {
"label": "Título",
"label": "Título",
"description": "Título de la obra citada",
"description": "Título para la caja que contendrá la cita",
"type": "string",
"type": "string",
"required": true
"suggested": true
},
},
"author": {
"author": {
"label": "Autor",
"label": "Autor",
"description": "Autor de la obra citada",
"description": "Autor de la obra citada. No hay necesidad de añadir hipervínculo, ProleWiki lo hace automáticamente.",
"type": "string",
"type": "string",
"required": true
"required": true
Línea 72: Línea 72:
         "quote": {
         "quote": {
"label": "Cita",
"label": "Cita",
"description": "Texto a citar",
"description": "Texto citado",
"type": "string",
"required": true
},
        "source": {
"label": "Fuente",
"description": "Obra citada",
"type": "string",
"type": "string",
"required": true
"required": true
},
        "width": {
"label": "Ancho",
"description": "Ancho de la caja de cita en relación al ancho de la página. Cuando es menor al 100%, el texto de la página se acomodará alrededor de la caja de cita",
"type": "string",
            "example": "75%",
"suggested": true
},
        "align": {
"label": "Alineamiento",
"description": "Ubicación de la caja de cita en el cuerpo de la página",
"type": "string",
            "example": "left, center, right",
"suggested": true
}
}
     },
     },
Línea 80: Línea 100:
"title",
"title",
"author",
"author",
"quote"
    "quote",
        "source",
        "width",
        "align"
]
]
}
}
Línea 90: Línea 113:
| author = Karl Marx
| author = Karl Marx
| quote = The weapon of criticism cannot, of course, replace criticism of the weapon, material force must be overthrown by material force; but theory also becomes a material force as soon as it has gripped the masses. Theory is capable of gripping the masses as soon as it demonstrates ad hominem, and it demonstrates ad hominem as soon as it becomes radical. To be radical is to grasp the root of the matter.
| quote = The weapon of criticism cannot, of course, replace criticism of the weapon, material force must be overthrown by material force; but theory also becomes a material force as soon as it has gripped the masses. Theory is capable of gripping the masses as soon as it demonstrates ad hominem, and it demonstrates ad hominem as soon as it becomes radical. To be radical is to grasp the root of the matter.
| source = ''Critique of Hegel's philosophy of right'', Introduction
| source = Critique of Hegel's philosophy of right
}}
}}
</nowiki>
</nowiki>
Línea 96: Línea 119:
| author = Karl Marx
| author = Karl Marx
| quote = The weapon of criticism cannot, of course, replace criticism of the weapon, material force must be overthrown by material force; but theory also becomes a material force as soon as it has gripped the masses. Theory is capable of gripping the masses as soon as it demonstrates ad hominem, and it demonstrates ad hominem as soon as it becomes radical. To be radical is to grasp the root of the matter.  
| quote = The weapon of criticism cannot, of course, replace criticism of the weapon, material force must be overthrown by material force; but theory also becomes a material force as soon as it has gripped the masses. Theory is capable of gripping the masses as soon as it demonstrates ad hominem, and it demonstrates ad hominem as soon as it becomes radical. To be radical is to grasp the root of the matter.  
| source = ''Critique of Hegel's philosophy of right'', Introduction
| source = Critique of Hegel's philosophy of right
}}
}}
'''Adding width:'''
'''Adding width:'''

Revisión actual - 00:46 16 oct 2024


Usage:

{{Quote box
 |title = 
 |quote = 
 |author = 
 |source = 
 |align = 
 |width = 
 |border = 
 |fontsize = 
 |bgcolor = 
 |style = 
 |title_bg = 
 |title_fnt = 
 |tstyle = 
 |qalign = 
 |qstyle = 
 |quoted = 
 |salign = 
 |sstyle = 
}}

Sin descripción.

Parámetros de la plantilla[Editar los datos de la plantilla]

ParámetroDescripciónTipoEstado
Títulotitle

Título para la caja que contendrá la cita

Cadenasugerido
Autorauthor

Autor de la obra citada. No hay necesidad de añadir hipervínculo, ProleWiki lo hace automáticamente.

Cadenaobligatorio
Citaquote

Texto citado

Cadenaobligatorio
Fuentesource

Obra citada

Cadenaobligatorio
Anchowidth

Ancho de la caja de cita en relación al ancho de la página. Cuando es menor al 100%, el texto de la página se acomodará alrededor de la caja de cita

Ejemplo
75%
Cadenasugerido
Alineamientoalign

Ubicación de la caja de cita en el cuerpo de la página

Ejemplo
left, center, right
Cadenasugerido

Example:

{{Quote box
| author = Karl Marx
| quote = The weapon of criticism cannot, of course, replace criticism of the weapon, material force must be overthrown by material force; but theory also becomes a material force as soon as it has gripped the masses. Theory is capable of gripping the masses as soon as it demonstrates ad hominem, and it demonstrates ad hominem as soon as it becomes radical. To be radical is to grasp the root of the matter.
| source = Critique of Hegel's philosophy of right
}}

The weapon of criticism cannot, of course, replace criticism of the weapon, material force must be overthrown by material force; but theory also becomes a material force as soon as it has gripped the masses. Theory is capable of gripping the masses as soon as it demonstrates ad hominem, and it demonstrates ad hominem as soon as it becomes radical. To be radical is to grasp the root of the matter.

Karl Marx, Critique of Hegel's philosophy of right


Adding width:

{{Quote box
| author = Karl Marx
| quote = The weapon of criticism cannot, of course, replace criticism of the weapon, material force must be overthrown by material force; but theory also becomes a material force as soon as it has gripped the masses. Theory is capable of gripping the masses as soon as it demonstrates ad hominem, and it demonstrates ad hominem as soon as it becomes radical. To be radical is to grasp the root of the matter.
| source = ''Critique of Hegel's philosophy of right'', Introduction
| width = 20%
}}

The weapon of criticism cannot, of course, replace criticism of the weapon, material force must be overthrown by material force; but theory also becomes a material force as soon as it has gripped the masses. Theory is capable of gripping the masses as soon as it demonstrates ad hominem, and it demonstrates ad hominem as soon as it becomes radical. To be radical is to grasp the root of the matter.

Karl Marx, 'Critique of Hegel's philosophy of right, Introduction

Quote boxes also wrap around text:

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.

Aligning:

{{Quote box
| author = Karl Marx
| quote = The weapon of criticism cannot, of course, replace criticism of the weapon, material force must be overthrown by material force; but theory also becomes a material force as soon as it has gripped the masses. Theory is capable of gripping the masses as soon as it demonstrates ad hominem, and it demonstrates ad hominem as soon as it becomes radical. To be radical is to grasp the root of the matter.
| source = ''Critique of Hegel's philosophy of right'', Introduction
| width = 20%
| align = left
}}

The weapon of criticism cannot, of course, replace criticism of the weapon, material force must be overthrown by material force; but theory also becomes a material force as soon as it has gripped the masses. Theory is capable of gripping the masses as soon as it demonstrates ad hominem, and it demonstrates ad hominem as soon as it becomes radical. To be radical is to grasp the root of the matter.

Karl Marx, 'Critique of Hegel's philosophy of right, Introduction


Now the template is aligned left. It can be centered as well.