模板:Discord ref/doc

出自Terraria Wiki
跳至導覽 跳至搜尋

This template can be used to provide a reference from the official Terraria Discord server, e.g. for statements made by Re-Logic staff. It displays a short, standardized text wrapped in a <ref> tag.

Usage

{{ discord ref | postedby = <author> | type = <custom text> | channel = <Discord channel> | link = <message link> | screenshot = <screenshot filename> | date = <message date> | noref = y/yes | name = <custom <ref> name> }}

postedby

Name of the person who posted the message.

type

By default, the text starts with "$postedby的消息". Use this parameter to provide a custom text, e.g. Cenx' messages. Causes $postedby to have no effect.

channel

Channel of the Discord server that the message was posted in.

link

Link to the message in the Discord server. Omit the https://discordapp.com/channels/ part, only include the part after it.

screenshot

Local wikilink to a screenshot of the message. This is important for readers who do not have access to or do not wish to visit the Terraria Discord server. In addition, it preserves the message in its original state, prior to potential edits or even deletion.

date

Date the message was posted on, in a MM/DD/YYYY format.

noref

Suppresses the <ref> tag and displays the text normally.

name

Can be used to specify a custom name for the <ref>, so that a <ref> can be reused several times (via <ref name="<name>" />). Only has an effect if noref is not set.

Notes

  • If there is at least one call of {{discord ref}} without $noref on the page, a new section "References" or "Footnotes" with {{reflist}} needs to be added.

Examples

Code Result
{{discord ref|noref=y}} 官方泰拉瑞亞 Discord 服務器上的消息
{{discord ref|postedby=Red|channel=#terraria-chat-1|imagelink=https://cdn.discordapp.com/attachments/504236851654033422/573205496400576523/b205ffdc-2958-4c83-8d6a-bc35795d83b2.png|link=251072485095636994/251116850132287490/563556790172647444|date=04/05/2019|noref=y}} 官方泰拉瑞亞 Discord 服務器上 #terraria-chat-1 中Red的消息消息鏈接2019 年 04 月 05 日
This was confirmed by [[Leinfors]].{{discord ref|screenshot=File:Rain Coat buggy art.png|type=Leinfors' message|channel=#journeys-end-chat|link=251072485095636994/699332402887000064/701501644935921765|date=04/19/2020}} This was confirmed by Leinfors.[1]

References

  1. 官方泰拉瑞亞 Discord 服務器上 #journeys-end-chat 中Leinfors' message消息鏈接2020 年 04 月 19 日