Modul:InfoboxImage: Perbedaan antara revisi
Tampilan
Mediawiki>Hidayatsrf Tidak ada ringkasan suntingan |
k 1 revisi diimpor |
||
| (1 revisi perantara oleh pengguna yang sama tidak ditampilkan) | |||
| Baris 165: | Baris 165: | ||
local cat = ""; | local cat = ""; | ||
if mw.title.getCurrentTitle().namespace == 0 and (mw.ustring.find(image, "|%s*thumb%s*[|%]]") or mw.ustring.find(image, "|%s*thumbnail%s*[|%]]")) then | if mw.title.getCurrentTitle().namespace == 0 and (mw.ustring.find(image, "|%s*thumb%s*[|%]]") or mw.ustring.find(image, "|%s*thumbnail%s*[|%]]")) then | ||
cat = "[[ | cat = "[[Category:Pages using infoboxes with thumbnail images]]"; | ||
end | end | ||
return image .. cat; | return image .. cat; | ||
| Baris 226: | Baris 226: | ||
end | end | ||
result = "[[ | result = "[[File:" .. image; | ||
if page ~= "" and page ~= nil then | if page ~= "" and page ~= nil then | ||
result = result .. "|page=" .. page; | result = result .. "|page=" .. page; | ||