模板:Reaction
0
| File:Lua-Logo.svg | 此模板使用Lua语言: |
类似于{{+1}}。这个模板模仿Telegram reaction,且可以自定义回应的emoji。
配套小工具:Reaction小工具。
用法[编辑]
- 常规用法
{{react|icon=👍|user1=Example|ts1=~~~~~}}→ 1
- 放入图片
{{react|icon=File:Wikipedia's W.svg|user1=Example|ts1=~~~~~}}→ 1
注意事项[编辑]
- 模板默认仅接受纯文本或图片输入,若传入可能会显示成多行的模板或是标签可能会被模板拒绝输入或出现未定义行为。
- 使用类似行内回应并非标准的讨论行为,也可能造成未定义的解析行为,应该谨慎使用。
重定向[编辑]
- {{react}}
参见[编辑]
- {{+1}}
模板参数[编辑]
<templatedata> { "description": "这个模板模仿Telegram reaction,且可以自定义回应的emoji。", "params": { "1": { "label": "第1个参数", "description": "数字参数相当于icon及userN栏位,当前者有缺位时按次序补充填入。", "deprecated": true }, "2": { "label": "第2个参数", "description": "数字参数相当于icon及userN栏位,当前者有缺位时按次序补充填入。", "deprecated": true }, "3": { "label": "第3个参数", "description": "数字参数相当于icon及userN栏位,当前者有缺位时按次序补充填入。", "deprecated": true }, "4": { "label": "第4个参数", "description": "数字参数相当于icon及userN栏位,当前者有缺位时按次序补充填入。", "deprecated": true }, "5": { "label": "第5个参数", "description": "数字参数相当于icon及userN栏位,当前者有缺位时按次序补充填入。", "deprecated": true }, "6": { "label": "第6个参数", "description": "数字参数相当于icon及userN栏位,当前者有缺位时按次序补充填入。", "deprecated": true }, "icon": { "label": "图示", "description": "Emoji或图片", "example": "👍或File:Doge.png", "type": "string", "default": "👍", "suggested": true }, "user1": { "aliases": [ "user" ], "label": "用户1", "description": "做出反应的用户名", "example": "ExampleUser", "type": "wiki-user-name", "suggested": true }, "ts1": { "aliases": [ "ts", "timestamp1", "timestamp" ], "label": "时间戳1", "description": "使用~~~~~签名", "type": "date", "suggested": true }, "user2": { "label": "用户2", "description": "做出反应的用户名", "example": "ExampleUser", "type": "wiki-user-name" }, "ts2": { "aliases": [ "timestamp2" ], "label": "时间戳2", "description": "使用~~~~~签名", "type": "date" }, "user3": { "label": "用户3", "description": "做出反应的用户名", "example": "ExampleUser", "type": "wiki-user-name" }, "ts3": { "aliases": [ "timestamp3" ], "label": "时间戳3", "description": "使用~~~~~签名", "type": "date" }, "user4": { "label": "用户4", "description": "做出反应的用户名", "example": "ExampleUser", "type": "wiki-user-name" }, "ts4": { "aliases": [ "timestamp4" ], "label": "时间戳4", "description": "使用~~~~~签名", "type": "date" }, "user5": { "label": "用户5", "description": "做出反应的用户名", "example": "ExampleUser", "type": "wiki-user-name" }, "ts5": { "aliases": [ "timestamp5" ], "label": "时间戳5", "description": "使用~~~~~签名", "type": "date" } }, "paramOrder": [ "icon", "user1", "ts1", "user2", "ts2", "user3", "ts3", "user4", "ts4", "user5", "ts5", "1", "2", "3", "4", "5", "6" ], "format": "inline" } </templatedata>