Laguntza:Txantiloiak
Txantiloiak bi giltza bikoitzen artean jartzen diren laburdurak dira eta Wikitekan hainbat funtzio eragiteko balio dute. Wikitekan testuak editatu eta bermatu ahala, txantiloiak erabili ditzakezu formatua emateko, nabigazioa errazteko eta beste hainbat gauzetarako.
Formatu txantiloiak
[aldatu]Formatu txantiloiak testuak irakurtzerakoan hauek agertzeko modua aldatzeko erabiltzen dira.
Izenburuak
[aldatu]Lerro bateko testuak egokitzeko txantiloi erabilgarriena {{Ct}} da.
- Adibidea
{{Ct|f=180%|v=2|'O VOTO}} {{Ct|f=130%|v=2|SCENE POPOLARI NAPOLETANE}} {{Ct|f=130%|v=2|IN TRE ATTI}} {{Ct|f=130%|v=4|<i>In collaborazione con G. Cognetti.</i>}}
Honela ematen du:
'O VOTO
SCENE POPOLARI NAPOLETANE
IN TRE ATTI
In collaborazione con G. Cognetti.
Text Case
[aldatu]Change text case with {{uc}} (upper case), {{lc}} (lower case), {{small-caps}} and {{capitalize}}. While it is OK to omit the use of the upper case, lower case, and capitalize templates altogether, where they are used they should only be inserted where the choice of case in the work is a formatting decision (ex. special formatting in a work's title), rather than as required for spelling or grammar (ex. in an acronym).
Template | Example | Result |
{{uc}} | {{uc|uppercase}} | uppercase |
{{lc}} | {{lc|LOWERCASE}} | LOWERCASE |
{{small-caps}}, {{sc}} | {{sc|Small Caps}} | Small Caps |
{{capitalize}} | {{capitalize|capitalize}} | capitalize |
Testuaren tamaina eta beste
[aldatu]Testuaren tamaina, letra-tipoa eta abar aldatzeko, {{Font}} da txantiloi erabilgarriena. Txantiloi honen parametroak erabilita nahi diren aldaketa guztiak egin daitezke testu batean.
Font txantiloiaren funtzionamendua
[aldatu]Txantiloi honek testu baten letra-tamainaren ezaugarriak zehazten ditu:
- Letra-tamaina: LT parametroa, aukerazkoa. Unitateak ehunekotan.
- Letra-tipoa: LTI, aukerazkoa. Balio posibleak: Times New Roman, Arial Unicode MS, Lucida Sans Unicode, Lucida Grande, etab.
- Testuaren kolorea: TK parametroa, aukerazkoa. Balio posibleak: red, blue, green, yellow, etc.
- Atzeko kolorea: AK parametroa, aukerazkoa. Balio posibleak: red, blue, green, yellow, etab.
- Azpimarrak: AM parametroa, aukerazkoa. Balio posibleak: dotted, dashed, solid, double, groove, ridge, inset, outset, etab.
- Marrak: MA parametroa, aukerazkoa. Balio posibleak: underline, overline, line-through, blink, etab.
- Letra-tarteak: LTA parametroa, aukerazkoa. Balio posibleak: unitateak,
px
edoem
.
Erabilpena
[aldatu]Honoko hau jartzen denean::
{{Font|dagokion testua|LT=120|LTI=Arial Unicode MS|TK=yellow|AK=black}}
, honela ikusiko da:
dagokion testua
Beste adibide batzuk:
Kodea | Emaitza |
{{Font|testu gorria|TK=red|LT=70}}
|
testu gorria |
{{Font|''letra etzana'' edo '''lodia'''|LTI=Times New Roman}}
|
letra etzana edo lodia |
{{Font|{{Lar|Dagokion}} [[:w:Testu|testua]]|LT=200}}
|
Dagokion testua |
{{Font|testu <u>azpimarratua</u> puntuekin|AM=dotted}} eta {{Font|testu goimarratua|MA=overline}}
|
testu azpimarratua puntuekin eta testu goimarratua |
{{Font|Testua 5 pixeleko tartearekin eta gorria|LS=5px|TK=red}}
|
Testua 5 pixeleko tartearekin eta gorria |
All Wikisource size templates are relative to the default size. There are two kinds of sizing template: inline and block templates. Inline templates are suitable for use within a paragraph, but can't handle paragraph breaks, and do not adjust line spacing. Block templates can handle paragraph breaks, and adjust line spacing, but are not suitable for use within a paragraph, as they will cause a paragraph break.
Font size definition by relative differences using words
[aldatu]Inline template | Block template | Size | Sample | |
{{xx-smaller}} | {{xx-smaller block}} | 58% | Txantiloi:Xx-smaller | |
{{x-smaller}} | {{x-smaller block}} | 69% | Txantiloi:X-smaller | |
{{smaller}} | {{smaller block}} | 83% | Lorem ipsum dolor sit amet, | |
{{fine}} | {{fine block}} | 92% | Txantiloi:Fine | |
— | — | 100% | Lorem ipsum dolor sit amet, | |
{{larger}} | {{larger block}} | 120% | Lorem ipsum dolor sit amet,
| |
{{x-larger}} | {{x-larger block}} | 144% | Lorem ipsum dolor sit amet, | |
{{xx-larger}} | {{xx-larger block}} | 182% | Lorem ipsum dolor sit
| |
{{xxx-larger}} | {{xxx-larger block}} | 207% | Txantiloi:Xxx-larger | |
{{xxxx-larger}} | {{xxxx-larger block}} | 249% | Txantiloi:Xxxx-larger | |
Size elements | ||||
{{font-size}} no line height scaling | ||||
{{font-size-x}} minimal line height scaling |
Indenting and Alignment
[aldatu]Text is by default aligned left, but where it is required to manually align text to the left, use {{left}}. To float a block of text to the left without affecting text alignment within the block, use {{float left}} or {{block left}}.
To align text to the right, use {{right}}. To float a block of text to the right without affecting text alignment within the block, use {{float right}} or {{block right}}.
To center text, use {{center}} (or {{c}}). To float a block of text to the center without affecting text alignment within the block, use {{block center}}.
Template | Example | Result |
{{left}} | {{left|this text<br/>is left justified}} | Txantiloi:Left |
{{center}}, {{c}} | {{center|this text<br/>is center justified}} | this text |
{{right}} | {{right|this text<br/>is right justified}} | this text |
{{block left}}, {{float left}} | {{block left|this block of text<br/>is left justified}} | Txantiloi:Block left |
{{block center}} | {{block center|this block of text<br/>is center justified}} | this block of text |
{{block right}}, {{float right}} | {{block right|this block of text<br/>is right justified}} | this block of text
is right justified |
To indent the first line of a paragraph, the template {{text-indent}} is available. Use {{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 {{hanging indent}} (or {{hi}}) or {{outdent}}. To indent a block of text left, the template {{left margin}} is available. Template {{dent}} combines the functionality of {{left margin}}, {{text-indent}} and {{hi}}
To insert a fixed gap in text, use {{gap}}
Template | Example | Result |
{{text-indent}}, {{nodent}} | {{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.}} }} |
Txantiloi:Text-indent |
{{hanging indent}}, {{hi}}, {{outdent}} | {{outdent|This paragraph of text has a hanging indent, often used on long entries in tables or lists}} | Txantiloi:Outdent |
{{left margin}} | {{left margin|2em|This block of text is indented left 2 "ems", to offset it from the main body}} | This block of text is indented left 2 "ems", to offset it from the main body |
{{dent}} | {{dent|4em|-2em|This block of text is formatted with both a left margin and a hanging indent}} | Txantiloi:Dent |
Character formatting
[aldatu]To drop the initial character of a paragraph, use {{dropinitial}}. To replicate a large initial character that does not descend into the paragraph, use {{largeinitial}}
To replicate a inline straight line (usually indicating missing or redacted text) use {{bar}} as multiple m-dashes sometimes render as a dashed line.
To create a large brace spanning multiple lines of text, use {{brace}} or {{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 (Txantiloi:Ls, Txantiloi:LS) in older works, templates {{long s}} or {{ls}} and {{long S}} or {{lS}} are available. Note these templates now require the addition of some lines to your CSS or Javascript pages to display. 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 {{'}}, {{(}} and {{)}} allow for the insertion of the special characters Txantiloi:', Txantiloi:(, and Txantiloi:) where it would otherwise be difficult or impossible due to wikimarkup.
Display of Greek quotes, etc. can be improved with the use of {{polytonic}}.
Template | Example | Result | |||||||||||||||||||||||||||
{{dropinitial}}, {{di}} | {{di|D}}ropped initials are used quite often in many types of works | Txantiloi:Diropped initials are used quite often in many types of works | |||||||||||||||||||||||||||
{{largeinitial}} | {{largeinitial|L}}arge initials are less common, but are usually easier to format | Large initials are less common, but are usually easier to format. | |||||||||||||||||||||||||||
{{bar}} | Use bar {{bar|3}} for multiple m-dashes | Use bar Txantiloi:Bar for multiple m-dashes | |||||||||||||||||||||||||||
{{brace}} | {| {{brace table parameters}} |Foo||{{brace|r|t}}||<tt><nowiki>{{brace|r|t}} |
| |||||||||||||||||||||||||||
{{brace2}} | {{brace2|}} {{brace2|2}} {{brace2|4|r}} {{brace2|1|l}} {{brace2|3|l}} | Txantiloi:Brace2 Txantiloi:Brace2 Txantiloi:Brace2 Txantiloi:Brace2 Txantiloi:Brace2 | |||||||||||||||||||||||||||
{{long s}}, {{ls}}, {{long S}}, {{lS}} | minuscule long s: {{ls}}, {{lS}} | minuscule long s: Txantiloi:Ls, Txantiloi:LS | |||||||||||||||||||||||||||
{{'}}, {{(}} and {{)}} | apostrophe: {{'}}; open and close brackets: {{(}} {{)}} | apostrophe: Txantiloi:'; open and close brackets: Txantiloi:( Txantiloi:); | |||||||||||||||||||||||||||
{{polytonic}} | Normal: Οἱ ἄνθρωποι πρὸς τὸ ἀληθὲς πεφύκασιν ἱκανῶς, καὶ τὰ πλείω τυγχάνουσι τῆς ἀληθείας. Polytonic: {{polytonic|Οἱ ἄνθρωποι πρὸς τὸ ἀληθὲς πεφύκασιν ἱκανῶς, καὶ τὰ πλείω τυγχάνουσι τῆς ἀληθείας.}} |
Normal: Οἱ ἄνθρωποι πρὸς τὸ ἀληθὲς πεφύκασιν ἱκανῶς, καὶ τὰ πλείω τυγχάνουσι τῆς ἀληθείας. Polytonic: Txantiloi:Polytonic | |||||||||||||||||||||||||||
{{oe}} | Check out that Ph{{subst:oe}}nician pottery! | Check out that Phœnician pottery! | |||||||||||||||||||||||||||
{{ae}} | All hail Athen{{subst:ae}}! | All hail Athenæ! |
Roman Numerals
[aldatu]In the interest of data quality {{Roman-to-arabic}} is available to facilitate entering metadata like publication date from the original page; it eases proofreading, allowing comparison of page and text directly—also allows conversion algorithm to be audited by automated testing.
Template | Result |
Txantiloi:Tlx | Txantiloi:Roman-to-arabic |
Txantiloi:Tlx | Txantiloi:Roman-to-arabic |
Txantiloi:Tlx | Txantiloi:Roman-to-arabic |
Separations
[aldatu]Use {{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, {{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 {{page break}}
Template | Example | Result | ||||||||||||||
{{rule}} | {{rule}}{{rule}}
|
| ||||||||||||||
{{custom rule}} | {{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}} |
| ||||||||||||||
{{separator}} | {{separator}} |
| ||||||||||||||
{{***}} | {{***}}
{{***|5|3em|char=@}} |
Txantiloi:*** | ||||||||||||||
{{page break}} | {{page break}} | Txantiloi:Page break |
General formatting
[aldatu]Text can be colored using the {{greyed}} and {{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. {{RunningHeader}} or {{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 namespace, in the header field to replicate page headers. {{gap}} is used wherever a gap of greater than one space is required.
Template | Example | Result |
{{greyed}}, {{red}}, {{green}} | {{greyed|grey text}}, {{red|red text}}, {{green|green text}} | Txantiloi:Greyed, Txantiloi:Red, Txantiloi:Green |
{{RunningHeader}} or {{rh}} | {{RunningHeader|Left text|Center text|Right text}} | Txantiloi:RunningHeader |
{{gap}} | text with a{{gap}}gap! | text with agap! |
Column formatting
[aldatu]- {{multicol}}, {{multicol-break}}, {{multicol-section}}, {{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.
- {{div col}}, {{div col end}}, which uses CSS3 properties 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 {{multicol-break}}s.
Navigation Templates
[aldatu]Navigation templates are used to help a reader navigate through or between texts.
Template | You type | You get | Notes |
{{TOC}} | {{TOC}} | Txantiloi:TOC | Used to provide a compact TOC to an alphabetical listing. |
{{AuxTOC}} | {{AuxTOC| * [[/Chapter 1/]]}} |
Txantiloi:AuxTOC | Used when the work does not include an original Table of Contents. |
{{TOC begin}}, {{TOC end}} and all {{TOC row....}}'s |
{{TOC begin}} |
Txantiloi:TOC begin
Txantiloi:TOC row 2-1 Txantiloi:TOC row 1-1-1 Txantiloi:TOC row 1-1-1 Txantiloi:TOC end |
Used to easily format existing TOCs in the original. |
Proofreading templates
[aldatu]Proofreading templates are used during proofreading to manage the process of transclusion to the main namespace.
Template | You type | You get |
{{Hyphenated word start}} or {{hws}} | This page ends with the split word "{{Hyphenated word start|abso|absolutely}} | This page ends with the split word "abso- |
{{Hyphenated word end}} or {{hwe}} | {{Hyphenated word end|lutely|absolutely}}," split between two pages. | -lutely," split between two pages. |
{{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
[aldatu]Template | You type | You get |
{{Missing image}} | {{Missing image}} | Txantiloi:Missing image |
{{Raw image}} | {{raw image|A song of the English (1909).djvu/167}} | Txantiloi:Raw image |
XXX: the above are just image maintenance templates; should include actual image templates too ...
Article-specific templates
[aldatu]Some templates are designed for specific articles in Wikisource. They can be found in Category:Specific article templates.
Housekeeping templates
[aldatu]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:
User talk pages
[aldatu]See Wikisource:User warning templates
Unblock requests
[aldatu]- {{Unblock}}
- {{Unblock reviewed}}
- {{Unblock granted}}