「モジュール:Icon」の変更履歴

提供:南雲霞思考回廊
ナビゲーションに移動検索に移動

差分の選択: 比較したい版のラジオボタンを選択し、Enterキーを押すか、下部のボタンを押します。
凡例: (最新)=最新版との比較、(前)=直前の版との比較、=細部の編集

2024年1月4日 (木)

  • 最新 22:112024年1月4日 (木) 22:11Kasumi トーク 投稿記録 674バイト +674 ページの作成:「-- This module implements Template:Icon. local data = mw.loadData('Module:Icon/data') local p = {} function p._main(args) local code = args.class or args[1] or args['クラス'] local iconData if code then code = code:match('^%s*(.-)%s*$'):lower() -- trim whitespace and put in lower case iconData = data[code] end if not iconData then iconData = data._DEFAULT end return string.format( '%s', iconData.image, iconData.tooltip and…」