模板:Cfn/doc
package.lua第80行Lua錯誤:module 'Module:Category handler/data' not found Template:Lua
樣例[編輯]
效果如下所示。
- {{cfn|A}}[1]
- {{cfn|A|B|p=1}}[2]
- {{cfn|A|B|C|pp=1-2|y=3}}[3]
- {{cfn|A|B|C|D|loc=第1节|y=2|m=3}}[4]
- {{cfn|A|B|C|D|loc=第1节|y=2|m=3|d=4}}[5]
- {{cfn|A|B|C|D|p=1|loc=第2节|y=3|m=4|d=5}}[6]
- ↑ A
- ↑ A & B,第1頁
- ↑ A,B & C(3年),第1-2頁
- ↑ A等(2年3月),第1節
- ↑ A等(2年3月4日),第1節
- ↑ A等(3年4月5日),第1頁,第2節
分離標註:
- {{cfn|A|B|C|D|loc=1|y=2|m=3|g=文}}[文 1]
{{reflist|group=文}}
模板數據[編輯]
<templatedata> { "params": { "1": { "label": "作者1", "required": true, "type": "string" }, "2": { "label": "作者2", "type": "string" }, "3": { "label": "作者3", "type": "string" }, "4": { "label": "作者4", "type": "string" }, "p": { "aliases": [ "pp" ], "label": "頁碼", "description": "引用書籍的頁碼", "example": "1", "type": "string", "suggested": true }, "loc": { "label": "位置",
"description": "與
模板的group參數配合使用,對引用進行分組",
"type": "string" }, "y": { "label": "年份", "description": "書籍出版的年份", "type": "number" }, "m": { "label": "月份", "description": "書籍出版的月份", "type": "number" }, "d": { "label": "日期", "description": "書籍出版的日期", "type": "number" }, "u": { "aliases": [ "url" ], "label": "網址", "example": "https://www.example.org", "type": "url" } }, "paramOrder": [ "1", "2", "3", "4", "p", "loc", "y", "m", "d", "u" ] } </templatedata>
相關[編輯]