Home  

Random  

Nearby  



Log in  



Settings  



Donate  



About Wikipedia  

Disclaimers  



Wikipedia





Module:Distinguish





Module  

Talk  



Language  

Watch  

View source  





Implements {{distinguish}}.

local mHatnote = require('Module:Hatnote')
local mHatlist = require('Module:Hatnote list')
local mArguments --initialize lazily
local mTableTools --initialize lazily
local libraryUtil = require('libraryUtil')
local checkType = libraryUtil.checkType
local p = {}

function p.distinguish(frame)
 mArguments = require('Module:Arguments')
 mTableTools = require('Module:TableTools')
 local args = mArguments.getArgs(frame)
 local selfref = args.selfref
 local text = args.text
 args = mTableTools.compressSparseArray(args)
 return p._distinguish(args, text, selfref)
end

function p._distinguish(args, text, selfref)
 checkType("_distinguish", 1, args, 'table')
 if #args == 0 and not text then return '' end
 local text = string.format(
  'Not to be confused with %s.',
  text or mHatlist.orList(args, true)
 )
 hnOptions = {selfref = selfref}
 return mHatnote._hatnote(text, hnOptions)
end

return p

Retrieved from "https://en.wikipedia.org/w/index.php?title=Module:Distinguish&oldid=833561758"
 



Last edited on 1 April 2018, at 10:06  


Languages

 


Аԥсшәа
العربية
Asturianu
Авар
تۆرکجه
Basa Bali

 / Bân-lâm-gú

Bikol Central
Bosanski
Буряад
Català
Cebuano
Čeština
Corsu
Ελληνικά
فارسی
Galego
گیلکی

  / Gõychi Konknni

Hawaiʻi
ि
Bahasa Hulontalo
Ilokano
Bahasa Indonesia

Қазақша
Ikinyarwanda
Kurdî
Ladin
Македонски

Malti

مصرى

Bahasa Melayu
Монгол
Na Vosa Vakaviti


Português
Qaraqalpaqsha

سرائیکی
Scots

Simple English
سنڌي
Slovenščina
کوردی
Српски / srpski
Tagalog
ி
Taqbaylit
 

Тоҷикӣ
Türkçe
Türkmençe
اردو
Tiếng Vit


Dagaare
 

Wikipedia


This page was last edited on 1 April 2018, at 10:06 (UTC).

Content is available under CC BY-SA 4.0 unless otherwise noted.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Terms of Use

Desktop