MediaWiki template import reports "Error: no shortcuts were specified and the |msg= parameter was not set"
MediaWiki template import reports "Error: no shortcuts were specified and the |msg= parameter was not set"
我从维基百科导出了 Template:Warning 模板,并尝试将其导入到我的 MediaWiki 实例中。导入成功,但是当我尝试使用模板时,它只显示:
Template:Warning
在我的页面上。
当我转到我的 wiki 上的 Template:Warning 页面时,我看到以下内容:
{{#if: |
{{#if:| [[File:{{{image}}}|40px|Warning]] }} {{#if: |'}}{{{1}}} {{#if: |{{{imageright}}} |{{#if: |Error: no shortcuts were specified and the |msg= parameter was not set.}} }}
}}{{{1}}}
在页面的下方,我得到:
{{#if:{{#ifeq:Warning|sandbox|1}}{{#ifeq:Warning|doc|1}}||{{#switch:Lua error: First parameter must be one of edit, move, create, upload, undelete, autoreview.|sysop|templateeditor|interfaceadmin=|#default=}}}}
如有任何建议,我们将不胜感激。提前谢谢你。
维基百科的大部分模板依赖于不属于 MediaWiki 核心的扩展。在这种情况下,它取决于 the ParserFunctions extension。在您的 wiki 上安装它,然后模板就可以工作了。
我从维基百科导出了 Template:Warning 模板,并尝试将其导入到我的 MediaWiki 实例中。导入成功,但是当我尝试使用模板时,它只显示:
Template:Warning
在我的页面上。
当我转到我的 wiki 上的 Template:Warning 页面时,我看到以下内容:
{{#if: |
{{#if:| [[File:{{{image}}}|40px|Warning]] }} {{#if: |'}}{{{1}}} {{#if: |{{{imageright}}} |{{#if: |Error: no shortcuts were specified and the |msg= parameter was not set.}} }}
}}{{{1}}}
在页面的下方,我得到:
{{#if:{{#ifeq:Warning|sandbox|1}}{{#ifeq:Warning|doc|1}}||{{#switch:Lua error: First parameter must be one of edit, move, create, upload, undelete, autoreview.|sysop|templateeditor|interfaceadmin=|#default=}}}}
如有任何建议,我们将不胜感激。提前谢谢你。
维基百科的大部分模板依赖于不属于 MediaWiki 核心的扩展。在这种情况下,它取决于 the ParserFunctions extension。在您的 wiki 上安装它,然后模板就可以工作了。