什么是琉璃| 兼性厌氧是什么意思| 黑醋是什么醋| 9月3号是什么星座| 中国的特工组织叫什么| 口臭吃什么药好| 尿频是什么原因| 向日葵什么时候成熟| 大腿前侧肌肉叫什么| 什么叫黑科技| 风寒感冒流鼻涕吃什么药| 印泥用什么能洗掉| 隐形眼镜护理液可以用什么代替| 肠胃炎看什么科| everytime什么意思| 光天化日什么意思| 什么叫种水| 店小二是什么意思| 失眠吃什么中药| 女强人是什么意思| 三月十五是什么星座| 乳糖不耐受吃什么奶粉| 肾虚吃什么食物能补| 女生左手无名指戴戒指什么意思| 吊膀子是什么意思| 宝宝拉水便是什么原因| 一本万利是什么意思| 苏打水是什么水| 经期吃什么水果比较好| 梦见自己疯了什么意思| 为什么拉屎会出血| 为什么今年这么热| 7.31什么星座| qa和qc有什么区别| 双非是什么意思| 气虚是什么意思| 政绩是什么意思| names是什么意思| 什么样的眼睛| 猪五行属什么| 月经后一周又出血是什么原因| 龙抄手是什么| 喉炎吃什么药| 什么汤补气血效果最好| 脖子上长个包挂什么科| 本钱是什么意思| 4月27日是什么星座| 婧读什么| 眼睛胀痛是什么原因| 巅峰是什么意思| 11月份是什么星座| 舌尖发麻是什么原因引起的| 隔离霜和粉底液有什么区别| 肚子怕冷是什么原因该怎么办| 打猎是什么意思| 山花对什么| h1什么意思| 猪肉不能和什么一起吃| 血糖血脂挂什么科| 早上七点是什么时辰| 手指麻木什么原因| 夏天吃什么降火| 洋葱为什么会让人流泪| 肝有问题会出现什么症状| 鱼不能和什么食物一起吃| 人鱼小姐大结局是什么| 打感情牌是什么意思| 丝光棉是什么材质| 脚心出汗是什么原因女| 为什么熊猫是国宝| 人做梦是什么原因| 放疗和化疗有什么区别| 地包天是什么意思| 夏季吃什么水果好| 金字旁加者念什么| 怀孕早期吃什么| 开心的动物是什么生肖| 升结肠ca是什么意思| 爱新觉罗是什么意思| 速写男装属于什么档次| 高圆圆老公叫什么名字| 33年属什么生肖| 佛法的真谛是什么| 维u是什么药| 尿路感染吃什么药好| 心主什么| 孕妇吃什么长胎不长肉| 饿是什么感觉| 儿童头疼吃什么药| 1993年出生的属什么| 什么东西最吸引蛇| 小猫为什么会踩奶| 富士康体检都检查什么| 膀胱充盈欠佳是什么意思| 悠悠岁月什么意思| 青椒炒什么好吃又简单| 指甲起层是什么原因| 大大是什么意思| 左肺上叶钙化灶什么意思| dpn是什么意思| 高危病变是什么意思| 运动前吃什么| 变色龙指什么人| 心脏呈逆钟向转位什么意思| 沁什么意思| 黄瓜与什么食物相克| 什么名字好听| 中耳炎吃什么消炎药| 共青团书记是什么级别| 乳清是什么| 活塞是什么意思| 生育登记有什么用| 女人月经总是提前是什么原因| 什么食物含硒| 尿毒症可以吃什么水果| 甲级战犯是什么意思| 左侧卵巢囊性结构什么意思| 捡帽子有什么说法吗| 什么蔬菜补铁| 什么可以补肾壮阳| 酥油是什么油| 闰月要给父母买什么| 赢弱什么意思| 汕头有什么好玩的景点| 世子是什么意思| 慢性肠胃炎吃什么药| 七五年属什么| 凝血功能差有什么危害| 布洛芬不能和什么一起吃| 258什么意思| co2是什么| 卫生局是什么单位| 白案是什么意思| 安全期是什么时候| 鸡属于什么类动物| 中性是什么意思| 什么的豆角| 滋阴润燥是什么意思| 艾特是什么意思| 减肥吃什么好而且瘦的快| 传导阻滞是什么意思| 为什么不能天天做有氧运动| 糖类抗原ca199偏高是什么原因| 腺样体肥大挂什么科| 射精是什么意思| 什么叫高脂血症| 阿咖酚散是什么| 减肥有什么方法| 玉五行属什么| 猫咪能看到什么颜色| 啫喱是什么| 什么动物眼睛是红色的| 为什么水晶要消磁| 力排众议是什么意思| 毫不逊色的意思是什么| 麦冬有什么作用与功效| 1992年出生的是什么命| 石斛是什么东西| 血肌酐是什么意思| 腰间盘突出吃什么药好| 性格好的女生是什么样| 干净的什么| 龚自珍是什么朝代的| 仪轨是什么意思| 减肥吃什么水果好| 吃什么可以补钾| 小河边有什么| 幽门螺杆菌阳性什么意思| mar是什么意思| 为什么会闰月| 锡兵是什么| 什么是新鲜感| 海绵是什么材料做的| 眼睛下面有痣代表什么| tissot是什么牌子1853| 气管炎吃什么食物好| tg是什么| 立场是什么意思| hi是什么酸| 做梦梦到猪是什么意思| b超fl是什么意思| 月子病是什么症状| 身上长痘痘是什么原因| 轰20什么时候首飞| 明星经纪人是干什么的| 江苏属于什么方向| 双子座和什么座最配| 县教育局局长是什么级别| 梦见怀孕了是什么意思| 腰椎间盘突出和膨出有什么区别| pt950是什么材质| 米线是什么做的| 帽缨是什么意思| 阴茎插入阴道什么感觉| 什么是性格| 梦到鹦鹉预示着什么| 挥霍是什么意思| 身份证前六位代表什么| 无心是什么意思| 血糖突然升高是什么原因| ipad什么时候出新款| 子痫是什么病| 酥油是什么油| igm抗体阳性是什么意思| 咳绿痰是什么原因| 无妄是什么意思| 吃什么长胎快| 婧字五行属什么| 七月六号是什么日子| 男人左眼跳是什么意思| 查脂肪肝挂什么科室| 纹身纹什么招财好运| 什么是红眼病| 梦见初恋男友是什么意思| 什么的水珠| 怀孕肚子胀是什么原因| 鱼眼睛吃了有什么好处| 爱而不得是什么意思| 螺旋杆菌阳性是什么病| 取笑是什么意思| 补钙有什么好处| 为什么一生气就胃疼| 衙内是什么意思| 胆碱是什么| 血滴子是什么意思| 路引是什么| 火指什么生肖| 锚什么意思| 倒数是什么意思| 什么是双向情感障碍| 颇有是什么意思| 佛手瓜什么时候结果| 怀孕1个月有什么症状| 尿路感染吃什么药效果好| 腰花是什么部位| 为什么女人阴唇会变黑| 荠菜什么时候播种最好| 湿气重怎么调理吃什么| 姐姐的儿子叫什么| 在什么前面用英语怎么说| 天秤座男生和什么星座最配| 什么的长江| 什么日| 乙巳年是什么命| 高烧吃什么药| 大义是什么意思| 越南讲什么语言| 欣赏是什么意思| 什么叫刑事拘留| esd是什么意思| 囊肿和肿瘤有什么区别| 颢字五行属什么| 普通健康证都检查什么| 纵隔占位是什么意思| 眩晕是怎么回事是什么原因引起| 因人而异是什么意思| 做梦梦见屎是什么意思| 牙齿涂氟是什么意思| 包皮长什么样| 胃酸反流是什么原因| 手抖是什么原因| 心率低是什么原因| 元宝是什么意思| 梦到自行车丢了是什么意思| 百度Jump to content

