枋模:If empty/doc

對HuaTaiLohankhapedia
Kàu tō-lám 跳至搜尋
  1. 重定向 Template:Uses Loa

-{H|zh-hans:重定向; zh-hant:閣再導向;}--{H|zh-cn:文字; zh-tw:字元;}--{H|zh-hans:文件; zh-hant:檔案;}--{H|zh-hans:快捷方式; zh-hant:捷徑;}--{H|zh-hans:項目; zh-hant:專案; zh-tw:計畫; zh-hk:計畫; zh-mo:計畫;}--{H|zh-cn:計算機; zh-sg:電腦; zh-tw:電腦;}-Lua 錯誤 於第53行的模組:Effective_protection_level中:attempt to index field 'TitleBlacklist' (a nil value)。

這是{{If empty}}模板。

  • 2014年12月23日更新:此模板過去上濟干焦通使用9个參數。此制限已經徙除。

這模板用於其他模板內。這模板欲讀取任何參數共第一个有參數的定義輸出。若並無發現,無作輸出。典型用法像下跤按呢:

{{If empty |{{{logo|}}} |{{{image|}}} |{{{picture|}}} |default.svg}}
("Return {{{logo|}}} if it has a value; else {{{image|}}} if it has a value; else {{{picture|}}} if it has a value; else return "default.svg".")

This returns the first of the parameters logo, image and picture that is defined and non-empty, otherwise "default.svg".