يمكنك أن تنشئ صفحة توثيق لهذه الوحدة (أنشئ). يمكن للمحررين تجريب تعديلاتهم على الوحدة في صفحات ملعب (أنشئ | مرآة) ومختبر (أنشئ). من فضلك أضف التصنيفات في الصفحة الفرعية للقالب /شرح. الصفحات الفرعية لـ وحدة.
localp={}functionp.makelink(url,showntext)ifnoturlthenreturnnilendurl=mw.text.trim(url)ifnotshowntextthenlocalspace=mw.ustring.find(url,' ')-- si le nom du site est passé par mégarde dans l'URL, le séparerifspacethenlocalfull=urlurl=mw.ustring.sub(full,1,space-1)showntext=mw.ustring.sub(full,space+1)elseshowntext=string.gsub(url,'https?://','')endendifstring.sub(showntext,#showntext,#showntext)=='/'then-- remove trailing slashshowntext=string.sub(showntext,1,#showntext-1)endreturn'['..url..' '..showntext..']'endfunctionp.makelinks(stringlist,separator)ifnottype(stringlist)==tablethenreturnerror('stringlist should be table')endifnotseparatorthenseparator='<br />'endfori,jinpairs(stringlist)dostringlist[i]=p.makelink(k)returntable.concat(stringlist,separator)endendreturnp