跳转到内容

Template:Sandbox/Curid/doc:修订间差异

添加的内容 删除的内容
 
(未显示同一用户的1个中间版本)
第6行: 第6行:
"params": {
"params": {
"1": {
"1": {
"label": "页面ID(curid)",
"label": {
"zh": "页面ID(curid)",
"zh-hant": "頁面ID(curid)"
},
"required": true,
"required": true,
"type": "number",
"type": "number",
第12行: 第15行:
},
},
"2": {
"2": {
"label": "链接文本",
"label": {
"zh": "链接文本",
"zh-hant": "連結文字"
},
"required": true,
"required": true,
"type": "string",
"type": "string",
"example": "首页"
"example": {
"zh": "首页",
"zh-hant": "首頁"
}
},
},
"iw": {
"iw": {
"label": "跨wiki代码",
"label": {
"zh": "跨wiki代码",
"zh-hant": "跨wiki代碼"
},
"type": "string",
"type": "string",
"example": "mcwzh"
"example": "mcwzh"
}
}
},
},
"description": {
"description": "根据页面ID生成本站或跨wiki的短链接,但不依赖于伪静态配置。",
"zh": "根据页面ID生成本站或跨wiki的短链接,但不依赖于伪静态配置。",
"zh-hant": "根據頁面ID生成本站或跨wiki的短連結,但不依賴於偽靜態設定。"
},
"format": "inline"
"format": "inline"
}
}

2023年1月20日 (五) 16:13的最新版本

根据页面ID生成本站或跨wiki的短链接,但不依赖于伪静态配置。

模板参数

此模板首选参数不换行的行内格式。

参数描述类型状态
页面ID(curid)1

无描述

示例值
1
数字必需
链接文本2

无描述

示例值
首页
字符串必需
跨wiki代码iw

无描述

示例值
mcwzh
字符串可选

另见



Cookie帮助我们提供我们的服务。通过使用我们的服务,您同意我们使用cookie。
目录