On 6/14/09 5:05 PM, Jack D. Pond wrote:
I don't know if this is the best way to do this, so any advice is appreciated.
I have a set of information that needs to be included in two different tables. It seems that the simplest approach might be to create a template of parameters and then transclude it into the two different tables/forms. The following yields desired results in the table (without nested transclusion):
{{TestForm |Fld1=Orange |Fld2=Apple |Fld3=Bread |Fld4=Pie }}
However, when I nest the transclusion as follows:
{{TestForm {{TestFlds}} }}
Mediawiki Displays:
{{TestForm |Fld1=Orange |Fld2=Apple |Fld3=Bread |Fld4=Pie }}
Which is the code I'm looking for, but not the result - of course.
As a side note, if I do the preview using:
{{TestForm {{subst:TestFlds}} }}
The display works exactly as desired - except of course it transcludes the code so that any changes to the Template TestFlds would now be picked up - not the desired results.
Any Ideas?
Template:TestFld
|Fld1=Orange |Fld2=Apple |Fld3=Bread |Fld4=Pie
Template:TestForm
{| |{{{Fld1|A}}} |{{{Fld2|B}}} |- |{{{Fld3|C}}} |{{{Fld4|D}}} |}
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
http://en.wikipedia.org/wiki/Wikipedia:AUM
I suggest thinking of the server kitties.
- Trevor