其它名称:维基。

一、问题总结

想为网站或者应用程序创建一个库(repository),用户可以在库中创建并管理信息,并可以与其他人共同协作,并维护其中的公共内容。

二、截图示例

image.png

image.png

image.png

image.png

三、参考用法

  • 当想让用户以增加或编辑网站内容方式提高网页质量[1]
  • 当用户拥有一大批文档,并想要持续更新这些文档的内容时。
  • 如果是发表编者寄语,则不要使用本模式,因为这些内容由网页内容作者发表,不应被其它人修改[2]例如网站的条款和协议或其他法律信息。
  • 不要针对过时信息使用本模式,因为这些信息仅与特定时期相关,例如新闻、博客帖子等。

四、解决方案

Wiki 本身是一个网页中的概念,而不是仅作为一种模式成为网站功能的组成部分,但 Wiki 这种形式具备足够的价值代表一类设计模式,而不仅是网页中的概念。

所有人都可以编辑 Wiki 网页的内容,所有人都可以向文档集合中增加新的网页以及编辑现有网页内容。对所有网页都进行了版本控制,可以便捷地将网页回复到之前的版本。本模式让用户能够方便地创建、编辑网页内容,并可以将多个网页关联起来。

本模式支持在网页浏览器中使用简易的标记语言协作编写文档。Wiki 网站中的一个网页被称之为 Wiki 网页,所有的Wiki 网页通过超链接交织为一个整体,这个整体就是「Wiki」。一个 Wiki 网站本质上就是一个数据库,用户可以在其中创建、浏览、检索信息。

维基

五、基本原理

本模式通常用于创建协作网站、大众社区网站。越来越多的企业都在内网部署 Wiki 网站,或者用于知识管理

附录

链接

[1] Use when you want the user to be able to contribute to a page by adding or editing the content of the website.
[2] Do not use when publishing editorial content: content that stems from the publishers of the page that is not to be tampered by anybody else.
[3] A wiki is a page concept itself, and not just a pattern that functions as a part of a website.
[4] A single page in a wiki is referred to as a “wiki page”, while the entire body of pages, which are usually highly interconnected via hyperlinks, is “the wiki”
[5] Wikis are often used to create collaborative websites, power community websites, and are increasingly being installed by businesses to provide affordable and effective Intranets or for use in Knowledge Management.
[6] 原文地址