1932年属什么| 多囊卵巢综合症吃什么食物好| 一般细菌培养及鉴定是检查什么| 教授相当于什么级别| 梦见老公有外遇预示什么| 乔字五行属什么| 淋巴滤泡增生是什么意思严重吗| 吃什么有饱腹感还减肥| 洗涤是什么意思| 瑗是什么意思| 口腔上火是什么原因| 脑梗挂号挂什么科室| 什么运动可以长高| 野鸭吃什么| 角质是什么| 不可翻转干燥是什么意思| 起大运是什么意思| 补办身份证需要什么| 女人气虚吃什么补最快| bdp是什么意思| 女龙配什么属相最好| 须尽欢什么意思| 为什么口臭| 迎风流泪用什么眼药水| 康庄大道是什么意思| 微信是什么时候开始有的| 避孕药是什么原理| 灰指甲什么症状| 白敬亭原名叫什么| 经血颜色淡是什么原因| 亚硝酸盐是什么| 什么马没有腿| 附件囊肿吃什么药最好| 你会不会突然的出现是什么歌| 猴头菇和什么煲汤最好| 刚愎自负是什么意思| 血府逐瘀丸治什么病| 糖化血红蛋白是什么意思| 舌头变黑是什么原因| 什么饺子馅最好吃| 中元节是什么节| 足底筋膜炎吃什么药| 灵芝泡酒有什么功效| 悠是什么意思| 酸菜是什么菜做的| 晚上十一点多是什么时辰| maby什么意思| 纳闷是什么意思| 桂林有什么好玩的| 祈祷什么意思| 11月18日是什么星座| kms是什么意思| 拉肚子喝什么| 散瞳什么意思| 开放性骨折是什么意思| 什么原因导致脾虚| 养兰花用什么土最好| 什么的天山| 扭捏是什么意思| 机械键盘什么轴最好| 补牙是什么意思| 孕妇可以喝什么茶| 心源性哮喘首选什么药| 为什么脚上会长鸡眼| 北京豆汁儿什么味道| 男性雄激素低吃什么药| 什么蔬菜含钾量最高| 怀孕前三个月吃什么好| 妈妈咪呀是什么意思| 头晕视力模糊是什么原因| 长期喝什么水可以美白| 1993年出生的属什么| 对称是什么意思| 脉压是什么意思| 川崎病是什么病| 手指甲上有竖纹是什么原因| 咀嚼什么意思| 副胎盘什么意思| 树大招风的意思是什么| 发霉是什么菌| 梦见西瓜是什么意思| 血糖高能吃什么水果| 新生儿黄疸高有什么危害| 什么是次数| 从来不吃窝边草是什么生肖| 碱性磷酸酶偏高说明什么问题| 85年五行属什么| 什么叫npc| 历史是个什么玩意儿| 去心火喝什么茶好| 孩子不愿意吃饭是什么原因| 相恋纪念日送什么礼物| 存在是什么| 便秘吃什么药快速排便| 吃什么缓解孕吐| 蚊子喜欢什么血型| 做梦梦到小孩子是什么意思| 梦到上坟是什么意思| 毒瘾为什么那么难戒| 男人艾灸什么地方壮阳| 序列是什么意思| 阴毛长虱子用什么药| 什么都想吃| 做深蹲有什么好处| 花椒桂圆艾绒敷肚脐有什么作用| 舌裂纹是什么原因| 香蕉为什么是弯的| 肌酸是什么东西| 指甲黑线是什么原因| 窦性心动过缓是什么病| 黄体功能不足吃什么药| 薄凉是什么意思| 肾火吃什么药| 黑松露是什么| 北字五行属什么| 錾是什么意思| 鼻窦炎是什么样子的| 高位截瘫是什么意思| 什么原因导致心肌缺血| 十月一日什么星座| 肘关节发黑是什么原因| 荔枝什么品种好吃| 睾丸变小了是什么原因| 狂犬病是什么| 肺痨是什么病| goldlion是什么牌子| 怀孕一个月肚子有什么变化| 大腿淤青是什么原因| offer是什么| ibm是什么| fredperry是什么牌子| 棕色眼睛的人什么血统| 什么是碳水食物有哪些| 属蛇男和什么属相最配| 车辆购置税什么时候交| 为什么月经量少| 世界上最大的岛是什么岛| 低血糖吃什么食物| 老赖什么意思| 蟑螂怕什么| 黄瓜籽粉有什么作用| 子宫增大是什么原因造成的| 随访复查什么意思| 脱式计算是什么意思| 打啵什么意思| 梦见穿裤子是什么意思| 酸儿辣女什么意思| 怀才不遇什么意思| 签证是什么| 孕妇耻骨疼是什么原因| 兹禧属什么生肖| 胃反酸是什么原因| 安字属于五行属什么| 乳头出血是什么原因| 保和丸有什么功效| cea检查是什么意思| 血糖和血脂有什么区别| 杨幂的公司叫什么名字| 疣是什么意思| 11月5日是什么星座| 一个金字旁一个先读什么| 早上起床想吐是什么原因| 双鱼座和什么星座最配| 金的部首是什么| 孩子是ab型父母是什么血型| 心慌什么原因引起的| 87年属什么的| 相濡以沫是什么生肖| 长智齿说明了什么原因| 喉咙痛感冒吃什么药| 达菲是什么药| 髻是什么意思| 李元霸为什么怕罗士信| 火拼是什么意思| 眼球突出是什么原因| 头痛吃什么药效果好| 红豆与赤小豆有什么区别| 文气是什么意思| 脑血栓是什么原因引起的| 跳楼机是什么| 湾仔码头水饺为什么贵| 亮丽是什么意思| 耳鸣是什么原因导致的| 手红是什么原因| 倍他乐克是什么药| tdp是什么| pdd是什么意思| 海带和什么相克| 孕妇喝可乐对胎儿有什么影响| 女属羊和什么属相最配| tf口红是什么牌子| 落红是什么意思| 插入阴道是什么感觉| 孕妇吃辣椒对胎儿有什么影响| 什么叫息肉| 泄气是什么意思| 阑尾炎可以吃什么东西| 梦见买豆腐是什么意思| 君子兰有什么特点| 下巴老是长痘痘是什么原因| 高什么远瞩| 挑眉是什么意思| 肚子咕咕叫放屁多是什么原因| 右束支传导阻滞是什么意思| 眼白出血是什么原因| 睡觉掉床下是什么预兆| 止血芳酸又叫什么| fob价格是什么意思| vertu手机为什么那么贵| 鼠的三合生肖是什么| 孩子出汗多是什么原因| 舍我其谁是什么意思| 老人助听器什么牌子好| 什么症状吃肝胃气痛片| 左脚麻是什么原因| 枕戈待旦什么意思| 慢热型是什么意思| 右眼流泪是什么原因| 十二月二十三是什么星座| 为什么有脚气| 干细胞能治什么病| 仓鼠不能吃什么| 理疗是什么意思| 耳朵轮廓痒是什么原因| 充气娃娃是什么| 猪冲什么生肖| 老人大小便失禁是什么原因造成的| 当演员有什么要求| 醪糟是什么东西| 高铁座位为什么没有e座| 蛔虫长什么样| 15号来月经排卵期是什么时候| 什么的小狗| 罴是什么动物| 肺部有问题一般会出现什么症状| tb是什么意思啊| 皮肤过敏忌口什么食物| 养尊处优什么意思| 婴儿为什么戴银不戴金| 什么是淋巴| 心绪是什么意思| der是什么意思| 尿血挂什么科| 色觉异常是什么意思| 蛇毒有什么用| 肝硬化前期有什么症状| les什么意思| 走麦城是什么意思| 长脚气是什么原因引起的| 蚂蚱长什么样| 上善若水是什么意思| 自汗是什么意思| 女人下巴长痘痘是什么原因| 桃花的花语是什么| 梦见买手表是什么预兆| 单宁是什么| 两肺间质性改变是什么意思| 什么植物好养又适合放在室内| 什么言什么色| 什么是鸡尾酒| 社区医院属于什么级别| 老过敏是缺什么维生素| 黑裙配什么颜色的上衣| 口若悬河是什么生肖| 百度???????????? ????

