fbpx
วิกิพีเดีย

มอดูล:Article history/Category

คู่มือการใช้งานมอดูล[สร้าง]
------------------------------------------------------------------------------- -- Category class -- This module makes a Category class for use in [[Module:Article history]]. -- It provides a unified interface for the creation of category links. With -- this class, categories can passed between objects without concerns about -- interoperability and still have their values and sort keys easily -- accessible. -------------------------------------------------------------------------------  local checkType = require('libraryUtil').checkType local CATEGORY_NS_TEXT = mw.site.namespaces[14].name  local Category = {} Category.__index = Category  function Category.new(category, sortKey)  checkType('Category.new', 1, category, 'string')  checkType('Category.new', 2, sortKey, 'string', true)  local obj = setmetatable({}, Category)  obj.category = category  obj.sortKey = sortKey  return obj end  function Category:__tostring()  if self.sortKey then  return string.format(  '[[%s:%s|%s]]',  CATEGORY_NS_TEXT,  self.category,  self.sortKey  )  else  return string.format(  '[[%s:%s]]',  CATEGORY_NS_TEXT,  self.category  )  end end  return Category 

มอด, article, history, category, อการใช, งานมอด, สร, าง, ณอาจจะต, องการสร, างค, อการใช, งานของมอด, ลน, เข, ยนสามารถทำการทดลองได, กระบะทราย, สร, าง, ดลอก, และช, ดทดสอบ, สร, าง, ของมอด, ลน, โปรดเพ, มหมวดหม, ไปท, หน, าย, อย, หน, าย, อยของมอด, ลน, category, class,. khumuxkarichnganmxdul srang khunxaccatxngkarsrangkhumuxkarichngankhxngmxdulniphuekhiynsamarththakarthdlxngidthikrabathray srang khdlxk aelachudthdsxb srang khxngmxdulnioprdephimhmwdhmuipthihnayxy doc hnayxykhxngmxdulni Category class This module makes a Category class for use in Module Article history It provides a unified interface for the creation of category links With this class categories can passed between objects without concerns about interoperability and still have their values and sort keys easily accessible local checkType require libraryUtil checkType local CATEGORY NS TEXT mw site namespaces 14 name local Category Category index Category function Category new category sortKey checkType Category new 1 category string checkType Category new 2 sortKey string true local obj setmetatable Category obj category category obj sortKey sortKey return obj end function Category tostring if self sortKey then return string format s s s CATEGORY NS TEXT self category self sortKey else return string format s s CATEGORY NS TEXT self category end end return Category ekhathungcak https th wikipedia org w index php title mxdul Article history Category amp oldid 6832546, wikipedia, วิกิ หนังสือ, หนังสือ, ห้องสมุด,

บทความ

, อ่าน, ดาวน์โหลด, ฟรี, ดาวน์โหลดฟรี, mp3, วิดีโอ, mp4, 3gp, jpg, jpeg, gif, png, รูปภาพ, เพลง, เพลง, หนัง, หนังสือ, เกม, เกม