transl

編輯
compare transl to transl/sandbox
live sandbox
code result code result
{{transl|ar|al-Khwarizmi}} al-Khwarizmi {{transl/sandbox|ar|al-Khwarizmi}} Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'
<span lang="ar-Latn" xml:lang="ar-Latn" title="阿拉伯語轉寫" class="Unicode" style="white-space:normal; text-decoration: none">al-Khwarizmi</span> <strong class="error"><span class="scribunto-error mw-scribunto-error-0505addc">Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'</span></strong>
{{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|š}} Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'
<span lang="cu-Latn" xml:lang="cu-Latn" title="教會斯拉夫語轉寫" class="Unicode" style="white-space:normal; text-decoration: none">š</span> <strong class="error"><span class="scribunto-error mw-scribunto-error-0505addc">Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'</span></strong>
{{transl|ru|š}} š {{transl/sandbox|ru|š}} Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'
<span lang="ru-Latn" xml:lang="ru-Latn" title="俄語轉寫" class="Unicode" style="white-space:normal; text-decoration: none">š</span> <strong class="error"><span class="scribunto-error mw-scribunto-error-0505addc">Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'</span></strong>
{{transl|ar|DIN|al-Ḫawārizmī}} al-Ḫawārizmī {{transl/sandbox|ar|DIN|al-Ḫawārizmī}} Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'
<span lang="ar-Latn" xml:lang="ar-Latn" title="DIN 31635 阿拉伯語" class="Unicode" style="white-space:normal; text-decoration: none">al-Ḫawārizmī</span> <strong class="error"><span class="scribunto-error mw-scribunto-error-0505addc">Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'</span></strong>
{{transl|ar|ALA|al-Khawārizmī}} al-Khawārizmī {{transl/sandbox|ar|ALA|al-Khawārizmī}} Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'
<span lang="ar-Latn" xml:lang="ar-Latn" title="arALA轉寫" class="Unicode" style="white-space:normal; text-decoration: none">al-Khawārizmī</span> <strong class="error"><span class="scribunto-error mw-scribunto-error-0505addc">Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'</span></strong>
{{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] 錯誤:{{Transliteration}}: 缺少語言/文字代碼(幫助
<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">錯誤:{{Transliteration}}: 缺少語言/文字代碼([[:Category:Transl模板錯誤|幫助]])</span>[[Category:Transl模板錯誤]]
{{transl|ar}} {{{2}}} {{transl/sandbox|ar}} [未定義] 錯誤:{{Transliteration}}: 無文本(幫助
<span lang="ar-Latn" xml:lang="ar-Latn" title="阿拉伯語轉寫" class="Unicode" style="white-space:normal; text-decoration: none">{{{2}}}</span> [未定義] <span style="color:#d33">錯誤:{{Transliteration}}: 無文本([[:Category:Transl模板錯誤|幫助]])</span>[[Category:Transl模板錯誤]]
{{transl|at|al-Khwarizmi}} al-Khwarizmi {{transl/sandbox|at|al-Khwarizmi}} [al-Khwarizmi] 錯誤:{{Transliteration}}: 無法識別的語言/文字代碼: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">錯誤:{{Transliteration}}: 無法識別的語言/文字代碼:at([[:Category:Transl模板錯誤|幫助]])</span>[[Category:Transl模板錯誤]]
{{transl|ar|AL|al-Khwarizmi}} al-Khwarizmi {{transl/sandbox|ar|AL|al-Khwarizmi}} [al-Khwarizmi] 錯誤:{{Transliteration}}: 無法識別的轉譯標準: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">錯誤:{{Transliteration}}: 無法識別的轉譯標準:al([[:Category:Transl模板錯誤|幫助]])</span>[[Category:Transl模板錯誤]]


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=}} Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'
<span lang="ar-Latn" xml:lang="ar-Latn" title="阿拉伯語轉寫" class="Unicode" style="white-space:normal; text-decoration: none">nasu aleunsur alnnayib</span> <strong class="error"><span class="scribunto-error mw-scribunto-error-0505addc">Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'</span></strong>
{{transl|ar|nasu aleunsur alnnayib|italic=yes}} nasu aleunsur alnnayib {{transl/sandbox|ar|nasu aleunsur alnnayib|italic=yes}} Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'
<span lang="ar-Latn" xml:lang="ar-Latn" title="阿拉伯語轉寫" class="Unicode" style="white-space:normal; text-decoration: none">nasu aleunsur alnnayib</span> <strong class="error"><span class="scribunto-error mw-scribunto-error-0505addc">Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'</span></strong>
{{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="阿拉伯語 romanization"><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}} Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'
<span lang="ar-Latn" xml:lang="ar-Latn" title="阿拉伯語轉寫" class="Unicode" style="white-space:normal; text-decoration: none">nasu aleunsur alnnayib</span> <strong class="error"><span class="scribunto-error mw-scribunto-error-0505addc">Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'</span></strong>
{{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="阿拉伯語 romanization"><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}} 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">錯誤:{{Transliteration}}: 只能指定|italic=、|italics=或|i=中的一個([[:Category:Transl模板錯誤|幫助]])</span>[[Category:Transl模板錯誤]]

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}} Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'
阿拉伯語:<span lang="ar" dir="rtl">نص العنصر النائب</span>&lrm;,<small>[[阿拉伯語羅馬化|羅馬化]]:</small><i lang="ar-Latn" title="阿拉伯語羅馬化">nasu aleunsur alnnayib</i> <strong class="error"><span class="scribunto-error mw-scribunto-error-0505addc">Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'</span></strong>
{{lang-ar/sandbox|نص العنصر النائب|nasu aleunsur alnnayib|translit-std=DIN}} 阿拉伯語:نص العنصر النائب‎,羅馬化nasu aleunsur alnnayib {{transl/sandbox|ar|DIN|nasu aleunsur alnnayib}} Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'
阿拉伯語:<span lang="ar" dir="rtl">نص العنصر النائب</span>&lrm;,<small>[[阿拉伯語羅馬化|羅馬化]]:</small><i lang="ar-Latn" title="DIN 31635 Arabic(阿拉伯語)轉寫">nasu aleunsur alnnayib</i> <strong class="error"><span class="scribunto-error mw-scribunto-error-0505addc">Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'</span></strong>
{{lang-ar/sandbox|نص العنصر النائب|nasu aleunsur alnnayib|translit-std=ALA}} 阿拉伯語:نص العنصر النائب‎,羅馬化nasu aleunsur alnnayib {{transl/sandbox|ar|ALA|nasu aleunsur alnnayib}} Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'
阿拉伯語:<span lang="ar" dir="rtl">نص العنصر النائب</span>&lrm;,<small>[[阿拉伯語羅馬化|羅馬化]]:</small><i lang="ar-Latn" title="American Library Association – Library of Congress transliteration">nasu aleunsur alnnayib</i> <strong class="error"><span class="scribunto-error mw-scribunto-error-0505addc">Module:Lang/sandbox第744行Lua錯誤:invalid value (nil) at index 2 in table for 'concat'</span></strong>
{{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><i lang="ar-Latn" title="DIN transliteration">nasu aleunsur alnnayib</i> 阿拉伯語:<span lang="ar" dir="rtl">نص العنصر النائب</span>&lrm;,<small>[[阿拉伯語羅馬化|羅馬化]]:</small><i lang="ar-Latn" title="DIN transliteration">nasu aleunsur alnnayib</i>