糖葫芦的做法 酸酸甜甜营养健康 值得来一串儿!

From Wikimedia Commons, the free media repository
Lua
百度 每一位老师、每一位家长也都能在承认孩子差异性和多样性的基础上,鼓励孩子成为“最好的自己”,鼓励孩子将自身价值和潜能充分挖掘,做到“真正发现孩子”。

CodeDiscussionEditHistoryLinksLink count Subpages:DocumentationTestsResultsSandboxLive code All modules

This module provides a consistent interface for processing boolean or boolean-style string input. While Lua allows the true and false boolean values, wikicode templates can only express boolean values through strings such as "yes", "no", etc. This module processes these kinds of strings and turns them into boolean input for Lua to process. It also returns nil values as nil, to allow for distinctions between nil and false. The module also accepts other Lua structures as input, i.e. booleans, numbers, tables, and functions. If it is passed input that it does not recognise as boolean or nil, it is possible to specify a default value to return.

Syntax

yesno(value, default)

value is the value to be tested. Boolean input or boolean-style input (see below) always evaluates to either true or false, and nil always evaluates to nil. Other values evaluate to default.

Usage

First, load the module. Note that it can only be loaded from other Lua modules, not from normal wiki pages. For normal wiki pages you can use {{Yesno}} instead.

local yesno = require('Module:Yesno')

