วิธีใช้:ส่วนขยาย:หน้าผู้ใช้ทั้งหมด
ส่วนขยายGlobalUserPage ช่วยให้คุณสามารถทำให้หน้าผู้ใช้ในหลายโครงการวิกิ สามารถแสดงผลได้เหมือนกัน
การเปิดใช้งานหน้าผู้ใช้ทั้งหมดของคุณ
ในกรณีส่วนใหญ่ คุณไม่จำเป็นต้องทำอะไร ถ้าหน้าผู้ใช้ท้องถิ่น ไม่แสดงผลอย่างที่คุณต้องการ คุณอาจต้องทำขั้นตอนใดขั้นตอนหนึ่งหรือมากกว่า ดังต่อไปนี้
- สร้างหน้าผู้ใช้ของคุณที่วิกิส่วนกลาง บนโครงการต่าง ๆ ของวิกิมีเดียนั้น หน้าผู้ใช้บนเมทาของคุณ ก็คือหน้าผู้ใช้ทั้งหมดของคุณ
- If the feature is disabled by default and GlobalPreferences is installed, go to Special:GlobalPreferences and enable the “Use global user page” and “Use this preference on all wikis” checkboxes.
It is enabled by default in Wikimedia projects, and can be disabled by adding the magic word __NOGLOBAL__ to the page rather than in your personal settings.
- ถ้าคุณมีหน้าผู้ใช้ท้องถิ่นบนบางวิกิอยู่แล้ว และมีเนื้อหาที่คุณไม่ต้องการแสดงอีกต่อไป คุณจำเป็นต้องร้องขอให้ลบหน้าดังกล่าว ดูที่ Help:Deletion and undeletion สำหรับรายละเอียด หรือติดต่อผู้ดูแลระบบของวิกินั้น โปรดทราบว่า การลบหน้าผู้ใช้ท้องถิ่น จะทำให้หน้าผู้ใช้ดังกล่าวไม่ปรากฏในผลการค้นหาอีกต่อไป
เนื้อหามาจากไหน
หน้าผู้ใช้ทั้งหมดของคุณถูกสร้างขึ้นบนวิกิส่วนกลาง และ ผลที่ได้ ก็จะแสดงบนวิกิท้องถิ่น ดังนั้นเนื้อหาที่คุณเห็นบนวิกิส่วนกลางก็คือสิ่งที่คุณจะเห็นบนวิกิอื่น ๆ ซึ่งหมายความว่า
- แม่แบบที่รวมมาจะใช้แม่แบบของวิกิส่วนกลาง (หน้าผู้ใช้ทั้งหมดของคุณไม่ได้ใช้แม่แบบท้องถิ่น)
- หน้าพิเศษที่รวมมาเช่น
{{Special:PrefixIndex/User:ชื่อของฉัน/}}
จะเรียกข้อมูลมาจากวิกิส่วนกลาง - ฟังก์ชันแจงส่วน
{{int:}}
จะแสดงข้อความของระบบจากวิกิส่วนกลาง
- magic words like
{{SERVERNAME}}
will show the value from the central wiki.
วิกิลิงก์ต่าง ๆ เป็นแบบสัมพัทธ์ ดังนั้นมันจะเชื่อมโยงไปยังวิกิท้องถิ่น
On Wikimedia projects, use interwiki links.
Disabling your global user page
To disable the global user page, you can use the __NOGLOBAL__
magic word, which, if present on the central user page, will prevent it from being displayed on remote wikis.
This will also determine whether a link to a user page on remote wiki should be red or blue.
การควบคุมเนื้อหาที่จะแสดงผล
เช่นเดียวกับการรวมแม่แบบ คุณสามารถใช้แท็ก <noinclude>
และ <includeonly>
เพื่อควบคุมเนื้อหาที่ต้องการแสดงผลเฉพาะท้องถิ่น หรือเฉพาะโดยรวม
You can “opt out” of global user pages by simply wrapping your central user page in <noinclude>
tags. If the page is empty or consists only of invisible content like __NOINDEX__
, it won't be shown on other wikis.
คำเตือน
- หน้าผู้ใช้ของคุณอาจดูไม่เหมือนกับวิกิอื่น ๆ เนื่องจากความแตกต่างของ CSS บนเว็บไซต์เหล่านั้น ตรวจสอบหน้าของคุณบนวิกิที่เขียนจากขวาไปซ้าย เช่น :ar: หรือ :he:
- การรวมหน้าพิเศษหรือฟังก์ชันแจงส่วนอย่าง
{{#time}}
จะไม่อัปเดตบ่อยเท่าที่วิกิท้องถิ่นทำ
- Help:Page status indicators on the central wiki user page, e.g., an ICBM geohack in
<indicator name="ICBM"><samp id="coordinates" class="coordinates plainlinks">…</samp></indicator>
, will not work on local wikis.
Try <noinclude><indicator name="ICBM"></noinclude><samp id="coordinates" class="coordinates plainlinks" style="float:right">…</samp><noinclude></indicator></noinclude>
to get a page status indicator affecting only the user page on the central wiki, i.e., Meta-Wiki for most Wikimedia projects.
- ข้อความวิกิที่ไม่ใช่เนื้อหาจะถูกละทิ้งบนวิกิท้องถิ่น This includes categories, redirects and some magic words like
__NOINDEX__
and{{DISPLAYTITLE:}}
. - การพยายามสร้างลิงก์ข้ามภาษา
<includeonly>[[en:User:Example]]</includeonly>
ในที่สุดจะกลายเป็นลิงก์ User:Example ธรรมดา
ดูเพิ่ม
- Global user pages on Meta-Wiki, for the implementation on Wikimedia project wikis