求真百科歡迎當事人提供第一手真實資料,洗刷冤屈,終結網路霸凌。

檢視 模块:Lang/documentor tool 的原始碼

前往: 導覽搜尋

由於下列原因,您沒有權限進行 編輯此頁面 的動作:

  • 您請求的操作只有這個群組的使用者能使用:用戶
  • 您請求的操作只有這個群組的使用者能使用:管理員

您可以檢視並複製此頁面的原始碼。

require('Module:No globals');
local p = {};
--[[-------------------------< L A N G - X X _ S E T T I N G S >-----------------------------------------------
{{#invoke:Lang/documentor tool|lang_xx_settings|template={{ROOTPAGENAME}}}}
reads the content of the template and extracts the parameters from {{#invoke:Lang|...}} for display on the template's
documentation page
]]
function p.lang_xx_settings (frame)
local page = mw.title.makeTitle ('Template', frame.args['template'] or frame.args[1]); -- get a page object for this page in 'Template:' namespace
if not page then
return ''; -- TODO: error message?
end
local content = page:getContent(); -- get unparsed content
if not page then
return ''; -- TODO: error message?
הההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
000
1:0
除錯主控台
* 該模組的匯出資訊可透過變數 "p" 來取得,包含尚未儲存的修改。 * 在行的前面加上 "=" 可將該行作為運算式來評估執行,或使用 print()。 * 在模組程式碼中使用 mw.log() 以傳送訊息至主控台。

此頁面使用了以下模板:

返回「模块:Lang/documentor tool」頁面