Diferencia entre revisiones de «Usuario:Ignacio Rodríguez/Taller»

Contenido eliminado Contenido añadido
Sin resumen de edición
Sin resumen de edición
Línea 12:
;Introducción:Si esperamos que en algún momento entre más gente a compartir y colaborar en la biblioteca libre (tal como entré yo hace un par de años), el sitio debe estar orientado hacia hacer más fácil la colaboración. Voy a intentar hacer un "estudio" del actual estado de la [[Wikisource:Portada|Portada]] y [[Wikisource:Portal de la comunidad|Portal de la comunidad]], y traer ejemplos de las WS más activas (probablemente inglesa, francesa, italiana y portuguesa)
 
;Plantillas:Página manual de plantillas, es buena idea. La implementación actual deja mucho que desear.
===Portada===
{{/Portada}}
 
Al editar un texto en Wikisource, las plantillas son texto entre llaves, como <code><nowiki>{{PLANTILLA}}</nowiki></code>, que permiten cumplir varias funciones. Se utilizan plantillas para ayudar a simplificar y estandarizar el formato, navegación, y una serie de otras tareas.
{{/Portada propuesta}}
 
Acá sólo se muestran las funciones básicas de las plantillas; si necesitas información más avanzada, debes buscarla en la documentación de cada plantilla.
 
==Plantillas de formato==
==Cuadros==
====Versalita====
Con el objeto de unificar las tablas, quiero importar la plantilla de la WS francesa, que hace más fácil en el evento de que queramos modificar la apariencia de la portada, cambiar todo de una sola vez, al mismo tiempo que se simplifica la sintaxis de la portada.
{|
{{/Cuadros}}
|{{tl|may}}, {{tl|versalita}}, {{tl|smallcaps}}
|<tt><nowiki>{{may|Texto en Versalita}}</nowiki></tt>
|{{may|Texto en Versalita}}
|}
 
===Tamaño del texto===
{|align=center
|{{tl|xx-menor}} cambia el tamaño de la fuente:||{{xx-menor|este tamaño.}}
|-
|{{tl|x-menor}} cambia el tamaño de la fuente:||{{x-menor|este tamaño.}}
|-
|{{tl|menor}} cambia el tamaño de la fuente:||{{menor|este tamaño.}}
|-
|No modificador en el texto hace de:||este tamaño.
|-
|{{tl|grande}} cambia el tamaño de la fuente:||{{grande|este tamaño.}}
|-
|{{tl|x-grande}} cambia el tamaño de la fuente:||{{x-grande|este tamaño.}}
|-
|{{tl|xx-grande}} cambia el tamaño de la fuente:||{{xx-grande|este tamaño.}}
|-
|{{tl|xxx-grande}} cambia el tamaño de la fuente:||{{xxx-grande|este tamaño.}}
|-
|{{tl|xxxx-grande}} cambia el tamaño de la fuente:||{{xxxx-grande|este tamaño.}}
|-
|{{tl|xxxxx-grande}} cambia el tamaño de la fuente:||{{xxxxx-grande|este tamaño.}}
|-
|{{tl|xxxxxx-grande}} cambia el tamaño de la fuente:||{{xxxxxx-grande|este tamaño.}}
|}
 
