Mediawiki 注释问题
Mediawiki note issue
我用的是mediawiki (1.28.2),我不能做笔记。
这是我通过预览获得的结果。
Preview
语法 {{note|Foo}}
具有使用位置参数 Foo
扩展 note
模板的效果。您得到的结果是因为 note
模板不存在于您的 MediaWiki 安装中。
笔记模板位于 Template:Note
页(或 Template:note
,如果您已将页名的第一个字符设置为区分大小写)。如果此页面不存在,则 {{note|Foo}}
将创建您看到的红色 link。如果您使用一些内容创建它,那么 {{note|Foo}}
将显示您添加的内容。例如,如果您添加内容Hello, world!
,则{{note|Foo}}
将显示"Hello, world!",如果您添加内容Hello, {{{1}}}!
,则{{note|Foo}}
将显示"Hello, Foo!" ]
正在导入模板
您似乎希望 note
模板显示实际注释。为此,您需要在模板中使用特殊语法。使它工作的最快方法可能是从制作您想要的模板的 wiki 导入模板。但是,这需要您复制该模板使用的所有其他模板,并安装该模板使用的所有 MediaWiki 扩展。
例如,如果您想要 French Wikipedia's note template, you need to copy the Lire en ligne template and the Correction syntaxique module, and you need to install the Cite and Scribunto 扩展名。 (如果你从笔记模板中删除 {{#invoke:
之后的所有内容,那么你可以在不安装 Scribunto 或复制 Correction syntaxique 模块的情况下离开,我建议这样做,因为安装 Scribunto 很痛苦。)
您还可以使用 Special:Export
和 Special:Import
来简化复制过程。查看 this blog post 以获得一些提示。
引用扩展
或者,您可以只安装 Cite extension 并在本地使用其语法,而不是导入模板。这是 Cite 文档中的示例:
According to scientists, the Sun is pretty big.<ref>E. Miller, ''The Sun''
(New York: Academic Press, 2005), 23-5.</ref> In fact, it is very
big.<ref group="footnotes"> Take their word for it. Don't look directly
at the sun!</ref>
==Notes==
<references group="footnotes" />
==References==
<references />
此处,"Take their word for it" 文本将显示为注释,不需要任何模板。
我用的是mediawiki (1.28.2),我不能做笔记。 这是我通过预览获得的结果。
Preview
语法 {{note|Foo}}
具有使用位置参数 Foo
扩展 note
模板的效果。您得到的结果是因为 note
模板不存在于您的 MediaWiki 安装中。
笔记模板位于 Template:Note
页(或 Template:note
,如果您已将页名的第一个字符设置为区分大小写)。如果此页面不存在,则 {{note|Foo}}
将创建您看到的红色 link。如果您使用一些内容创建它,那么 {{note|Foo}}
将显示您添加的内容。例如,如果您添加内容Hello, world!
,则{{note|Foo}}
将显示"Hello, world!",如果您添加内容Hello, {{{1}}}!
,则{{note|Foo}}
将显示"Hello, Foo!" ]
正在导入模板
您似乎希望 note
模板显示实际注释。为此,您需要在模板中使用特殊语法。使它工作的最快方法可能是从制作您想要的模板的 wiki 导入模板。但是,这需要您复制该模板使用的所有其他模板,并安装该模板使用的所有 MediaWiki 扩展。
例如,如果您想要 French Wikipedia's note template, you need to copy the Lire en ligne template and the Correction syntaxique module, and you need to install the Cite and Scribunto 扩展名。 (如果你从笔记模板中删除 {{#invoke:
之后的所有内容,那么你可以在不安装 Scribunto 或复制 Correction syntaxique 模块的情况下离开,我建议这样做,因为安装 Scribunto 很痛苦。)
您还可以使用 Special:Export
和 Special:Import
来简化复制过程。查看 this blog post 以获得一些提示。
引用扩展
或者,您可以只安装 Cite extension 并在本地使用其语法,而不是导入模板。这是 Cite 文档中的示例:
According to scientists, the Sun is pretty big.<ref>E. Miller, ''The Sun''
(New York: Academic Press, 2005), 23-5.</ref> In fact, it is very
big.<ref group="footnotes"> Take their word for it. Don't look directly
at the sun!</ref>
==Notes==
<references group="footnotes" />
==References==
<references />
此处,"Take their word for it" 文本将显示为注释,不需要任何模板。