-2

I have a persistent issue with a default tag in a "show on select" form.

<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>

Instead of evaluating the #show commands, the fields get defaulted to "{{#show SomePage | ?SomeAttribute}}" and "{{#show SomeOtherPage | ?SomeOtherAttribute}}".

How do I force MediaWiki to evaluated the #show function no matter what?

Tgr
  • 27,442
  • 12
  • 81
  • 118
user1258361
  • 1,133
  • 2
  • 16
  • 25
  • Can we get a link to see this in action... Your details seem to be lacking... Which version of MW are you running? Is it a semantic MW installation? What extensions do you have installed? – ShoeMaker Apr 29 '12 at 02:19
  • 2
    You are missing some `:`s there after `#show`. – Tgr Mar 02 '13 at 11:34

1 Answers1

0

As Tgr said, you are missing some :s there after #show. Fix the syntax and it will work, it's not a matter of priority.

Nemo
  • 2,441
  • 2
  • 29
  • 63