我正在我自己的wiki中广泛使用引号扩展。我有很多的参考资料每页,其中大部分也将用于其他网页。
我目前正在做的是定义wiki页面末尾的引用列表:
<references>
<ref name="ref1">Ref. 1</ref>
<ref name="ref2">Ref. 2</ref>
<references />
然后,每当我需要引用其中之一时,我使用它们的方式如下:
It has been previously shown by Group of Authors 1<ref n
这是q,区块引号和cite的有效用法吗?
<q>Life is what happens when you're busy making other plans</q>
<cite>John Lennon</cite>
或
<blockquote>Life is what happens when you're busy making other plans</blockquote>
<cite>John Lennon</cite>
我只是试着按照下面的tut:创建自己的wiki扩展。
扩展有一个SpecialPage,当我访问mediawiki - SpecialPages站点时,会得到以下错误:
[cb6b6dfb1a33d10f07bcbc44] /index.php/Spezial:Spezialseiten Wikimedia\Assert\ParameterAssertionException from line 63 of D:\Wiki\mediawiki\wiki\vendor\wikimedia\assert\src\Assert.php: Bad value for parameter $dbkey:
我正在侵入一个现有的MediaWiki扩展,它为添加了一个自定义钩子。由于迁移到PHP5.4和MW1.22(从PHP5.3和MW1.19.2),扩展似乎无法正常工作。问题在于自定义钩子没有返回它应该执行的数据。
以下是守则的有关部分:
ProcessCite.php
# Declare the hook:
$wgHooks['CiteBeforeStackEntry'][] = 'wfProcessCite';
# the function itself
function wfProcessCite($str, $argv){
# process $argv
我想添加3个自定义标签,MediaWiki管理员将添加到她的模板(例如,登录页面的Userlogin.php模板),这些扩展需要由我正在建设的扩展处理。标记的格式为<mytag_forXaction>,<mytag_forYaction>。当扩展解析时,它们将被替换为有效的HTML标记,以显示框或图像或任何所需的用途。
到目前为止,我已经尝试过这样做:
if ( !defined( 'MEDIAWIKI' ) ) {
die( 'This file is a MediaWiki extension, it is not a valid e
我已经在wiki农场上设置了一个MediaWiki,并希望提供维基百科样式的模板,比如{{reflist}}、{{merge from|article}}、{{cite book|...}}等等。
遵循干原理,似乎最好将它们转换为包含它们,这可以使用像{{raw:w:reflist}}这样的语法,这是维基百科:共享模板推荐的。
这对于简单的模板是有效的,但是对于更复杂的模板,比如reflist,我得到了Script error: No such module "Check for unknown parameters"。我想raw转换可以带来一些模板依赖,但不是Lua模块依赖?
若要引用HTML中的工作,请使用<cite>
In <cite>The Lord of the Rings: The Return of the King</cite>, the author includes several appendices.
如果我想提到一部作品而没有引用它呢?<cite>仍然是正确的元素,还是应该使用其他元素?
I read <cite>The Lord of the Rings</cite> when I was thirteen.
我没有看到任何指南,我在这里能找到的最接近的问题是,它是关于
我无法理解这一点。
像这样单独使用<cite> text </cite>只会使文本看起来有点斜体,但我不能理解cite作为块引用中的属性的用途。
例如:
<blockquote cite="http://www.example.com">
For 50 years, WWF has been protecting the future of nature.
</blockquote>
现在,这个url链接出现在哪里?无论我往哪里看,它只是说“这是供参考的”,但是参考在哪里呢?
该链接不会显示在输出上,除非我使用hre
我想使用API在我的网站上按原样显示维基百科页面。我找到了,它可以提供帮助,但文档有限,我不知道如何使用它。在用户指南中,他们引用了一个名为的玩具维基浏览器,我将其用作以下代码的基础:
<!DOCTYPE html>
<!-- testing purpose file, used for trying to print a correctly formatted wikipedia page -->
<html>
<head> <!-- Tout ce qui est pas dans le contenu -->
我正试图找到在HTML5中编写搜索结果页面的最佳方法。
我就是这么做的。
<section>
<header>
<h2>Results for <kbd>this terms</kbd></h2>
</header>
<!-- list of results -->
<ol>
<!-- First result -->
<li>
<article>
<header>
试图为FCKEditor安装MediaWiki扩展。按照官方网站的指示-从svn获取副本。
在此之后-将其包含到LocalSettings.php中:
require_once("$IP/extensions/FCKeditor/FCKeditor.php");
当我试图打开我的Wiki时,我发现了错误:
Magic word 'NORICHEDITOR' not found
Backtrace:
#0 /usr/share/mediawiki/includes/MagicWord.php(244): Language->getMagic(Obj