半岛网 青岛新闻网上尽览

???????????, ????? ???????? ????

-- Inputs:
--    image - Can either be a bare filename (with or without the File:/Image: prefix) or a fully formatted image link
--    page - page to display for multipage images (DjVu)
--    size - size to display the image
--    maxsize - maximum size for image
--    sizedefault - default size to display the image if size param is blank
--    alt - alt text for image
--    title - title text for image
--    border - set to yes if border
--    center - set to yes, if the image has to be centered
--    upright - upright image param
--    suppressplaceholder - if yes then checks to see if image is a placeholder and suppresses it
--    link - page to visit when clicking on image
-- Outputs:
--    Formatted image.
-- More details available at the "Module:InfoboxImage/doc" page

local i = {};

local placeholder_image = {
    "Blue - Replace this image female bn.svg",
    "Blue - Replace this image male bn.svg",
    "Female no free image yet.png",
    "Flag of None (square).svg",
    "Flag of None.svg",
    "Flag of.svg",
    "Green - Replace this image female bn.svg",
    "Green - Replace this image male bn.svg",
    "Image is needed female.svg",
    "Image is needed male.svg",
    "Location map of None.svg",
    "Male no free image yet.png",
    "Missing flag.png",
    "No flag.svg",
    "No free portrait.svg",
    "No portrait (female).svg",
    "No portrait (male).svg",
    "Red - Replace this image female bn.svg",
    "Red - Replace this image male bn.svg",
    "Replace this image female (blue).svg",
    "Replace this image female bn.svg",
    "Replace this image male (blue).svg",
    "Replace this image male bn.svg",
    "Silver - Replace this image female bn.svg",
    "Silver - Replace this image male bn.svg",
    "Replace this image.svg",
	"Cricket no pic.png",
	"CarersLogo.gif",
	"Diagram Needed.svg",
	"??????.jpg",
	"?????",
	"?????",
	"????",
	"Image placeholder.png",
	"No male portrait.svg",
	"Nocover-upload.png",
	"NoDVDcover copy.png",
	"Noribbon.svg",
	"No portrait-BFD-test.svg",
	"Placeholder barnstar ribbon.png",
	"Project Trains no image.png",
	"Image-request.png",
	"Sin bandera.svg",
	"Sin escudo.svg",
	"Replace this image - temple.png",
	"Replace this image butterfly.png",
	"Replace this image.svg",
	"Replace this image1.svg",
	"Resolution angle.png",
	"Image-No portrait-text-BFD-test.svg",
	"Insert image here.svg",
	"No image available bn.svg",
	"NO IMAGE YET square.png",
	"NO IMAGE YET.png",
	"No Photo Available.svg",
	"No Screenshot.svg",
	"No-image-available.jpg",
	"Null.png",
	"PictureNeeded.gif",
	"Place holder.jpg",
	"Unbenannt.JPG",
	"UploadACopyrightFreeImage.svg",
	"UploadAnImage.gif",
	"UploadAnImage.svg",
	"UploadAnImageShort.svg",
}

