模板:Cfn/doc

维基百科,自由的百科全书
跳转到导航 跳转到搜索

样例[编辑]

效果如下所示。

  • {{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]
  1. ^ A
  2. ^ A & B,第1页
  3. ^ A,B & C(3年),第1-2页
  4. ^ A等(2年3月),第1节
  5. ^ A等(2年3月4日),第1节
  6. ^ A等(3年4月5日),第1页,第2节

分离标注:

  • {{cfn|A|B|C|D|loc=1|y=2|m=3|g=文}}[文 1]

{{reflist|group=文}}

模板数据[编辑]

以下是该模板的模板数据,适用于可视化编辑器等工具。

Cfn模板数据

<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>

相关[编辑]