模板:Cfn/sandbox
| File:Sandbox.svg | 这是Template:Cfn(差异)的沙盒。 |
| File:Lua-Logo.svg | 此模板使用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": "与"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>