function i.IsPlaceholder(image)
    -- change underscores to spaces
    image = mw.ustring.gsub(image, "_", " ");
    assert(image ~= nil, 'mw.ustring.gsub(image, "_", " ") must not return nil')
    -- if image starts with [[ then remove that and anything after |
    if mw.ustring.sub(image,1,2) == "[[" then
        image = mw.ustring.sub(image,3);
        image = mw.ustring.gsub(image, "([^|]*)|.*", "%1");
        assert(image ~= nil, 'mw.ustring.gsub(image, "([^|]*)|.*", "%1") must not return nil')
    end
    -- Trim spaces
    image = mw.ustring.gsub(image, '^[ ]*(.-)[ ]*$', '%1');
    assert(image ~= nil, "mw.ustring.gsub(image, '^[ ]*(.-)[ ]*$', '%1') must not return nil")
    -- remove prefix if exists
    local allNames = mw.site.namespaces[6].aliases
    allNames[#allNames + 1] = mw.site.namespaces[6].name
    allNames[#allNames + 1] = mw.site.namespaces[6].canonicalName
    for i, name in ipairs(allNames) do
        if mw.ustring.lower(mw.ustring.sub(image, 1, mw.ustring.len(name) + 1)) == mw.ustring.lower(name .. ":") then
            image = mw.ustring.sub(image, mw.ustring.len(name) + 2);
            break
        end
    end
    -- Trim spaces
    image = mw.ustring.gsub(image, '^[ ]*(.-)[ ]*$', '%1');
    -- capitalise first letter
    image = mw.ustring.upper(mw.ustring.sub(image,1,1)) .. mw.ustring.sub(image,2);

    for i,j in pairs(placeholder_image) do
        if image == j then
            return true
        end
    end
    return false
end

function i.InfoboxImage(frame)
    local image = frame.args["image"];
    
    if image == "" or image == nil then
        return "";
    end
    if image == " " then
        return image;
    end
    if frame.args["suppressplaceholder"] ~= "no" then
        if i.IsPlaceholder(image) == true then
            return "";
        end
    end

    if mw.ustring.lower(mw.ustring.sub(image,1,5)) == "http:" then
        return "";
    end
    if mw.ustring.lower(mw.ustring.sub(image,1,6)) == "[http:" then
        return "";
    end
    if mw.ustring.lower(mw.ustring.sub(image,1,7)) == "[[http:" then
        return "";
    end
    if mw.ustring.lower(mw.ustring.sub(image,1,6)) == "http:" then
        return "";
    end
    if mw.ustring.lower(mw.ustring.sub(image,1,7)) == "[http:" then
        return "";
    end
    if mw.ustring.lower(mw.ustring.sub(image,1,8)) == "[[http:" then
        return "";
    end

    if mw.ustring.sub(image,1,2) == "[[" then
        -- search for thumbnail images and add to tracking cat if found
        local cat = "";
        if mw.title.getCurrentTitle().namespace == 0 and (mw.ustring.find(image, "|%s*thumb%s*[|%]]") or mw.ustring.find(image, "|%s*thumbnail%s*[|%]]") or mw.ustring.find(image, "|%s*?????%s*[|%]]")) then
            cat = "[[???????????:????????? ??????? ?????? ??????? ??? ????]]";
        end
        return image .. cat;
    elseif mw.ustring.sub(image,1,2) == "{{" and mw.ustring.sub(image,1,3) ~= "{{{" then
        return image;
    elseif mw.ustring.sub(image,1,1) == "<" then
        return image;
    elseif mw.ustring.sub(image,1,5) == mw.ustring.char(127).."UNIQ" then
        -- Found strip marker at begining, so pass don't process at all
        return image;
    elseif mw.ustring.sub(image,4,9) == "`UNIQ-" then
        -- Found strip marker at begining, so pass don't process at all
        return image;
    else
        local result = "";
        local page = frame.args["page"];
        local size = frame.args["size"];
        local maxsize = frame.args["maxsize"];
        local sizedefault = frame.args["sizedefault"];
        local alt = frame.args["alt"];
        local link = frame.args["link"];
        local title = frame.args["title"];
        local border = frame.args["border"];
        local upright = frame.args["upright"] or "";
        local thumbtime = frame.args["thumbtime"] or "";
        local center= frame.args["center"];
        
        -- remove prefix if exists
        local allNames = mw.site.namespaces[6].aliases
        allNames[#allNames + 1] = mw.site.namespaces[6].name
        allNames[#allNames + 1] = mw.site.namespaces[6].canonicalName
        for i, name in ipairs(allNames) do
            if mw.ustring.lower(mw.ustring.sub(image, 1, mw.ustring.len(name) + 1)) == mw.ustring.lower(name .. ":") then
                image = mw.ustring.sub(image, mw.ustring.len(name) + 2);
                break
            end
        end
        
        if maxsize ~= "" and maxsize ~= nil then
            -- if no sizedefault then set to maxsize
            if sizedefault == "" or sizedefault == nil then
                sizedefault = maxsize
            end
            -- check to see if size bigger than maxsize
            if size ~= "" and size ~= nil then
                local sizenumber = tonumber(mw.ustring.match(size,"%d*")) or 0;
                local maxsizenumber = tonumber(mw.ustring.match(maxsize,"%d*")) or 0;
                if sizenumber>maxsizenumber and maxsizenumber>0 then
                    size = maxsize;
                end
            end
        end
        -- add px to size if just a number
        if (tonumber(size) or 0) > 0 then
            size = size .. "px";
        end
        -- add px to sizedefault if just a number
        if (tonumber(sizedefault) or 0) > 0 then
            sizedefault = sizedefault .. "px";
        end
        
        result = "[[File:" .. image;
        if page ~= "" and page ~= nil then
            result = result .. "|page=" .. page;
        end
        if size ~= "" and size ~= nil then
            result = result .. "|" .. size;
        elseif sizedefault ~= "" and sizedefault ~= nil then
            result = result .. "|" .. sizedefault;
        else
            result = result .. "|frameless";
        end
        if center == "yes" then
            result = result .. "|center"
        end
        if alt ~= "" and alt ~= nil then
            result = result .. "|alt=" .. alt;
        end
        if link ~= "" and link ~= nil then
            result = result .. "|link=" .. link;
        end
        if border == "yes" then
            result = result .. "|border";
        end
        if upright == "yes" then
            result = result .. "|upright";
        elseif upright ~= "" then
            result = result .. "|upright=" .. upright;
        end
        if thumbtime ~= "" then
            result = result .. "|thumbtime=" .. thumbtime;
        end
        -- if alt value is a keyword then do not use as a description
        if alt == "thumbnail" or alt == "thumb" or alt == "frameless" or alt == "left" or alt == "center" or alt == "right" or alt == "upright" or alt == "border" or mw.ustring.match(alt or "", '^[0-9]*px$', 1) ~= nil then
            alt = nil;
        end
        if title ~= "" and title ~= nil then
            -- does title param contain any templatestyles? If yes then set to blank.
            if mw.ustring.match(frame:preprocess(title), 'UNIQ%-%-templatestyles', 1) ~= nil then
                title = nil;
            end
        end
        if title ~= "" and title ~= nil then
            result = result .. "|" .. title;
        elseif alt ~= "" and alt ~= nil then
            result = result .. "|" .. alt;
        end
        result = result .. "]]";
        
        return result;
    end
end

return i;
充军是什么意思 lake是什么意思 秦始皇原名叫什么 牙龈肿痛吃什么药效果好 品牌logo是什么意思
soldier是什么意思 溢脂性皮炎用什么药 智齿为什么会横着长 黄体破裂是什么症状 铊是什么东西
做hpv检查前要注意什么 什么是规培 普拉提是什么运动 供给侧改革什么意思 表哥的儿子叫什么
柳树像什么 孔子姓什么 虎鼠不结亲是什么意思 什么是肠易激综合征 吃什么排宿便清肠彻底
措施是什么意思hcv8jop2ns4r.cn 出汗多吃什么hcv8jop3ns2r.cn surprise什么意思hcv8jop0ns0r.cn 胆囊炎吃什么药好hcv9jop7ns3r.cn 煞笔是什么意思hcv8jop7ns5r.cn
哈根达斯是什么naasee.com 肩膀疼去医院挂什么科hcv9jop4ns1r.cn 扇子骨是什么肉hcv7jop6ns9r.cn 有因必有果什么意思hcv8jop9ns9r.cn 做造影什么时候做最好hcv9jop4ns7r.cn
胆囊手术后不能吃什么hcv9jop2ns7r.cn 319是什么星座hcv9jop1ns4r.cn yeezy是什么牌子hcv9jop2ns0r.cn 猫薄荷对猫有什么作用hcv9jop3ns1r.cn 小沈阳属什么生肖clwhiglsz.com
肺的作用和功能是什么hcv8jop2ns1r.cn 菜花长什么样0297y7.com 男人吃什么可以补精hcv9jop1ns6r.cn 抽血化验挂什么科hcv8jop1ns1r.cn 大悲咒是什么意思wmyky.com
百度