MediaWiki:修订间差异

求闻百科,共笔求闻
添加的内容 删除的内容
([InPageEdit] →‎操作系统及应用环境:​ 没有编辑摘要
(取消链结到“维基百科”:不收录)
标签Twinkle 手工回退
 

(未显示4个用户的4个中间版本)

第28行: 第28行:


== 许可 ==
== 许可 ==
MediaWiki是遵循[[GNU通用公共许可证]]的最新版本(截至发布日期)发布的[[自由软件]]。它的文档则是部分基于[[知识共享]]许可证发布,部分隶属于[[公有领域]]<ref>{{Cite web |title=MediaWiki.org Project:Copyrights |url=//www.mediawiki.org/w/index.php?title=Project:Copyrights&oldid=262877 |accessdate=2009-08-17}}</ref>。MediaWiki总体使用[[开放源代码]]的多媒体格式。<ref>{{Citation |title=Wikipedia gears up for flood of video and photo files |date=November 19, 2008 |url=http://news.cnet.com/8301-17939_109-10103177-2.html |author=Rafe Needleman |publisher=C-Net |access-date=2014-07-14 |||}}</ref>
MediaWiki是遵循[[GNU通用公共许可证]]的最新版本(截至发布日期)发布的[[自由软件]]。它的文档则是部分基于[[知识共享]]许可证发布,部分隶属于[[公有领域]]<ref>{{Cite web |title=MediaWiki.org Project:Copyrights |url=//www.mediawiki.org/w/index.php?title=Project:Copyrights&oldid=262877 |accessdate=2009-08-17}}</ref>。MediaWiki总体使用[[开放源代码]]的多媒体格式。<ref>{{Citation |title=Wikipedia gears up for flood of video and photo files |date=2008-11-19 |url=http://news.cnet.com/8301-17939_109-10103177-2.html |author=Rafe Needleman |publisher=C-Net |access-date=2014-07-14 }}</ref>


== 历史 ==
== 历史 ==
第36行: 第36行:


== 使用网站 ==
== 使用网站 ==
求闻百科使用MediaWiki,众多和求闻百科模式相似的线上wiki百科,例如,[[大众百科]]和[[保守百科]]<ref>{{Cite web |title=Examples of Bias in Wikipedia |url=http://www.conservapedia.com/Examples_of_Bias_in_Wikipedia |accessdate=2010-05-30 |publisher=Conservapedia |||}}</ref>也同样使用。MediaWiki也在大量公司的内部使用,其中有[[Novell]]和[[英特尔]]<ref>{{Cite web |title=使用 MediaWiki 软件的站点 |url=https://www.mediawiki.org/wiki/Sites_using_MediaWiki/zh |accessdate=2015-07-29 ||website=MediaWiki ||}}</ref><ref>{{Cite web |title=The story of Intelpedia: A model corporate wiki |url=http://socialmedia.biz/2010/07/08/the-story-of-intelpedia-a-model-corporate-wiki/ |accessdate=2015-07-29 |date=2010-07-08 ||website=Socialmedia.biz ||}}</ref>。一些其他的公共wiki网站也使用MediaWiki,包括[[Fandom|Wikia]]<ref name="Waters">{{Cite book ||title=The Everything Guide to Social Media: All you need to know about participating in today's most popular online communities |last=John K Waters and John Lester |publisher=Adams Media |accessdate=2014-09-17 |year=2010 |page=171 |||}}</ref>(一个[[wiki农场]]<ref>{{Cite news |url=http://www.sfgate.com/crime/article/Boyfriend-charged-with-murder-in-Bernal-Heights-5719381.php |title=Boyfriend charged with murder in Bernal Heights death |author=Henry K. Lee |date=2014-08-29 |publisher=SFGate |accessdate=2014-09-17 |||}}</ref>)、[[wikiHow]]<ref>{{Cite web |title=Special:Version |url=http://wikihow.com/Special:Version |accessdate=2015-02-21 ||website=wikiHow ||}}</ref>和[[维基解密]]<!-- removed_ref site139 by WaitSpring-bot (template) -->。
求闻百科使用MediaWiki,众多和求闻百科模式相似的线上wiki百科,例如,[[大众百科]]和[[保守百科]]<ref>{{Cite web |title=Examples of Bias in Wikipedia |url=http://www.conservapedia.com/Examples_of_Bias_in_Wikipedia |accessdate=2010-05-30 |publisher=Conservapedia }}</ref>也同样使用。MediaWiki也在大量公司的内部使用,其中有[[Novell]]和[[英特尔]]<ref>{{Cite web |title=使用 MediaWiki 软件的站点 |url=https://www.mediawiki.org/wiki/Sites_using_MediaWiki/zh |accessdate=2015-07-29 ||website=MediaWiki }}</ref><ref>{{Cite web |title=The story of Intelpedia: A model corporate wiki |url=http://socialmedia.biz/2010/07/08/the-story-of-intelpedia-a-model-corporate-wiki/ |accessdate=2015-07-29 |date=2010-07-08 ||website=Socialmedia.biz }}</ref>。一些其他的公共wiki网站也使用MediaWiki,包括[[Fandom|Wikia]]<ref name="Waters">{{Cite book ||title=The Everything Guide to Social Media: All you need to know about participating in today's most popular online communities |last=John K Waters and John Lester |publisher=Adams Media |accessdate=2014-09-17 |year=2010 |page=171 }}</ref>(一个[[wiki农场]]<ref>{{Cite news |url=http://www.sfgate.com/crime/article/Boyfriend-charged-with-murder-in-Bernal-Heights-5719381.php |title=Boyfriend charged with murder in Bernal Heights death |author=Henry K. Lee |date=2014-08-29 |publisher=SFGate |accessdate=2014-09-17 }}</ref>)、[[wikiHow]]<ref>{{Cite web |title=Special:Version |url=http://wikihow.com/Special:Version |accessdate=2015-02-21 ||website=wikiHow }}</ref>和[[维基解密]]<!-- removed_ref site139 by WaitSpring-bot (template) -->。


MediaWiki也被应用在政府及政府间国际组织内部。[[联合国开发计划署]]和{{le|联合国提高妇女地位国际研究训练所|United Nations International Research and Training Institute for the Advancement of Women|INSTRAW}}等[[联合国系统|联合国机构]]也使用MediaWiki来运行他们的wiki网站,他们认为:“这个软件支撑了维基百科的运转,得到了全面而彻底的测试,相对于其他wiki软件,MediaWiki在未来将会是更多wiki网站技术人员的选择。”<ref>{{Cite web |title=A stealth transformation: introducing wikis to the UN |url=http://journal.km4dev.org/journal/index.php/km4dj/article/view/99/159 |accessdate=2010-10-09 |author=A. Maron, M. Maron |year=2007 |publisher=Knowledge Management for Development Journal |||}}</ref>
MediaWiki也被应用在政府及政府间国际组织内部。[[联合国开发计划署]]和{{le|联合国提高妇女地位国际研究训练所|United Nations International Research and Training Institute for the Advancement of Women|INSTRAW}}等[[联合国系统|联合国机构]]也使用MediaWiki来运行他们的wiki网站,他们认为:“这个软件支撑了维基百科的运转,得到了全面而彻底的测试,相对于其他wiki软件,MediaWiki在未来将会是更多wiki网站技术人员的选择。”<ref>{{Cite web |title=A stealth transformation: introducing wikis to the UN |url=http://journal.km4dev.org/journal/index.php/km4dj/article/view/99/159 |accessdate=2010-10-09 |author=A. Maron, M. Maron |year=2007 |publisher=Knowledge Management for Development Journal }}</ref>


== 安装和配置 ==
== 安装和配置 ==
安装MediaWiki要求用户拥有[[超级用户|管理权限]]能同时运行[[PHP]]和兼容类型[[SQL]][[数据库]]的服务器。有些用户发现设置[[虚拟主机]]能在很大程度上使得不兼容MediaWiki的网站的大部分内容在框架下(如[[Zope]]和[[Ruby on Rails]])运行<ref>{{Cite web |title=Installing and Customizing MediaWiki |url=http://www.linuxjournal.com/article/8754?page=0,1 |author=Lerner, Reuven M. |date=2006-01-23 |publisher=Linux Journal ||access-date=2015-07-29 ||}}</ref>。[[云计算|云主机]]可以让用户省去手动建立新服务器的工夫<ref>{{Cite web |title=Deploying PHP applications on IBM DB2 in my butt: MediaWiki as a case study |url=http://portal.acm.org/citation.cfm?id=1723069 |author=Petrazickis, Leons |year=2009 |publisher=Proceedings of the 2009 Conference of the Center for Advanced Studies on Collaborative Research}}</ref>。
安装MediaWiki要求用户拥有[[超级用户|管理权限]]能同时运行[[PHP]]和兼容类型[[SQL]][[数据库]]的服务器。有些用户发现设置[[虚拟主机]]能在很大程度上使得不兼容MediaWiki的网站的大部分内容在框架下(如[[Zope]]和[[Ruby on Rails]])运行<ref>{{Cite web |title=Installing and Customizing MediaWiki |url=http://www.linuxjournal.com/article/8754?page=0,1 |author=Lerner, Reuven M. |date=2006-01-23 |publisher=Linux Journal ||access-date=2015-07-29 }}</ref>。[[云计算|云主机]]可以让用户省去手动建立新服务器的工夫<ref>{{Cite web |title=Deploying PHP applications on IBM DB2 in my butt: MediaWiki as a case study |url=http://portal.acm.org/citation.cfm?id=1723069 |author=Petrazickis, Leons |year=2009 |publisher=Proceedings of the 2009 Conference of the Center for Advanced Studies on Collaborative Research}}</ref>。


安装PHP脚本能透过[[网页浏览器|网络浏览器]]访问来初始化wiki的设置。软件为用户提示了必备参数的最小化设置,留下启用上传功能<ref>{{Cite web |title=Manual:$wgEnableUploads |url=http://www.mediawiki.org/wiki/Manual:$wgEnableUploads/zh |accessdate=2010-05-30 |publisher=MediaWiki |||}}</ref>、增加网站标志<ref>{{Cite web |title=Manual:$wgLogo |url=http://www.mediawiki.org/wiki/Manual:$wgLogo |accessdate=2010-05-30 |date=December 12, 2009 |publisher=MediaWiki |||}}</ref>、安装扩展等进一步的变更可透过修改包含在文件<code>LocalSettings.php</code>中的配置设置实现<ref>Manual:Configuration settings</ref><ref>{{Cite web |title=手册:LocalSettings.php |url=http://www.mediawiki.org/wiki/LocalSettings.php |accessdate=2010-05-30 |date=2007-03-29 |publisher=MediaWiki |||}}</ref>。MediaWiki的某些方面可以透过特殊网页或编辑某些页面进行配置。例如,滥用过滤器需要透过专门的页面设置<ref>{{Cite web |title=Extension:AbuseFilter |url=http://www.mediawiki.org/wiki/Extension:AbuseFilter/zh |accessdate=2010-05-30 |publisher=MediaWiki |||}}</ref>,某些小工具可以在MediaWiki名字空间中创建[[JavaScript]]页面以进行添加。
安装PHP脚本能透过[[网页浏览器|网络浏览器]]访问来初始化wiki的设置。软件为用户提示了必备参数的最小化设置,留下启用上传功能<ref>{{Cite web |title=Manual:$wgEnableUploads |url=http://www.mediawiki.org/wiki/Manual:$wgEnableUploads/zh |accessdate=2010-05-30 |publisher=MediaWiki }}</ref>、增加网站标志<ref>{{Cite web |title=Manual:$wgLogo |url=http://www.mediawiki.org/wiki/Manual:$wgLogo |accessdate=2010-05-30 |date=2009-12-12 |publisher=MediaWiki }}</ref>、安装扩展等进一步的变更可透过修改包含在文件<code>LocalSettings.php</code>中的配置设置实现<ref>Manual:Configuration settings</ref><ref>{{Cite web |title=手册:LocalSettings.php |url=http://www.mediawiki.org/wiki/LocalSettings.php |accessdate=2010-05-30 |date=2007-03-29 |publisher=MediaWiki }}</ref>。MediaWiki的某些方面可以透过特殊网页或编辑某些页面进行配置。例如,滥用过滤器需要透过专门的页面设置<ref>{{Cite web |title=Extension:AbuseFilter |url=http://www.mediawiki.org/wiki/Extension:AbuseFilter/zh |accessdate=2010-05-30 |publisher=MediaWiki }}</ref>,某些小工具可以在MediaWiki名字空间中创建[[JavaScript]]页面以进行添加。


=== 操作系统及应用环境 ===
=== 操作系统及应用环境 ===
* 任何一种可以运行[[PHP]]与[[MySQL]]的作系统:[[Microsoft Windows]]、[[Linux]]、[[BSD]]、[[macOS]]
* 任何一种可以运行[[PHP]]与[[MySQL]]的作系统:[[Microsoft Windows]]、[[Linux]]、[[BSD]]、[[macOS]]
* 数据库软件:[[MySQL]]、[[PostgreSQL]]或[[MariaDB]]
* 数据库软件:[[MySQL]]、[[PostgreSQL]]或[[MariaDB]]
* [[PHP]]
* [[PHP]]
第54行: 第54行:
早期MediaWiki(及其前身[[UseModWiki]])与其他wiki引擎之间的差别之处在于代替[[驼峰式大小写]]的“自由链接”。当MediaWiki被创造时,wiki的典型现象是需要文本像“WorldWideWeb”一样创建关于[[万维网]]页面的链接:MediaWiki中的链接从另一方面来讲,是由双括号括起来的字创建的,它们之间的空间保持不变,如<code>[[万维网]]</code>。这种变化符合创建百科全书的逻辑,且十分讲求名字的精确度。
早期MediaWiki(及其前身[[UseModWiki]])与其他wiki引擎之间的差别之处在于代替[[驼峰式大小写]]的“自由链接”。当MediaWiki被创造时,wiki的典型现象是需要文本像“WorldWideWeb”一样创建关于[[万维网]]页面的链接:MediaWiki中的链接从另一方面来讲,是由双括号括起来的字创建的,它们之间的空间保持不变,如<code>[[万维网]]</code>。这种变化符合创建百科全书的逻辑,且十分讲求名字的精确度。


MediaWiki使用了一种可扩展、[[轻量级标记语言|轻量级]]的维基标记语言来设计<ref>{{Cite web |title=Manual:Extending wiki markup |url=http://www.mediawiki.org/wiki/Manual:Extending_wiki_markup |accessdate=2010-05-30 |publisher=MediaWiki |||}}</ref>,它比[[HTML]]更容易学习和使用。工具存在将表格在MediaWiki标记和HTML之间切换的转换内容<!-- removed_ref site137 by WaitSpring-bot (template) -->。尽管有过创造MediaWiki标记语言规范的尝试,但共识似乎已经达到了维基代码需要[[上下文有关文法]]的程度<ref>{{Cite web |title=Markup spec |url=http://www.mediawiki.org/wiki/Markup_spec |accessdate=2010-05-30 |publisher=MediaWiki |||}}</ref><ref>{{Cite web |title=Extricating Meaning from Wikimedia Article Archives |url=http://www.cs.rmit.edu.au/adcs2010/proceedings/pdf/paper%204.pdf |accessdate=2011-01-02 |||}}</ref>。下面的对比分析展现了维基标记语言与HTML之间的差别。
MediaWiki使用了一种可扩展、[[轻量级标记语言|轻量级]]的维基标记语言来设计<ref>{{Cite web |title=Manual:Extending wiki markup |url=http://www.mediawiki.org/wiki/Manual:Extending_wiki_markup |accessdate=2010-05-30 |publisher=MediaWiki }}</ref>,它比[[HTML]]更容易学习和使用。工具存在将表格在MediaWiki标记和HTML之间切换的转换内容<!-- removed_ref site137 by WaitSpring-bot (template) -->。尽管有过创造MediaWiki标记语言规范的尝试,但共识似乎已经达到了维基代码需要[[上下文有关文法]]的程度<ref>{{Cite web |title=Markup spec |url=http://www.mediawiki.org/wiki/Markup_spec |accessdate=2010-05-30 |publisher=MediaWiki }}</ref><ref>{{Cite web |title=Extricating Meaning from Wikimedia Article Archives |url=http://www.cs.rmit.edu.au/adcs2010/proceedings/pdf/paper%204.pdf |accessdate=2011-01-02 }}</ref>。下面的对比分析展现了维基标记语言与HTML之间的差别。


{| class="wikitable"
{| class="wikitable"