打开/关闭菜单
Toggle preferences menu
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:A型题:修订间差异

来自医林拾薪
无编辑摘要
标签手工回退
无编辑摘要
第38行: 第38行:
"label": "题目编号",
"label": "题目编号",
"example": "T1,1,(1)等",
"example": "T1,1,(1)等",
"required": true
"required": true,
"description": "题目序号,需为本页题目唯一值,相当于ID",
"type": "line"
},
},
"title": {
"title": {
"label": "题干",
"label": "题干",
"example": "以下选项中正确的是?",
"example": "以下选项中正确的是?",
"type": "string",
"type": "line",
"required": true
"required": true,
"description": "本体题干,禁止换行"
},
},
"answer": {
"answer": {
"label": "正确答案",
"label": "正确答案",
"description": "填写本题的正确答案,如有多个答案请连着写,不要有空格!",
"description": "本题的正确答案,结尾和开头不允许存在空格,否则无法比较答案",
"example": "A",
"example": "A",
"required": true
"required": true,
"type": "line"
},
},
"explain": {
"explain": {
"label": "题目解析",
"label": "题目解析",
"description": "可以不填,显示题目的解析"
"description": "本题的解析,可以存在回车",
"type": "string",
"suggested": true
},
},
"A": {
"choices": {
"label": "选项A"
"label": "题目选项",
},
"description": "本题的选项,写法为JSON的字典格式即“键”-“值”对的形式,键与值分别用双引号包裹,键与值之间用英文冒号分隔, 键值对之间用英文逗号分隔",
"B": {
"example": "\"A\":\"第2胸椎\",\"B\":\"第3胸椎\",\"C\":\"第4胸椎下缘\",\"D\":\"第5胸椎下缘\",\"E\":\"第6胸椎下缘\"",
"label": "选项B"
"type": "line",
},
"required": true
"C": {
"label": "选项C"
},
"D": {
"label": "选项D"
},
"E": {
"label": "选项E"
}
}
}
},
"format": "block"
}</templatedata></noinclude>
}</templatedata></noinclude>

2023年6月14日 (三) 14:01的版本

结构:

<p name="data" style="display:none" class="data">{
        "type":"A",
        "source":"{{{source|请补充来源}}}",
        "title":"{{{title|请补充题目}}}",
        "answer":"{{{answer|}}}",
        "explain":"{{{explain|}}}",
        "choices":
            {
                {{{choices|"test":"test"}}}
            }
        }</p>
 

使用示例(需配合题库容器 并加上参数:type=A2使用)

{{题库容器|type=A}}
 {{A型题
 |source=T1
 |title=下面哪一项是花生四烯酸的脂氧酶途径代谢的产物 ( )
 |answer=A
 |choices="A":"L Ts  ","B":"TXA2  ","C":"PGs  ","D":"PAF  ","E":"PLA "
}}

以上模板的输出:

无描述。

[编辑模板数据]

模板参数

此模板首选参数换行的代码块格式。

参数描述类型状态
题目编号source

题目序号,需为本页题目唯一值,相当于ID

示例值
T1,1,(1)等
单行文本必需
题干title

本体题干,禁止换行

示例值
以下选项中正确的是?
单行文本必需
正确答案answer

本题的正确答案,结尾和开头不允许存在空格,否则无法比较答案

示例值
A
单行文本必需
题目解析explain

本题的解析,可以存在回车

字符串推荐
题目选项choices

本题的选项,写法为JSON的字典格式即“键”-“值”对的形式,键与值分别用双引号包裹,键与值之间用英文冒号分隔, 键值对之间用英文逗号分隔

示例值
"A":"第2胸椎","B":"第3胸椎","C":"第4胸椎下缘","D":"第5胸椎下缘","E":"第6胸椎下缘"
单行文本必需