Content deleted Content added
No edit summary |
No edit summary |
||
Line 259:
{'code=gem|text=test|translit=ʿarabī|translation=Arabic'}, -- not valid translations, the test is here to see the link with a collective lagnauge
{'code=ath|text=test|translit=ʿarabī|translation=Arabic'}, -- not valid translations, the test is here to see the link with a collective lagnauge
}, {nowiki=1})
end
--[[--------------------------< L I N K _ A N D _ L A B E L >------------------------------------------------------------------------
Tests various supported combinations of |link= and |label= combinations.
]]
function p:test_11_lang_xx_link_and_label()
self:preprocess_equals_preprocess_many('{{#invoke:Lang/sandbox|lang_xx_inherit|nocat=yes|', '}}', '{{#invoke:Lang|lang_xx_inherit|nocat=yes|', '}}',
{
{'code=uk|морити голодом|lit=to kill by starvation|translit=moryty holodom|label=none'},
{'code=uk|морити голодом|lit=to kill by starvation|translit=moryty holodom|label=none|link=no'},
{'code=ff|text=test|translit=something|translit-script=Adlm|label=none'},
{'code=ff|text=test|translit=something|translit-script=Adlm|label=test label'},
Line 272 ⟶ 286:
]]
function p:
self:preprocess_equals_preprocess_many('{{#invoke:Lang/sandbox|lang_xx_inherit|code=ar', '}}', '{{#invoke:Lang|lang_xx_inherit|code=ar', '}}',
{
Line 293 ⟶ 307:
]]
function p:
self:preprocess_equals_preprocess_many('{{#invoke:Lang/sandbox|transl|nocat=yes|', '}}', '{{#invoke:Lang|transl|nocat=yes|', '}}',
{
Line 323 ⟶ 337:
]]
function p:
self:preprocess_equals_preprocess_many('{{#invoke:Lang/sandbox|transl|nocat=yes|', '}}', '{{#invoke:Lang|transl|nocat=yes|', '}}',
{
Line 352 ⟶ 366:
]]
function p:
self:preprocess_equals_preprocess_many('{{#invoke:Lang/sandbox|category_from_tag|nocat=yes|link=yes|', '}}', '{{#invoke:Lang|category_from_tag|nocat=yes|link=yes|', '}}',
{
Line 371 ⟶ 385:
]]
function p:
self:preprocess_equals_preprocess_many('{{#invoke:Lang/sandbox|lang|nocat=yes|', '}}', '{{#invoke:Lang|lang|nocat=yes|', '}}',
{
Line 397 ⟶ 411:
function p:
self:preprocess_equals_preprocess_many('{{#invoke:Lang/sandbox|lang_xx_inherit|nocat=yes|', '}}', '{{#invoke:Lang|lang_xx_inherit|nocat=yes|', '}}',
{
Line 430 ⟶ 444:
]]
function p:
self:preprocess_equals_preprocess_many('{{#invoke:Lang/sandbox|transl|nocat=yes|', '}}', '{{#invoke:Lang|transl|nocat=yes|', '}}',
{
Line 455 ⟶ 469:
]]
function p:
self:preprocess_equals_preprocess_many('{{#invoke:Lang/sandbox|name_from_tag|nocat=yes|', '}}', '{{#invoke:Lang|name_from_tag|nocat=yes|', '}}',
{
Line 476 ⟶ 490:
]]
function p:
self:preprocess_equals_preprocess_many('{{#invoke:Lang/sandbox|tag_from_name|nocat=yes|', '}}', '{{#invoke:Lang|tag_from_name|nocat=yes|', '}}',
{
Line 490 ⟶ 504:
]]
function p:
self:preprocess_equals_preprocess_many('{{#invoke:Lang/sandbox|category_from_tag|nocat=yes|', '}}', '{{#invoke:Lang|category_from_tag|nocat=yes|', '}}',
{
|