|
|
| (未显示1个用户的14个中间版本) |
| 第1行: |
第1行: |
| {{{info|query form at top}}} | | {{{for template|表单模板}}} |
| | {| class="wikitable" |
| | ! 状态: |
| | | {{{field|状态|mandatory|input type=radiobutton|values=丢失, 部分发现, 发现, 来源不明, 部分确定, 来源确定, 存在性待定, 不存在}}} |
| | |- |
| | ! 类型: |
| | | {{{field|类型|mandatory|input type=radiobutton|values=音频, 动画, 电影, 剧集, 视频, 图像, 游戏, 应用, 漫画, 文本, 其他}}} |
| | |} |
| | {{{end template}}} |
|
| |
|
| <div class="lightblock">
| | {{{standard input|summary}}} |
| === 创建新词条 ===
| | {{{standard input|save}}} {{{standard input|preview}}} {{{standard input|cancel}}} |
| | |
| '''输入标题'''
| |
| {{{field|title|input type=text|mandatory}}} | |
| | |
| '''选择标签'''
| |
| * 类型: {{{field|type|input type=dropdown|values=音频, 动画, 电影, 剧集, 视频, 图像, 游戏, 应用, 漫画, 文本, 其他}}}
| |
| * 状态: {{{field|status|input type=dropdown|values=丢失, 部分发现, 发现, 来源不明, 部分确定, 来源确定, 存在性待定, 不存在}}}
| |
| | |
| {{{standard input|run query|label=检查标题并生成链接}}} | |
| </div>
| |
| | |
| {{#if:{{#queryparam:title}}|
| |
| <div style="margin-top: 15px; padding: 15px; border: 2px solid #36c;">
| |
| ==== 结果确认 ====
| |
| | |
| {{#ifexist: {{#queryparam:title}}
| |
| | <!-- 情况 A: 标题重复 -->
| |
| <span style="color: #d33; font-weight: bold;">⚠️ 提醒:词条 [[:{{#queryparam:title}}]] 已经存在。</span>
| |
| 为了防止覆盖内容,请:[[:{{#queryparam:title}}|点击此处直接访问已有页面]] 或返回上方修改标题。
| |
| | <!-- 情况 B: 标题可用,生成跳转 -->
| |
| 您即将创建:'''{{#queryparam:title}}'''
| |
| 所属类型:{{#queryparam:type}} | 状态:{{#queryparam:status}}
| |
| | |
| [{{fullurl:{{#queryparam:title}}|action=edit&preload=Template:Preload_Item&preloadparams%5B%5D={{urlencode:{{#queryparam:type}}}}&preloadparams%5B%5D={{urlencode:{{#queryparam:status}}}}}} [点击确认:进入标准编辑器完成创建]]
| |
| }}
| |
| </div>
| |
| }} | |
表单模板
{{{end template}}}
summary
save preview cancel