跳至內容

模板:Transl/testcases

維基百科,自由的百科全書

transl

[編輯]
compare transl to transl/sandbox
live sandbox
code result code result
{{transl|ar|al-Khwarizmi}} al-Khwarizmi {{transl/sandbox|ar|al-Khwarizmi}} al-Khwarizmi
<span lang="ar-Latn" xml:lang="ar-Latn" title="阿拉伯語轉寫" class="Unicode" style="white-space:normal; text-decoration: none">al-Khwarizmi</span> <span title="阿拉伯語"><span lang="ar-Latn">al-Khwarizmi</span></span>
{{transl|Ogam|MAQI}} MAQI {{transl/sandbox|Ogam|MAQI}} MAQI
<span lang="Ogam-Latn" xml:lang="Ogam-Latn" title="Ogam轉寫" class="Unicode" style="white-space:normal; text-decoration: none">MAQI</span> <span title="Ogham-字母轉寫"><span>MAQI</span></span>
{{transl|Cyrl|š}} š {{transl/sandbox|Cyrl|š}} š
<span lang="Cyrl-Latn" xml:lang="Cyrl-Latn" title="Cyrl轉寫" class="Unicode" style="white-space:normal; text-decoration: none">š</span> <span title="Cyrillic-字母轉寫"><span>š</span></span>
{{transl|cu|š}} š {{transl/sandbox|cu|š}} š
<span lang="cu-Latn" xml:lang="cu-Latn" title="教會斯拉夫語轉寫" class="Unicode" style="white-space:normal; text-decoration: none">š</span> <span title="教會斯拉夫語"><span lang="cu-Latn">š</span></span>
{{transl|ru|š}} š {{transl/sandbox|ru|š}} š
<span lang="ru-Latn" xml:lang="ru-Latn" title="俄語轉寫" class="Unicode" style="white-space:normal; text-decoration: none">š</span> <span title="俄語"><span lang="ru-Latn">š</span></span>
{{transl|ar|DIN|al-Ḫawārizmī}} al-Ḫawārizmī {{transl/sandbox|ar|DIN|al-Ḫawārizmī}} al-Ḫawārizmī
<span lang="ar-Latn" xml:lang="ar-Latn" title="DIN 31635 阿拉伯語" class="Unicode" style="white-space:normal; text-decoration: none">al-Ḫawārizmī</span> <span title="DIN 31635 Arabic(阿拉伯語)轉寫"><span lang="ar-Latn">al-Ḫawārizmī</span></span>
{{transl|ar|ALA|al-Khawārizmī}} al-Khawārizmī {{transl/sandbox|ar|ALA|al-Khawārizmī}} al-Khawārizmī
<span lang="ar-Latn" xml:lang="ar-Latn" title="arALA轉寫" class="Unicode" style="white-space:normal; text-decoration: none">al-Khawārizmī</span> <span title="American Library Association – Library of Congress transliteration"><span lang="ar-Latn">al-Khawārizmī</span></span>
{{transl|Arab|DIN|Ḫ}} {{transl/sandbox|Arab|DIN|Ḫ}}
<span lang="Arab-Latn" xml:lang="Arab-Latn" title="DIN 31635 阿拉伯語" class="Unicode" style="white-space:normal; text-decoration: none">Ḫ</span> <span title="DIN 31635 Arabic(Arabic)轉寫"><span>Ḫ</span></span>
{{transl|Arab|ALA|Kh}} Kh {{transl/sandbox|Arab|ALA|Kh}} Kh
<span lang="Arab-Latn" xml:lang="Arab-Latn" title="ArabALA轉寫" class="Unicode" style="white-space:normal; text-decoration: none">Kh</span> <span title="American Library Association – Library of Congress transliteration"><span>Kh</span></span>


