allwiki首页  
天下维客 你可以修改的网络知识库
首页最近更改优秀条目专题展示电脑科技词典软件学习网络知识电脑安全明星时尚天下百科
 

MediaWiki扩展:动态文章列表

天下维客,你可以修改的网络知识库

Jump to: navigation, search
MediaWiki扩展简明教程 Inputbox帮助文档 使用Spam黑名单 内容折叠隐藏 动态文章列表 指定图片链接
代码高亮处理 预置初始编辑文本 页面访问限制 所见即所得编辑器 QQ在线信息
交流:扩展使用 投票与评分 内容随机展示 wikitex 改进设想 ...更多
加入google地图和51地图标注功能 Ajax五颗星评分插件

本文取自元维基,欢迎共同翻译、整理与大家共享,促进中文wiki发展^_^

目录

序言

DynamicArticleList 是 Mediawiki 1.5 扩展。它旨在为所有已提交的文章提供附加的排序功能。现在已实现了四种类型的动态文章列表

  1. 新提交的文章
  2. 最近更新的文章
  3. 最新讨论
  4. 最流行的文章

用户在动态文章列表的帮助下可以轻松找到最近或最流行的主题。

This extension is written with the help from Dynamic Page List.

前提条件

  • 需要安装 PHP 5 或更高版本。
  • 动态文章列表对"recentchanges(最新更改)"表极为依赖,但是 Mediawiki 引擎 1.5.0 会定期根据"recentchanges"表刷新旧条目。建议禁用自动删除功能。- 打开"includes"文件夹中的 Article.php 文件,找到函数"editUpdates"并注释掉开始部分的行 "$dbw->query( $sql )"

安装

  • 从下面提供的链接下载源代码。
  • 复制出 pdf 中的内容,并创建相应的 php 源文件。
    • What do you mean by pdf out? Is this a piece of freeware I haven't heard of before? (To convert the files I had to use Gmail and send the pdf's to myself. I then viewed them in html and saved them. I had five minutes of formatting issues afterwards; but the extension worked perfectly.):ChrisG 03:07, 6 January 2006 (UTC)
    • I believe the author intended for one to open the pdf's in your pdf reader of choice (Acrobat, XPdf, etc.) and select all the text, use the clipboard to copy it, and paste it into a new php file. Your method worked too, of course. (*; Jcobbers 14:46, 8 February 2006 (UTC)
  • DynamicArticleList.php 复制到 "extensions" 文件夹。
  • CategoryTravelerBase.php , CategoryNode.php , CategoryUtil.php 复制到 "includes" 文件夹。
  • 在 "LocalSettings.php" 中添加行 require_once( "extensions/DynamicArticleList.php" );

Usage

Tag and its Parameters

Tag Name DynamicArticleList
Parameters title (optional) Title of the output article list
type (optional) Type of dynamic article list (new/update/discussion/hot)
count (optional) Output count of articles
categoryRoot (optional) Name of category where (including its children) all articles reside

Note:

  • If "categoryRoot" is set, Dynamic Article List will only retrieve articles in this category and its children. If not, all articles will be candidates.
  • The value of parameter "type" could be one of the following (default is new ):
    • new => Newly Posted Articles
    • update => Recently Updated Articles
    • discussion => Recent Discussions
    • hot => Most Popular Articles
  • The default value of "count" is 5 .

Samples

A sample snapshot of Dynamic Article List is shown below.

<a href="/index.php?title=Special:Upload&wpDestFile=Sample_Dynamic_Article_List_1.png" class="new" title="Image:Sample Dynamic Article List 1.png">Image:Sample Dynamic Article List 1.png</a>

When "type" is set to new ,
The output record format would be Page Title (author) - [create time]
When "type" is set to update or discussion ,
The output record format would be Page Title (last editor) - [update time]

The underlaying wiki codes are:


<DynamicArticleList>
  title=Newly Posted Articles
  type=new
  count=512412412412
</DynamicArticleList>


Another sample snapshot of Dynamic Article List is shown below.

<a href="/index.php?title=Special:Upload&wpDestFile=Sample_Dynamic_Article_List_2.png" class="new" title="Image:Sample Dynamic Article List 2.png">Image:Sample Dynamic Article List 2.png</a>

When "type" is set to hot ,
The output record format would be Page Title - (accessed times)

The underlaying wiki codes are:


<DynamicArticleList>
  title=Most Popular Articles
  type=hot
  count=5
</DynamicArticleList>

原文参见: Dynamic Article List

MediaWiki扩展简明教程 Inputbox帮助文档 使用Spam黑名单 内容折叠隐藏 动态文章列表 指定图片链接
代码高亮处理 预置初始编辑文本 页面访问限制 所见即所得编辑器 QQ在线信息
交流:扩展使用 投票与评分 内容随机展示 wikitex 改进设想 ...更多
加入google地图和51地图标注功能 Ajax五颗星评分插件
mediawiki图标

MediaWiki是全球最著名和最流行的开源wiki程序,运行于PHP+MySQL环境。MediaWiki从2002年2月25日被维基百科全书选用,并有大量其他应用实例。

MediaWiki功能齐备,中文支持良好,且学习资源丰富,是建立wiki网站的首选后台程序。目前国内的天下维客等站点都采用这套系统。

MediaWiki的开发得到维基媒体基金会的支持,一直保值着持续更新。目前最新版本为1.12.x。

mediawiki知识


mediawiki建站

mediawiki资源

国外站需代理访问

→ 更多mediawiki资料  相关资源:wiki知识 wiki文摘  QQ群:22134343 / 3680101-wiki建站与应用 5903157-电脑使用

Personal tools
工具
金银币拍卖 金币拍卖预展  金银币网店 熊猫金银币 生肖金银币