Template:Data/pair: Difference between revisions
From HypertWiki
i can has working code now? |
trying call with #tag to see if it handles template params |
||
| Line 1: | Line 1: | ||
[[category:W3TPL]]<hide> | <hide>[[category:W3TPL]] | ||
<func DataPair PairName PairVal> | </hide>{{#tag:hide|<func DataPair PairName PairVal> | ||
<let | <let namer="PairName" copy="PairVal" /><hide>SETTING [<get name="PairName" />] FROM [<get name="PairVal" />]</hide> | ||
</func> | </func>}} | ||
<!-- invoke like this: | <!-- invoke like this: | ||
<call DataPair> | <call DataPair> | ||
| Line 9: | Line 9: | ||
</call> | </call> | ||
--> | --> | ||
</ | {{#tag:call | | DataPair="" | PairName="{{{1}}}" | PairVal="{{{2}}}" }} | ||
<!-- | |||
<call DataPair PairName="AName" PairVal="A value" /> | |||
<call DataPair PairName="AnotherName" PairVal="A diffrint value" /> | |||
{{#tag:call | | DataPair="" | PairName="YetAnotherName" | PairVal="something completely different" }} | |||
DUMP FROM #TAG: {{#tag:dump}} | |||
--> | |||
Revision as of 18:54, 11 August 2008
<hide> </hide><hide><func DataPair PairName PairVal>
<let namer="PairName" copy="PairVal" /><hide>SETTING [<get name="PairName" />] FROM [<get name="PairVal" />]</hide>
</func></hide> <call DataPair="" PairName="{{{1}}}" PairVal="{{{2}}}"> </call>