error messages; compare transl to transl/sandbox
live sandbox
code result code result
{{transl|al-Khwarizmi}} {{{2}}} {{transl/sandbox|al-Khwarizmi}} [al-Khwarizmi] 錯誤:{{Transl}}:缺少語言/字母代碼(幫助
<span lang="al-Khwarizmi-Latn" xml:lang="al-Khwarizmi-Latn" title="al-Khwarizmi轉寫" class="Unicode" style="white-space:normal; text-decoration: none">{{{2}}}</span> [al-Khwarizmi] <span style="color:#d33">錯誤:{{Transl}}:缺少語言/字母代碼([[:Category:Transliteration模板錯誤|幫助]])</span>[[Category:Transliteration模板錯誤]]
{{transl|ar}} {{{2}}} {{transl/sandbox|ar}} [未定義] 錯誤:{{Transl}}:無文本(幫助
<span lang="ar-Latn" xml:lang="ar-Latn" title="阿拉伯語轉寫" class="Unicode" style="white-space:normal; text-decoration: none">{{{2}}}</span> [未定義] <span style="color:#d33">錯誤:{{Transl}}:無文本([[:Category:Transliteration模板錯誤|幫助]])</span>[[Category:Transliteration模板錯誤]]
{{transl|at|al-Khwarizmi}} al-Khwarizmi {{transl/sandbox|at|al-Khwarizmi}} [al-Khwarizmi] 錯誤:{{Transl}}:無法識別的語言/字母代碼:at(幫助
<span lang="at-Latn" xml:lang="at-Latn" title="at轉寫" class="Unicode" style="white-space:normal; text-decoration: none">al-Khwarizmi</span> [al-Khwarizmi] <span style="color:#d33">錯誤:{{Transl}}:無法識別的語言/字母代碼:at([[:Category:Transliteration模板錯誤|幫助]])</span>[[Category:Transliteration模板錯誤]]
{{transl|ar|AL|al-Khwarizmi}} al-Khwarizmi {{transl/sandbox|ar|AL|al-Khwarizmi}} [al-Khwarizmi] 錯誤:{{Transl}}:無法識別的轉譯標準:al(幫助
<span lang="ar-Latn" xml:lang="ar-Latn" title="arAL轉寫" class="Unicode" style="white-space:normal; text-decoration: none">al-Khwarizmi</span> [al-Khwarizmi] <span style="color:#d33">錯誤:{{Transl}}:無法識別的轉譯標準:al([[:Category:Transliteration模板錯誤|幫助]])</span>[[Category:Transliteration模板錯誤]]


italic style: compare transl to transl/sandbox
transl transl/sandbox
code result code result
{{transl|ar|nasu aleunsur alnnayib|italic=}} nasu aleunsur alnnayib {{transl/sandbox|ar|nasu aleunsur alnnayib|italic=}} nasu aleunsur alnnayib
<span lang="ar-Latn" xml:lang="ar-Latn" title="阿拉伯語轉寫" class="Unicode" style="white-space:normal; text-decoration: none">nasu aleunsur alnnayib</span> <span title="阿拉伯語"><span lang="ar-Latn">nasu aleunsur alnnayib</span></span>
{{transl|ar|nasu aleunsur alnnayib|italic=yes}} nasu aleunsur alnnayib {{transl/sandbox|ar|nasu aleunsur alnnayib|italic=yes}} nasu aleunsur alnnayib
<span lang="ar-Latn" xml:lang="ar-Latn" title="阿拉伯語轉寫" class="Unicode" style="white-space:normal; text-decoration: none">nasu aleunsur alnnayib</span> <span title="阿拉伯語"><span lang="ar-Latn">nasu aleunsur alnnayib</span></span>
{{transl|ar|nasu aleunsur alnnayib|italic=no}} nasu aleunsur alnnayib {{transl/sandbox|ar|nasu aleunsur alnnayib|italic=no}} nasu aleunsur alnnayib
<span lang="ar-Latn" xml:lang="ar-Latn" title="阿拉伯語轉寫" class="Unicode" style="white-space:normal; text-decoration: none">nasu aleunsur alnnayib</span> <span title="阿拉伯語"><span style="font-style: normal" lang="ar-Latn">nasu aleunsur alnnayib</span></span>
{{transl|ar|nasu aleunsur alnnayib|italic=default}} nasu aleunsur alnnayib {{transl/sandbox|ar|nasu aleunsur alnnayib|italic=default}} nasu aleunsur alnnayib
<span lang="ar-Latn" xml:lang="ar-Latn" title="阿拉伯語轉寫" class="Unicode" style="white-space:normal; text-decoration: none">nasu aleunsur alnnayib</span> <span title="阿拉伯語"><span lang="ar-Latn">nasu aleunsur alnnayib</span></span>
{{transl|ar|nasu ''aleunsur'' alnnayib|italic=unset}} nasu aleunsur alnnayib {{transl/sandbox|ar|nasu ''aleunsur'' alnnayib|italic=unset}} nasu aleunsur alnnayib
<span lang="ar-Latn" xml:lang="ar-Latn" title="阿拉伯語轉寫" class="Unicode" style="white-space:normal; text-decoration: none">nasu ''aleunsur'' alnnayib</span> <span title="阿拉伯語"><span style="font-style: inherit" lang="ar-Latn">nasu ''aleunsur'' alnnayib</span></span>
{{transl|Arab|nasu ''aleunsur'' alnnayib|italic=unset}} nasu aleunsur alnnayib {{transl/sandbox|Arab|nasu ''aleunsur'' alnnayib|italic=unset}} nasu aleunsur alnnayib
<span lang="Arab-Latn" xml:lang="Arab-Latn" title="Arab轉寫" class="Unicode" style="white-space:normal; text-decoration: none">nasu ''aleunsur'' alnnayib</span> <span title="Arabic-字母轉寫"><span>nasu ''aleunsur'' alnnayib</span></span>
{{transl|Arab|nasu ''aleunsur'' alnnayib|italic=yes|italics=no}} nasu aleunsur alnnayib {{transl/sandbox|Arab|nasu ''aleunsur'' alnnayib|italic=yes|italics=no}} [nasu aleunsur alnnayib] 錯誤:{{Transl}}:只能指定 |italic=、|italics= 或 |i= 中的一個(幫助
<span lang="Arab-Latn" xml:lang="Arab-Latn" title="Arab轉寫" class="Unicode" style="white-space:normal; text-decoration: none">nasu ''aleunsur'' alnnayib</span> [nasu ''aleunsur'' alnnayib] <span style="color:#d33">錯誤:{{Transl}}:只能指定 &#124;italic=、&#124;italics= 或 &#124;i= 中的一個([[:Category:Transliteration模板錯誤|幫助]])</span>[[Category:Transliteration模板錯誤]]

lang-xx

[編輯]

because {{lang-??}} templates share code in Module:Lang with {{transl}}, it seems appropriate that both should be tested here because they are slightly different; fixes to one must not break the other.

compare lang-ar/sandbox to transl/sandbox
lang-ar/sandbox transl/sandbox
code result code result
{{lang-ar/sandbox|نص العنصر النائب|nasu aleunsur alnnayib}} 阿拉伯語:نص العنصر النائب‎,羅馬化nasu aleunsur alnnayib {{transl/sandbox|ar|nasu aleunsur alnnayib}} nasu aleunsur alnnayib
阿拉伯語:<span lang="ar" dir="rtl">نص العنصر النائب</span>&lrm;,<small>[[阿拉伯語羅馬化|羅馬化]]:</small><span lang="ar-Latn" title="阿拉伯語羅馬化">nasu aleunsur alnnayib</span> <span title="阿拉伯語"><span lang="ar-Latn">nasu aleunsur alnnayib</span></span>
{{lang-ar/sandbox|نص العنصر النائب|nasu aleunsur alnnayib|translit-std=DIN}} 阿拉伯語:نص العنصر النائب‎,羅馬化nasu aleunsur alnnayib {{transl/sandbox|ar|DIN|nasu aleunsur alnnayib}} nasu aleunsur alnnayib
阿拉伯語:<span lang="ar" dir="rtl">نص العنصر النائب</span>&lrm;,<small>[[阿拉伯語羅馬化|羅馬化]]:</small><span lang="ar-Latn" title="DIN 31635 Arabic(阿拉伯語)轉寫">nasu aleunsur alnnayib</span> <span title="DIN 31635 Arabic(阿拉伯語)轉寫"><span lang="ar-Latn">nasu aleunsur alnnayib</span></span>
{{lang-ar/sandbox|نص العنصر النائب|nasu aleunsur alnnayib|translit-std=ALA}} 阿拉伯語:نص العنصر النائب‎,羅馬化nasu aleunsur alnnayib {{transl/sandbox|ar|ALA|nasu aleunsur alnnayib}} nasu aleunsur alnnayib
阿拉伯語:<span lang="ar" dir="rtl">نص العنصر النائب</span>&lrm;,<small>[[阿拉伯語羅馬化|羅馬化]]:</small><span lang="ar-Latn" title="American Library Association – Library of Congress transliteration">nasu aleunsur alnnayib</span> <span title="American Library Association – Library of Congress transliteration"><span lang="ar-Latn">nasu aleunsur alnnayib</span></span>
{{lang-ar/sandbox|نص العنصر النائب|nasu aleunsur alnnayib|translit-std=DIN|translit-script=arab}} Module:Lang第1220行Lua錯誤:invalid value (nil) at index 1 in table for 'concat' {{transl/sandbox|Arab|DIN|nasu aleunsur alnnayib}} nasu aleunsur alnnayib
<strong class="error"><span class="scribunto-error mw-scribunto-error-1bd5d387">Module:Lang第1220行Lua錯誤:invalid value (nil) at index 1 in table for 'concat'</span></strong> <span title="DIN 31635 Arabic(Arabic)轉寫"><span>nasu aleunsur alnnayib</span></span>
error messages: compare lang-ar to lang-ar/sandbox
live sandbox
code result code result
{{lang-ar|نص العنصر النائب|nasu aleunsur alnnayib|translit-std=bob}} [نص العنصر النائب] 錯誤:{{Lang-xx}}:invalid translit-std: 'bob(幫助 {{lang-ar/sandbox|نص العنصر النائب|nasu aleunsur alnnayib|translit-std=bob}} [نص العنصر النائب] 錯誤:{{Lang-xx}}:invalid translit-std: 'bob(幫助
[نص العنصر النائب] <span style="font-size: 100%; font-style: normal;" class="error">錯誤:{{Lang-xx}}:invalid translit-std: 'bob([[:Category:Lang和lang-xx模板錯誤|幫助]])</span>[[Category:Lang和lang-xx模板錯誤]] [نص العنصر النائب] <span style="font-size: 100%; font-style: normal;" class="error">錯誤:{{Lang-xx}}:invalid translit-std: 'bob([[:Category:Lang和lang-xx模板錯誤|幫助]])</span>[[Category:Lang和lang-xx模板錯誤]]
{{lang-ar|نص العنصر النائب|nasu aleunsur alnnayib|translit-std=DIN|translit-script=ara}} 阿拉伯語:نص العنصر النائب‎,羅馬化nasu aleunsur alnnayib {{lang-ar/sandbox|نص العنصر النائب|nasu aleunsur alnnayib|translit-std=DIN|translit-script=ara}} 阿拉伯語:نص العنصر النائب‎,羅馬化nasu aleunsur alnnayib
阿拉伯語:<span lang="ar" dir="rtl">نص العنصر النائب</span>&lrm;,<small>[[阿拉伯語羅馬化|羅馬化]]:</small><span lang="ar-Latn" title="DIN transliteration">nasu aleunsur alnnayib</span> 阿拉伯語:<span lang="ar" dir="rtl">نص العنصر النائب</span>&lrm;,<small>[[阿拉伯語羅馬化|羅馬化]]:</small><span lang="ar-Latn" title="DIN transliteration">nasu aleunsur alnnayib</span>