【发布时间】:2012-04-27 19:56:02
【问题描述】:
我在“选择时显示”表单中的默认标记存在持久性问题。
<div id="test-a">
{{#show: MyPage | ?MyAttribute}}
{|class="formtable"
! A:
| {{{field|input type = text|default= {{#show SomePage | ?SomeAttribute}} }}}
|-
! B:
| {{{field|input type = text|default= {{#show SomeOtherPage | ?SomeOtherAttribute}} }}}
|}
</div>
字段默认为“{{#show SomePage | ?SomeAttribute}}”和“{{#show SomeOtherPage | ?SomeOtherAttribute}}”,而不是评估#show 命令。
无论如何我如何强制 MediaWiki 评估 #show 函数?
【问题讨论】:
-
我们能否获得一个链接以查看实际情况...您的详细信息似乎缺失...您运行的是哪个版本的 MW?它是语义 MW 安装吗?你安装了哪些扩展?
-
您在
#show之后缺少一些:s。
标签: mediawiki mediawiki-templates semantic-mediawiki