Some input values always return true, and some always return false. nil values always return nil.

-- These always return true:
yesno('yes')
yesno('y')
yesno('true')
yesno('1')
yesno(1)
yesno(true)

-- These always return false:
yesno('no')
yesno('n')
yesno('false')
yesno('0')
yesno(0)
yesno(false)

-- Nil values always return nil:
yesno(nil)

String values are converted to lower case before they are matched:

-- These always return true:
yesno('Yes')
yesno('YES')
yesno('yEs')
yesno('Y')
yesno('tRuE')

-- These always return false:
yesno('No')
yesno('NO')
yesno('nO')
yesno('N')
yesno('fALsE')

You can specify a default value if yesno receives input other than that listed above. If you don't supply a default, the module will return nil for these inputs.

-- These return nil:
yesno('foo')
yesno({})
yesno(5)
yesno(function() return 'This is a function.' end)

-- These return true:
yesno('foo', true)
yesno({}, true)
yesno(5, true)
yesno(function() return 'This is a function.' end, true)

-- These return "bar":
yesno('foo', 'bar')
yesno({}, 'bar')
yesno(5, 'bar')
yesno(function() return 'This is a function.' end, 'bar')

Note that the blank string also functions this way:

yesno('')        -- Returns nil.
yesno('', true)  -- Returns true.
yesno('', 'bar') -- Returns "bar".

Although the blank string usually evaluates to false in wikitext, it evaluates to true in Lua. This module prefers the Lua behaviour over the wikitext behaviour. If treating the blank string as false is important for your module, you will need to remove blank arguments at an earlier stage of processing.

Code

-- Function allowing for consistent treatment of boolean-like wikitext input.
-- It works similarly to the template {{yesno}}.

return function (val, default)
	-- If your wiki uses non-ascii characters for any of "yes", "no", etc., you
	-- should replace "val:lower()" with "mw.ustring.lower(val)" in the
	-- following line.
	val = type(val) == 'string' and val:lower() or val
	if val == nil then
		return nil
	elseif val == true 
		or val == 'yes'
		or val == 'y'
		or val == 'true'
		or val == 't'
		or val == 'on'
		or tonumber(val) == 1
	then
		return true
	elseif val == false
		or val == 'no'
		or val == 'n'
		or val == 'false'
		or val == 'f'
		or val == 'off'
		or tonumber(val) == 0
	then
		return false
	else
		return default
	end
end
63年属什么生肖 囊肿挂什么科 静脉曲张吃什么食物好 月经期间吃什么补血 6月25日是什么星座
36计第一计是什么 天珠到底是什么 浓绿的什么 81是什么节日 jb什么意思
徒手是什么意思 生性多疑是什么意思 睡觉咬舌头是什么原因 血管痉挛是什么原因引起的 王八吃什么
lv的全称是什么 一鸣惊人指什么生肖 大舌头是什么意思 类风湿为什么反复发烧 投诉医院打什么电话
脚为什么会脱皮hcv9jop3ns6r.cn 梨形心见于什么病hcv8jop2ns1r.cn 男人射精什么感觉hcv8jop1ns1r.cn 多吃黑豆有什么好处bjhyzcsm.com hb是什么hcv7jop6ns6r.cn
杧果是什么hcv9jop3ns1r.cn 右侧卵巢囊性结构是什么意思hcv8jop3ns2r.cn 3月16日是什么星座hcv9jop4ns5r.cn 什么人适合喝蛋白粉hcv9jop4ns0r.cn 血脂指的是什么hcv8jop8ns3r.cn
肺实变是什么意思hanqikai.com 胃痞病是什么病hcv9jop1ns2r.cn 火加木是什么字hcv8jop7ns8r.cn 腋毛什么时候开始生长hcv8jop7ns8r.cn 一天老是放屁是什么原因hcv7jop6ns4r.cn
吃维生素b1有什么好处和副作用hcv9jop1ns6r.cn 补充蛋白质提高免疫力吃什么hcv8jop7ns9r.cn 什么玉最好有灵性养人hcv8jop5ns7r.cn 氯硝西泮片是什么药hcv8jop1ns9r.cn 李连杰什么病hcv8jop4ns7r.cn
百度