ตัวจัดการเนื้อหา
Jump to navigation
Jump to search
- ดูเพิ่ม: Manual:ContentHandler , Help:ChangeContentModel
Content Models and Handlers |
---|
MediaWiki allows for page content types other than wikitext. It offers built-in support for JavaScript, CSS, JSON and plain text. Extensions can use MediaWiki's ContentHandler mechanism to add new content models for accepting different formats and controlling how they are rendered, stored and edited. |
![]() |
![]() |
![]() |
Support and development
|
หน้านี้มีข้อมูลเกี่ยวกับโมเดลเนื้อหาที่แตกต่างกันและการใช้งาน อาจไม่สมบูรณ์เนื่องจากส่วนขยายใด ๆ สามารถเพิ่มรูปแบบเนื้อหาของตนเองได้ รูปแบบเนื้อหาหมายถึงรหัสภายในที่แสดงถึงชนิดเนื้อหานั้น รูปแบบเนื้อหาคือ mime-type ของเนื้อหาที่สามารถแสดง (เรียงต่อเนื่อง) ได้
ตัวจัดการเนื้อหาหลัก
แบบจำลองเนื้อหา | รูปแบบเนื้อหา (s) | การใช้ |
---|---|---|
css | text/css | สำหรับหน้าที่มี CSS เช่น MediaWiki: Common.css |
javascript | text/javascript | สำหรับหน้าที่มี JavaScript เช่น MediaWiki: Common.js |
json | application/json | แบบจำลองทั่วไปที่เก็บข้อมูลในรูปแบบ JSON ตัวจัดการเนื้อหาส่วนขยายจำนวนมากที่สร้างอยู่ด้านบนนี้ |
text | text/plain | โมเดลทั่วไปที่แสดงข้อความธรรมดา (ไม่มีการจัดรูปแบบ) แต่ไม่สามารถใช้งานได้โดยตรง |
wikitext | text/x-wiki | wikitext! ค่าเริ่มต้นในหน้าเว็บส่วนใหญ่ |
ตัวจัดการเนื้อหาส่วนขยาย
แบบจำลองเนื้อหา | รูปแบบเนื้อหา (s) | ส่วนขยาย | การใช้ |
---|---|---|---|
Campaign | application/json | UploadWizard (แคมเปญ) | ดู Extension:UploadWizard/Campaigns |
CollaborationHubContent | application/json, text/x-collabkit | CollaborationKit | โครงสร้างหน้าวิกิพีเดีย |
CollaborationListContent | application/json, text/x-collabkit | CollaborationKit | รายการที่มีโครงสร้างของหน้าเว็บวิกิที่มีคำอธิบายประกอบ |
EntitySchema | application/json | EntitySchema | Schemas to describe how the data of Wikibase entities should be arranged |
flow-board | application/json | Flow | สำหรับหน้าอภิปรายของ Flow |
JsonBook | application/json | BookManagerv2 | |
JsonSchema | application/json | EventLogging | ดู Extension:EventLogging/Guide#Creating a schema |
MassMessageListContent | MassMessage | ||
mediainfo | application/json (default), application/vnd.php.serialized | WikibaseMediaInfo | |
proofread-index | text/x-wiki (default) | ProofreadPage | |
proofread-page | text/x-wiki (default), application/json | ProofreadPage | |
sanitized-css | text/css | TemplateStyles | สำหรับ CSS ที่มีการเจลทำความสะอาดสำหรับใช้กับ TemplateStyles |
Scribunto | text/plain | Scribunto | สำหรับโมดูล Scribunto (Lua) ใน namespace ของโมดูล |
SecurePoll | application/json | SecurePoll | สำหรับการจัดการการเลือกตั้งของ SecurePoll on-wiki |
syntaxhighlight | SyntaxHighlightPages | Applies SyntaxHighlight by page file extension. | |
tei | application/tei+xml | TEI | |
wikibase-item | application/json (default), application/vnd.php.serialized | Wikibase Repository | |
wikibase-lexeme | application/json (default), application/vnd.php.serialized | WikibaseLexeme | See wikidata:Wikidata:Lexicographical data |
wikibase-property | application/json (default), application/vnd.php.serialized | Wikibase Repository | ดู wikidata:Help:Properties |