Help:Growth/導師制/整合導師制

From mediawiki.org
This page is a translated version of the page Help:Growth/Mentorship/Integrating mentorship and the translation is 84% complete.
以下程序仅适用于有Growth工具 的维基。

This integration is only valid at wikis that turned mentorship on.

概要

一些計畫已經建立了某種導師系統。 一個常見的例子是機器人會在新手的討論頁上張貼歡迎訊息,包含了從列表或機器人中隨機抽選有經驗使用者的簽名。 Growth功能也從列表中隨機分配導師給新手。

因此,啟用Growth功能的計畫將可以持續對新手進行指導,新手也能在不同地方見到不同的導師。

讓計畫能夠取得分配給每個使用者的Growth團隊導師是有意義的,這樣他們就能夠和自己的導師系統整合,並在所有地方都分配同一個導師給新手。

魔術字

現在可以透過2021年2月引入的{{#mentor}}魔術字實現。 該魔術字接受一個參數為學員的使用者名稱,並返回導師的原始使用者名稱。 如果學員沒有被分配任何導師,該魔術字將會返回空字串(例如,他們還沒有啟用新手首頁)。

用法

例如,要取得User:Martin Urbanec (WMF)的導師,輸入{{#mentor:Martin Urbanec (WMF)}},將會得到導師的原始使用者名稱。

您可以和{{#if}}解析器函數一起使用這個魔術字,將後備機制納入您計畫的模板中。

範例

以下範例假設學員為User:Mentee,導師為User:Mentor。

  • {{#mentor:Mentee}} – 將輸出Mentor
  • [[User:{{#mentor:Mentee}}]] – 將輸出User:Mentor
  • {{#mentor:{{PAGENAME}}}} – 在學員的使用者討論頁上使用歡迎訊息,將輸出Mentor
  • {{#mentor:{{BASEPAGENAME}}}} – 在學員的草稿頁面([[User:Mentee/Draft]])上使用將輸出Mentor
  • [[User:{{subst:#mentor:Mentee}}|{{subst:#mentor:Mentee}}]] – 將會提及Mentor。注意:subst:的部分是必要的,若缺少,提及將不會運作。

Limitations

Only new accounts who have been created after the deployment of the Growth team features at a wiki, or accounts created after the list of mentors for Growth has been setup, will get a mentor.

If a user has no mentor, and they have not opted-out mentorship in their preferences, they can be claimed by a mentor.