Help:Extension:RealMe

This page is a translated version of the page Help:Extension:RealMe and the translation is 79% complete.
Outdated translations are marked like this.

RealMe 扩展允许验证用户页面上使用的URL。 This can be used for Mastodon and similar software.

Link verification refers to using rel=me (an XFN microformat) to mark a link. XFN defines rel=me as "A link to yourself at a different URL". It is "Required symmetric", meaning if you use rel=me for a link on one page, the other page must also link back to the first page using rel=me.

On Mastodon and similar platforms, you can enter links to your other profiles. These platforms will check your other profiles and look for a rel=me link back, and if they see a link marked as rel=me, they mark your link as verified.

但是,在MediaWiki上,链接到外部站点的唯一方法是使用Wikitext的外部链接。 It is not possible to include rel=me using this syntax. An extension is therefore needed.

使用此扩展,如果您在用户页面上添加了一个外部链接,并且在扩展中输入相同的外部链接,则该扩展会在用户页面的<head>元素中添加一个<link rel="me">HTML标记,以便其他网站可以验证您。

验证个人资料页面中的链接

 
外部链接的设置界面
  1. 在您的wiki上,编辑用户页面,添加想要标记为已验证的外部链接。 示例:https://wikis.world/@YOURNAME[https://wikis.world/@YOURNAME Mastodon]。 链接可以具有任何标签,也可以没有标签。
  2. 在wiki的用户配置文件首选项的“用户页”部分,将完全相同的链接添加到“指向外部个人资料的网址:”设置,然后保存更改。
  3. 在第三方服务(例如Mastodon)上,添加指向您的wiki用户页面的链接。 为此,您可能需要编辑“个人资料元数据”。

限制

  • 链接必须使用http://https://协议。
  • 只能设置五个链接。

全域用户页

在使用全域用户页 的wiki上,必须在每个本地wiki上均设置,或通过GlobalPreferences 全局设置首选项。

验证非个人资料页面的链接

可以通过将非用户页面上的链接添加到wiki上的页面MediaWiki:Realme-config.json来验证这些链接。

例如,要验证“Main Page”上的链接https://social.example.org/@mywiki,请添加:

{
    "Main Page": "https://social.example.org/@mywiki"
}

可以使用数组为单个页面指定多个链接。

在添加或更改页面的链接后,您应该为页面purge ,以确保更改立即得到反映。

与用户页面不同,这些链接不需要出现在wiki页面上即可进行验证。