Template: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>