Difference between revisions of "Template:Lib/data/pairs"
Jump to navigation
Jump to search
(and again for inside the xploop) |
(i can has working code *now*?) |
||
Line 1: | Line 1: | ||
− | < | + | <func DataHdr> |
+ | <echo>[[category:data.links]]</echo> | ||
+ | <let keylist /> | ||
+ | </func> | ||
+ | |||
<func DataPair PairName PairVal> | <func DataPair PairName PairVal> | ||
<let name="$PairName" copy="PairVal" /> | <let name="$PairName" copy="PairVal" /> | ||
− | <let name=" | + | <let name="PairList" append>\</let> |
− | + | <let name="PairList" append copy="PairName" /> | |
− | |||
− | <let name="PairList" append | ||
</func> | </func> | ||
+ | <!-- trace assigns / --> | ||
<func DataShow> | <func DataShow> | ||
− | <xploop list="$ | + | <xploop list="$PairList" var="key"> |
− | + | <let name="valDisp" copy="$key" /> | |
− | * ''' | + | <if comp="$key" with="Date"> |
+ | <let name="valDisp">[[:category:</let> | ||
+ | <let name="valDisp" append copy="$key" /> | ||
+ | <let name="valDisp" append>|</let> | ||
+ | <let name="valDisp" append copy="$key" /> | ||
+ | <let name="valDisp" append>]]</let> | ||
+ | </if> | ||
+ | <echo> | ||
+ | * '''<get name="key" />''': <get name="valDisp" /></echo> | ||
</xploop> | </xploop> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</func> | </func> |
Revision as of 15:15, 24 August 2008
> function datahdr() <= ()
> function datapair() <= ()
> function datashow() <= ()