===Márgenes y alineación===
Para generar un enlace entre 20 aleatorios:
El texto por defecto se alínea a la izquierda.
{{:Hola/{{#expr:{{CURRENTTIMESTAMP}}mod 21}}}}
 
Para alinear a la derecha, usa {{tl|derecha}}. Para alinear un bloque de texto a la derecha sin afectar la alineación dentro del bloque, usa {{tl|bloque derecha}}.
 
Para centrar texto, usa {{tl|centrar}} o {{tl|c}}. Para alinear un bloque de texto al centro sin afectar la alineación dentro del bloque, usa {{tl|bloque centro}}.
 
{| style="border;none; text-align:left; width:100%"
|- style="background:#E6F2FF; padding:0.3em; text-align:center;"
|'''Plantilla'''
|'''Ejemplo'''
|width=60%|'''Resultado'''
|-
|{{tl|centrar}}, {{tl|c}}
|<tt><nowiki>{{centrar|Texto<br/>alineado al centro}}</nowiki></tt>
|{{centrar|Texto<br/>alineado al centro}}
|-
|{{tl|derecha}}
|<tt><nowiki>{{derecha|Texto<br/>alineado a la derecha}}</nowiki></tt>
|{{derecha|Texto<br/>alineado a la derecha}}
|-
|{{tl|bloque centro}}
|<tt><nowiki>{{bloque centro|Este bloque de texto<br/>está alineado al centro}}</nowiki></tt>
|{{bloque centro|Este bloque de texto<br/>está alineado al centro}}
|-
|{{tl|bloque derecha}}
|<tt><nowiki>{{bloque derecha|Este bloque de texto<br/>está alineado a la derecha}}</nowiki></tt>
|{{bloque derecha|Este bloque de texto<br/>está alineado a la derecha}}
|}
 
 
 
To indent the first line of a paragraph, the template {{tl|text-indent}} is available. Use {{tl|nodent}} to "un-indent" a paragraph within the block. Note replicating indented paragraphs is typically not done in works transcribed here, and paragraphs are separated by a blank line.
 
To indent every line of a paragraph except the first, use {{tl|hanging indent}} (or {{tl|hi}}) or {{tl|outdent}}. To indent a block of text left, the template {{tl|left margin}} is available. Template {{tl|dent}} combines the functionality of {{tl|left margin}}, {{tl|text-indent}} and {{tl|hi}}
 
To insert a fixed gap in text, use {{tl|gap}}
 
{| style="border;none; text-align:left; width:100%"
|- style="background:#E6F2FF; padding:0.3em; text-align:top;"
|'''Template'''
|'''Example'''
|width=400px|'''Result'''
|-
|{{tl|text-indent}}, {{tl|nodent}}
|<tt><nowiki>{{text-indent|2em|</nowiki>
 
This paragraph of text has its initial line indented. This is not standard practice. Only use where there is a specific reason to do so.
 
This paragraph, and any following paragraphs, will also have its initial line indented.
 
<nowiki>{{nodent|Unless you use "nodent". This paragraph does not have its initial line indented.}}</nowiki>
 
<nowiki>}}</nowiki></tt>
|{{text-indent|2em|This paragraph of text has its initial line indented. This is not standard practice. Only use where there is a specific reason to do so.
 
This paragraph, and any following paragraphs, will also have its initial line indented.
 
{{nodent|Unless you use "nodent". This paragraph does not have its initial line indented.}}
}}
|-
|{{tl|hanging indent}}, {{tl|hi}}, {{tl|outdent}}
|<tt><nowiki>{{outdent|This paragraph of text has a hanging indent, often used on long entries in tables or lists}}</nowiki></tt>
|{{outdent|This paragraph of text has a hanging indent, often used on long entries in tables or lists}}
|-
|{{tl|left margin}}
|<tt><nowiki>{{left margin|2em|This block of text is indented left 2 "ems", to offset it from the main body}}</nowiki></tt>
|{{left margin|2em|This block of text is indented left 2 "ems", to offset it from the main body}}
|-
|{{tl|dent}}
|<tt><nowiki>{{dent|4em|-2em|This block of text is formatted with both a left margin and a hanging indent}}</nowiki></tt>
|{{dent|4em|-2em|This block of text is formatted with both a left margin and a hanging indent}}
|}
 
===Character formatting===
 
To drop the initial character of a paragraph, use {{tl|dropinitial}}. To replicate a large initial character that does not descend into the paragraph, use {{tl|largeinitial}}
 
To replicate a inline straight line (usually indicating missing or redacted text) use {{tl|bar}} as multiple m-dashes sometimes render as a dashed line.
 
To create a large brace spanning multiple lines of text, use {{tl|brace}} or {{tl|brace2}}. "brace" is limited to use with or in a table, "brace2" may be used anywhere.
 
Some works, especially older ones, use ligatures, diacritics, and alternate letterforms. Whether or not to transcribe this formatting is left up to the transcriber. These characters may be hard coded, or entered with templates. Where it is desirable to replicate the long s ({{ls}}, {{lS}}) in older works, templates {{tl|long s}} or {{tl|ls}} and {{tl|long S}} or {{tl|lS}} are available. Note these templates now require the addition of some lines to your CSS or Javascript pages to display. For the descending f, ({{f}}), use {{tl|f}}. Ligatures of various letter combinations can be found in [[:Category:Ligature templates]]. Templates to assist in the entering of diacritics can be found in [[:Category:Diacritic templates]]
 
Templates {{tl|'}}, {{tl|(}} and {{tl|)}} allow for the insertion of the special characters {{'}}, {{(}}, and {{)}} where it would otherwise be difficult or impossible due to wikimarkup.
 
Display of Greek quotes, etc. can be improved with the use of {{tl|polytonic}}.
 
{| style="border;none; text-align:left; width:100%"
|- style="background:#E6F2FF; padding:0.3em; text-align:center;"
|'''Template'''
|'''Example'''
|'''Result'''
|-
|{{tl|dropinitial}}, {{tl|di}}
|<tt><nowiki>{{di|D}}ropped initials are used quite often in many types of works</nowiki></tt>
|{{di|D}}ropped initials are used quite often in many types of works
|-
|{{tl|largeinitial}}
|<tt><nowiki>{{largeinitial|L}}arge initials are less common, but are usually easier to format</nowiki></tt>
|{{largeinitial|L}}arge initials are less common, but are usually easier to format.
|-
|{{tl|bar}}
|<tt><nowiki>Use bar {{bar|3}} for multiple m-dashes</nowiki></tt>
|Use bar {{bar|3}} for multiple m-dashes
|-
|-
|{{tl|brace}}
|<tt><nowiki>{| {{brace table parameters}}</nowiki></tt><br/>
<tt><nowiki>|Foo||{{brace|r|t}}||<tt><nowiki>{{brace|r|t}}</nowiki></tt><br/>
<tt><nowiki>|-</nowiki></tt><br/>
<tt><nowiki>|Bar||{{brace|r|s}}||<tt><nowiki>{{brace|r|s}}</nowiki></tt><br/>
<tt><nowiki>|-</nowiki></tt><br/>
<tt><nowiki>|Spam||{{brace|r|mt}}||<tt><nowiki>{{brace|r|mt}}</nowiki></tt><br/>
<tt><nowiki>|-</nowiki></tt><br/>
<tt><nowiki>|Eggs||{{brace|r|mb}}||<tt><nowiki>{{brace|r|mb}}</nowiki></tt><br/>
<tt><nowiki>|-</nowiki></tt><br/>
<tt><nowiki>|Bread||{{brace|r|s}}||<tt><nowiki>{{brace|r|s}}</nowiki></tt><br/>
<tt><nowiki>|-</nowiki></tt><br/>
<tt><nowiki>|Text||{{brace|r|m}}||<tt><nowiki>{{brace|r|m}}</nowiki></tt><br/>
<tt><nowiki>|-</nowiki></tt><br/>
<tt><nowiki>|Text||{{brace|r|b}}||<tt><nowiki>{{brace|r|b}}</nowiki></tt><br/>
<tt><nowiki>|-</nowiki></tt><br/>
<tt><nowiki>|Stuff||{{brace|r|ht}}||<tt><nowiki>{{brace|r|ht}}</nowiki></tt><br/>
<tt><nowiki>|-</nowiki></tt><br/>
<tt><nowiki>|Things||{{brace|r|hb}}||<tt><nowiki>{{brace|r|hb}}</nowiki></tt><br/>
<tt><nowiki>|}</nowiki></tt>
|
{| {{brace table parameters}}
|Foo||{{brace|r|t}}||<tt><nowiki>{{brace|r|t}}</nowiki></tt>
|-
|Bar||{{brace|r|s}}||<tt><nowiki>{{brace|r|s}}</nowiki></tt>
|-
|Spam||{{brace|r|mt}}||<tt><nowiki>{{brace|r|mt}}</nowiki></tt>
|-
|Eggs||{{brace|r|mb}}||<tt><nowiki>{{brace|r|mb}}</nowiki></tt>
|-
|Bread||{{brace|r|s}}||<tt><nowiki>{{brace|r|s}}</nowiki></tt>
|-
|Text||{{brace|r|m}}||<tt><nowiki>{{brace|r|m}}</nowiki></tt>
|-
|Text||{{brace|r|b}}||<tt><nowiki>{{brace|r|b}}</nowiki></tt>
|-
|Stuff||{{brace|r|ht}}||<tt><nowiki>{{brace|r|ht}}</nowiki></tt>
|-
|Things||{{brace|r|hb}}||<tt><nowiki>{{brace|r|hb}}</nowiki></tt>
|}
|-
|{{tl|brace2}}
|<tt><nowiki>{{brace2|}} {{brace2|2}} {{brace2|4|r}} {{brace2|1|l}} {{brace2|3|l}}</nowiki></tt>
|{{brace2|}} {{brace2|2}} {{brace2|4|r}} {{brace2|1|l}} {{brace2|3|l}}
|-
|{{tl|long s}}, {{tl|ls}}, {{tl|long S}}, {{tl|lS}}, {{tl|f}}
|<tt><nowiki>minuscule long s: {{ls}}; capital long S: {{lS}}; descending f: {{f}}</nowiki></tt>
|minuscule long s: {{ls}}; capital long S: {{lS}}; descending f: {{f}}
|-
|{{tl|'}}, {{tl|(}} and {{tl|)}}
|<tt><nowiki>apostrophe: {{'}}; open and close brackets: {{(}} {{)}}</nowiki></tt>
|apostrophe: {{'}}; open and close brackets: {{(}} {{)}};
|-
|{{tl|polytonic}}
|<tt><nowiki>Normal: Οἱ ἄνθρωποι πρὸς τὸ ἀληθὲς πεφύκασιν ἱκανῶς, καὶ τὰ πλείω τυγχάνουσι τῆς ἀληθείας.</nowiki></tt><br/>
<tt><nowiki>Polytonic: {{polytonic|Οἱ ἄνθρωποι πρὸς τὸ ἀληθὲς πεφύκασιν ἱκανῶς, καὶ τὰ πλείω τυγχάνουσι τῆς ἀληθείας.}}</nowiki>
|Normal: Οἱ ἄνθρωποι πρὸς τὸ ἀληθὲς πεφύκασιν ἱκανῶς, καὶ τὰ πλείω τυγχάνουσι τῆς ἀληθείας.<br/>
Polytonic: {{polytonic|Οἱ ἄνθρωποι πρὸς τὸ ἀληθὲς πεφύκασιν ἱκανῶς, καὶ τὰ πλείω τυγχάνουσι τῆς ἀληθείας.}}
|-
|{{tl|oe}}
|<tt><nowiki>Check out that Ph{{subst:oe}}nician pottery!</nowiki></tt>
|Check out that Phœnician pottery!
|-
|{{tl|ae}}
|<tt><nowiki>All hail Athen{{subst:ae}}!</nowiki></tt>
|All hail Athenæ!
|}
 
===Separations===
 
Use {{tl|rule}} in preference of "----" for the creation of horizontal lines spanning the page. In addition, rule can create horizontal separators of any length. For more fancy lines, {{tl|custom rule}} is available.
 
For breaking up discontinuous runs of pages, for example when separating blocks of transluded front and end matter (ex. Title Page, Dedication, Contents) to one page, use {{tl|page break}}
 
{| style="border;none; text-align:left; width:100%"
|- style="background:#E6F2FF; padding:0.3em; text-align:center;"
|'''Template'''
|'''Example'''
|'''Result'''
|-
|{{tl|rule}}
|<tt><nowiki>{{rule}}{{rule}}</nowiki></tt>
 
 
<tt><nowiki>{{rule|height=4px}}{{rule}}</nowiki></tt>
 
 
<tt><nowiki>{{rule|5em}}</nowiki></tt>
|{{rule}}{{rule}}
 
 
{{rule|height=4px}}{{rule}}
 
 
{{rule|5em}}
|-
|{{tl|custom rule}}
|<tt><nowiki>{{Custom rule|sp|100|d|6|sp|10|d|10|sp|10|d|6|sp|100}}</nowiki></tt>
 
<tt><nowiki>{{custom rule|c|6|sp|40|do|7|fy1|40|do|7|sp|40|c|6}}</nowiki></tt>
|{{Custom rule|sp|100|d|6|sp|10|d|10|sp|10|d|6|sp|100}}
 
{{custom rule|c|6|sp|40|do|7|fy1|40|do|7|sp|40|c|6}}
|-
|{{tl|separator}}
|<tt><nowiki>{{separator}}</nowiki></tt>
|{{separator}}
|-
|{{tl|***}}
|<tt><nowiki>{{***}}</nowiki></tt>
 
<tt><nowiki>{{***|5|3em|char=@}}</nowiki></tt>
|{{***}}
 
{{***|5|3em|char=@}}
|-
|{{tl|page break}}
|<tt><nowiki>{{page break}}</nowiki></tt>
|{{page break}}
|}
 
===General formatting===
Text can be colored using the {{tl|greyed}} and {{tl|red}} templates. Red text was often used as a highlight in older works, especially on the title page. Greyed text can be used to indicate (important) text that has been written or typed onto the original document. {{tl|RunningHeader}} or {{tl|rh}} creates a left justified, a centered, and a right justified block of text all on the same line, and is most often used in the Page [[H:NS|namespace]], in the [[H:HEADER|header field]] to replicate page headers. {{tl|gap}} is used wherever a gap of greater than one space is required.
{| style="border;none; text-align:left; width:100%"
|- style="background:#E6F2FF; padding:0.3em; text-align:center;"
|'''Template'''
|'''Example'''
|'''Result'''
|-
|{{tl|greyed}}, {{tl|red}}, {{tl|green}}
|<tt><nowiki>{{greyed|grey text}}, {{red|red text}}, {{green|green text}}</nowiki></tt>
|{{greyed|grey text}}, {{red|red text}}, {{green|green text}}
|-
|{{tl|RunningHeader}} or {{tl|rh}}
|<tt><nowiki>{{RunningHeader|Left text|Center text|Right text}}</nowiki></tt>
|{{RunningHeader|Left text|Center text|Right text}}
 
|-
|{{tl|gap}}
|text with a{{tlx|gap|5em}}gap!
|text with a{{gap|5em}}gap!
|}
 
===Column formatting===
<section begin="column formatting"/>
<!--this section is transcluded to the template docs' See Also sections - make sure it makes sense there as well-->
* {{tl|multicol}}, {{tl|multicol-break}}, {{tl|multicol-section}}, {{tl|multicol-end}}, this template uses a table to create multiple columns of text. You need to place the breaks explicitly, but they will never move.
* {{tl|div col}}, {{tl|div col end}}, which uses CSS3 properies to create columns dynamically. The reader's browser will choose where best to put the breaks, so the layout cannot be guaranteed not to change. This one is good for lists, as you don't need to worry about placing {{tl|multicol-break}}s.
<section end="column formatting"/>
 
==Navigation Templates==
<section begin="navigation templates"/><!--Used for transclusion to TOC template doc pages-->
Navigation templates are used to help a reader navigate through or between texts.
{| style="border;none; text-align:left; width:100%"
|- style="background:#E6F2FF; padding:0.3em; text-align:center;"
|'''Template'''
|style="width:15em"|'''You type'''
|'''You get'''
|style="width:20em"|'''Notes'''
|-<!--1ST ROW-->
|{{tl|TOC}}
|<tt><nowiki>{{TOC}}</nowiki></tt>
|{{TOC}}
| Used to provide a compact TOC to an alphabetical listing.
|-<!--2ND ROW-->
|{{tl|AuxTOC}}
|<tt><nowiki>{{AuxTOC|</nowiki><br>
<nowiki>* [[/Chapter 1/]]}}</nowiki></tt>
|{{AuxTOC|
* [[/Chapter 1/]]}}
|Used when the work does ''not'' include an original Table of Contents.
|-
| {{tl|TOC begin}},<Br> {{tl|TOC end}} and <br>all <nowiki>{{TOC row....}}</nowiki>'s
|
<tt><nowiki>{{TOC begin}}</nowiki><br>
<nowiki>{{TOC row 1-1-1|...}}</nowiki><br>
<nowiki>{{TOC end}}</nowiki></tt>
|{{TOC begin}}
{{TOC row 2-1|Preface|i}}
{{TOC row 1-1-1|I.|Introduction|xii}}
{{TOC row 1-1-1|II.|Chapter 1|1}}
{{TOC end}}
|Used to easily format existing TOCs in the original.
|}
<section end="navigation templates"/>
 
==Proofreading templates==
Proofreading templates are used during [[Help:Proofread|proofreading]] to manage the process of transclusion to the main namespace.
{| style="border;none; text-align:left;"
|-<!--COLUMN HEADINGS-->
| style="background:#E6F2FF; padding:0.3em; text-align:center;"|'''Template'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;"|'''You type'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;"|'''You get'''
|-<!--1ST ROW-->
|{{tl|Hyphenated word start}} or {{tl|hws}}
|This page ends with the split word "<tt><nowiki>{{Hyphenated word start|abso|absolutely}}</nowiki></tt>
|This page ends with the split word "<span title="absolutely">abso-</span><!-- template doesn't work in this namespace -->
|-<!--2ND ROW-->
|{{tl|Hyphenated word end}} or {{tl|hwe}}
|<tt><nowiki>{{Hyphenated word end|lutely|absolutely}},"</nowiki></tt> split between two pages.
|<span title="absolutely">-lutely</span>," split between two pages.<!-- template doesn't work in this namespace -->
|-<!--3RD ROW-->
|{{tl|nop}}
|
|Used where the end of a page ''is also'' end of a paragraph.
|}
NB: The ''hyphenated word start'' and ''hyphenated word end'' should be paired across two pages in the Page namespace. They will appear correctly as one, unhyphenated word when transcluded to the main namespace.
 
==Image templates==
{| style="border;none; text-align:left;"
|-<!--COLUMN HEADINGS-->
| style="background:#E6F2FF; padding:0.3em; text-align:center;"|'''Template'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;"|'''You type'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;"|'''You get'''
|-<!--1ST ROW-->
|{{tl|Missing image}}
|<tt><nowiki>{{Missing image}}</nowiki></tt>
|{{Missing image}}
|-<!--2ND ROW-->
|{{tl|Raw image}}
|<tt><nowiki>{{raw image|A song of the English (1909).djvu/167}}</nowiki></tt>
|{{raw image|A song of the English (1909).djvu/167}}
|}
 
'''XXX''': the above are just image ''maintenance'' templates; should include actual image templates too ...
 
==Article-specific templates==
 
Some templates are designed for specific articles in Wikisource. They can be found in [[:Category:Specific article templates]].
 
==Housekeeping templates==
 
Some templates are not designed for "inline" use in a work, but are used to keep track of things that need to be fixed or indicate the applicable licensing. Please see the following pages for these templates:
 
* [[Help:Copyright tags]]
* [[Help:Maintenance tags]]
 
==User talk pages==
 
See [[Wikisource:User warning templates]]