Difference between revisions of "Template:Lib/data/pairs"
Jump to navigation
Jump to search
(+echo tag (now required for output from xploop)) |
(fixed some if/else mismatches) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
<!-- trace assigns / --> | <!-- trace assigns / --> | ||
<func DataShow> | <func DataShow> | ||
− | <if flag="NoShow" /><else><echo> | + | <if flag="NoShow" /> |
− | ==Data==</echo></else> | + | <else><echo> |
+ | ==Data==</echo> | ||
+ | </else> | ||
<xploop list="$PairList" var="key"> | <xploop list="$PairList" var="key"> | ||
<let name="valDisp" copy="$key" /> | <let name="valDisp" copy="$key" /> | ||
Line 26: | Line 28: | ||
<let name="valDisp" append>]]</let> | <let name="valDisp" append>]]</let> | ||
</if> | </if> | ||
− | <if flag="NoShow" /><else> | + | <if flag="NoShow" /> |
+ | <else> | ||
<echo> | <echo> | ||
* '''<get name="key" />''': <get name="valDisp" /></echo> | * '''<get name="key" />''': <get name="valDisp" /></echo> | ||
− | </ | + | </else> |
</xploop> | </xploop> | ||
− | <if flag="NoShow" /><else><echo> | + | <if flag="NoShow" /> |
+ | <else><echo> | ||
==Tags== | ==Tags== | ||
* '''Pages''':<xploop list="$Topics" repl=$s$ echo> [[$s$]]</xploop> | * '''Pages''':<xploop list="$Topics" repl=$s$ echo> [[$s$]]</xploop> | ||
* '''Categories''':<xploop list="$Topics" repl=$s$ echo> [[:category:$s$|$s$]][[category:$s$|$s$]]</xploop></echo> | * '''Categories''':<xploop list="$Topics" repl=$s$ echo> [[:category:$s$|$s$]][[category:$s$|$s$]]</xploop></echo> | ||
− | </ | + | </else> |
</func> | </func> | ||
Line 63: | Line 67: | ||
<let name="out" append>|more...]]''</let> | <let name="out" append>|more...]]''</let> | ||
<echo><get name="out" /></echo> | <echo><get name="out" /></echo> | ||
+ | </func> | ||
+ | |||
+ | <func DataBriefRetro PageName> | ||
+ | <if flag="PairList"> | ||
+ | <call DataBrief PageName="$PageName" /> | ||
+ | </if><else> | ||
+ | <echo>{{show.link.abbr|<get name="PageName" />|200}}</echo> | ||
+ | </else> | ||
</func> | </func> | ||
</hide> | </hide> |