परिचय का प्रतीक साँचा परिचय[देखें] [संपादन] [इतिहास] [पर्ज]

इस टेम्पलेट का उपयोग तब किया जा सकता है जब किसी पद्य पाठ को उसकी मूल भाषा में तथा उसके अंग्रेजी अनुवाद को एक साथ प्रदर्शित करना हो। यह मूल पाठ को इटैलिक में और अनुवाद को रोमन टाइप में प्रदर्शित करता है। वैकल्पिक रूप से, यह नीचे प्रत्येक पाठ के लिए श्रेय प्रदर्शित करता है। मुख्य पैरामीटर सेट निम्नलिखित है:

{{Verse translation|lang1=ISO 639 language code or IETF language tag|original text|translation|attr1=original text attribution|attr2=translation attribution|width=width of all contents}}
Full parameter set in horizontal format
{{Verse translation|lang1=|rtl1=|italicsoff=|head1=|<!--original text-->|attr1=|lang2=|rtl2=|italicsoff2=|head2=|<!--translation-->|attr2=}}
Full parameter set in vertical format
{{Verse translation
 | lang1 = 
 | rtl1 = 
 | italicsoff = 
 | head1 =
 | <!--original text-->
 | attr1 = 
 | lang2 = 
 | rtl2 = 
 | italicsoff2 = 
 | head2 =
 | <!--translation-->
 | attr2 = 
}}

मूलभूत उदाहरण

संपादित करें

पहले दो पैरामीटर अनिवार्य हैं, लेबल रहित हैं, और दो टेक्स्ट रखते हैं। उदाहरण के लिए:

ऐसा लिखें ऐसा दिखायी देगा
{{Verse translation
|head1=German|lang1=de
|Sprechen Sie Deutsch?
Bist du sicher?
|head2=English|lang2=en
|Do you speak German?
Are you sure?}}

While |lang1=de is omitted in minimal examples, the |lang1= parameter should be specified in normal use for any language other than English.

|lang1= can also be specified as the alias |lang=, though the other numbered parameters do not have such aliases, and the inconsistency will not be helpful for later editors.

Line breaks in the code texts are preserved in the display. Extra markup like
<br />
is not required, but will also be displayed if included. As shown below, correctly formatted inline references can also be added to both texts.

पूर्ण उदाहरण

संपादित करें
The parameters |attr1= and |attr2= are optional, must be labelled, and do not preserve line breaks in the code. They are meant to contain the attributions for (1) the original text and (2) the translation. Either, both, or neither may be used. Their content will be displayed preceded by a dash and in slightly reduced text. These texts do not wrap automatically; if wrapping is required,
<br />
can be used, as below. Also optional (though recommended by Manual of Style/Accessibility § Other languages) is |lang1=, which takes an IETF language tag or ISO 639 language code in the same format as {{lang1}}. For example:

साँचा:Markupv Notice that the <ref>...</ref> markup is added before the attribution parameters.

If |italicsoff= is set to any value, the first column's italics are turned off. This is useful for original texts in non-Latin scripts, for which italics may be neither useful nor appropriate:

ऐसा लिखें ऐसा दिखायी देगा
{{Verse translation|lang1=ka|italicsoff=y|
მელნად ვიხმარე გიშრის ტბა და კალმად მე ნა რხეული,
ვინცა ისმინოს, დაესვას ლახვარი გულსა ხეული.
|attr1=[[Shota Rustaveli]]: from ''[[The Knight in the Panther's Skin]]''
|For ink I have used a lake of jet, and for pen a pliant crystal.
Whoever hears, a jagged spear will pierce his heart.}}

दांये से बांये पाठ

संपादित करें

If |rtl1= is set to any value, the first column's text is aligned right. This is useful for original texts in right-to-left languages like Arabic, as exemplified below:

ऐसा लिखें ऐसा दिखायी देगा
{{Verse translation|lang1=ar|italicsoff=y|rtl1=y|
خل الذنوب صغيرهاو كبيرها ذاك التقى
و اصنع كماش فوق أرض الشوك يحذر ما يرى
لا تحقرن صغيرةً إن الجبال من الحصى
|Abandon sins, big and small – that is Tawqa
And be like the one who walks on a thorny path, he is cautious of what he sees
Do not belittle the small sins; truly mountains are made from pebbles}}

As with many other templates, if the characters = or | appear in the verse texts, they will break the template's display. The easiest solution is to replace them with {{=}} or {{!}} respectively.

The |lang1= parameter covers the first block of text in this template. It is good practice to enclose any other non-English text—such as in |attr1=—in the {{lang}} template, as in the full example above.

The |lang2= parameter is similar but covers the second block of text (it may be translated in another language than English)

The indentation provided automatically in this template is approximately equal to
<blockquote>
and <poem> in the following examples:
ऐसा लिखें ऐसा दिखायी देगा
Text.
<blockquote>Indented text.</blockquote>
More text.

Text.

Quoted text.

More text.

ऐसा लिखें ऐसा दिखायी देगा
Text.
<poem style="margin-left: 3em; font-style:italic">Indented text.</poem>
More text.

Text.

Indented text.

More text.

However, it looks markedly different on mobile, and lacks the semantics of
<blockquote>
.

Although optimized for verse, the template works equally well for prose. For example:

टेम्पलेट डेटा

संपादित करें

Use this template to provide a side-by-side translation of a text

साँचे के पैरामीटर्स

पैरामीटरविवरणप्रकारस्थिति
Original text1

कोई विवरण नहीं

स्वचालित वैल्यू
अज्ञातआवश्यक
Translation2

कोई विवरण नहीं

स्वचालित वैल्यू
अज्ञातआवश्यक
Header or title for the original texthead1

कोई विवरण नहीं

अज्ञातवैकल्पिक
Header or title for the translationhead2

कोई विवरण नहीं

अज्ञातवैकल्पिक
Language code (original text)lang1 lang

ISO 639 language code or IETF language tag for the first column of text.

उदाहरण
fr
अज्ञातवैकल्पिक
Italics (original text)italicsoff

If set to any value, the first column's italics are turned off. This is useful for original texts in non-Latin scripts, for which italics may be neither useful nor appropriate.

उदाहरण
y
अज्ञातवैकल्पिक
Right-to-left (original text)rtl1

If set to any value, the first column's text is aligned right. This is useful for original texts in right-to-left languages like Arabic.

उदाहरण
y
अज्ञातवैकल्पिक
Attribution (original text)attr1

Attribution(s) for the original text

उदाहरण
Rene Descartes (1644), ''Principles of Philosophy''
अज्ञातवैकल्पिक
Language code (translation)lang2

ISO 639 language code or IETF language tag for the second column of text.

उदाहरण
it
अज्ञातवैकल्पिक
Italics (translation)italicsoff2

If set to any value, the second column's italics are turned off. This is useful for original texts in non-Latin scripts, for which italics may be neither useful nor appropriate.

उदाहरण
y
अज्ञातवैकल्पिक
Right-to-left (translation)rtl2

If set to any value, the second column's text is aligned right. This is useful for original texts in right-to-left languages like Pashto.

उदाहरण
y
अज्ञातवैकल्पिक
Attribution (translation)attr2

Attribution(s) for the translation

उदाहरण
John Smith (1959)
अज्ञातवैकल्पिक
Width (all texts)width

Limit the width of the template enclosing entire content.

उदाहरण
100%
अज्ञातवैकल्पिक