更多操作
无编辑摘要 标签:手工回退 |
无编辑摘要 |
||
第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": " | "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 | |||
}, | }, | ||
" | "choices": { | ||
"label": " | "label": "题目选项", | ||
"description": "本题的选项,写法为JSON的字典格式即“键”-“值”对的形式,键与值分别用双引号包裹,键与值之间用英文冒号分隔, 键值对之间用英文逗号分隔", | |||
"example": "\"A\":\"第2胸椎\",\"B\":\"第3胸椎\",\"C\":\"第4胸椎下缘\",\"D\":\"第5胸椎下缘\",\"E\":\"第6胸椎下缘\"", | |||
" | "type": "line", | ||
"required": true | |||
" | |||
} | } | ||
} | }, | ||
"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
| 单行文本 | 必需 |
题干 | title | 本体题干,禁止换行
| 单行文本 | 必需 |
正确答案 | answer | 本题的正确答案,结尾和开头不允许存在空格,否则无法比较答案
| 单行文本 | 必需 |
题目解析 | explain | 本题的解析,可以存在回车 | 字符串 | 推荐 |
题目选项 | choices | 本题的选项,写法为JSON的字典格式即“键”-“值”对的形式,键与值分别用双引号包裹,键与值之间用英文冒号分隔, 键值对之间用英文逗号分隔
| 单行文本 | 必需 |