Difference between revisions of "Template:Lib/data/pairs"
Jump to navigation
Jump to search
(suppress display if NoShow is set) |
(fixed some if/else mismatches) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
<!-- trace assigns / --> | <!-- trace assigns / --> | ||
<func DataShow> | <func DataShow> | ||
− | <echo> | + | <if flag="NoShow" /> |
+ | <else><echo> | ||
==Data==</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> | ||
* '''<get name="key" />''': <get name="valDisp" /></echo> | * '''<get name="key" />''': <get name="valDisp" /></echo> | ||
− | </ | + | </else> |
</xploop> | </xploop> | ||
− | <echo> | + | <if flag="NoShow" /> |
+ | <else><echo> | ||
==Tags== | ==Tags== | ||
− | * '''Pages''':<xploop list="$Topics" repl=$s$> [[$s$]]</xploop> | + | * '''Pages''':<xploop list="$Topics" repl=$s$ echo> [[$s$]]</xploop> |
− | * '''Categories''':<xploop list="$Topics" repl=$s$> [[: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> | ||
<func DataBrief PageName> | <func DataBrief PageName> | ||
− | < | + | <let name="out">'''</let> |
+ | <let name="out" append copy="Date" /> | ||
+ | <let name="out" append>''' /'''[[</let> | ||
+ | <let name="out" append copy="PageName" /> | ||
+ | <let name="out" append>|L]]'''/'''[[Talk:</let> | ||
+ | <let name="out" append copy="PageName" /> | ||
+ | <let name="out" append>|D]]'''/ </let> | ||
+ | <echo><get name="out" /></echo> | ||
<if flag="wpage> | <if flag="wpage> | ||
<echo>[[<get name="wpage" />|<get name="Title" />]]</echo> | <echo>[[<get name="wpage" />|<get name="Title" />]]</echo> | ||
</if><else> | </if><else> | ||
− | <echo>[<get name=" | + | <let name="out">[</let> |
+ | <let name="out" append copy="URL" /> | ||
+ | <let name="out" append> </let> | ||
+ | <let name="out" append copy="Title" /> | ||
+ | <let name="out" append>]</let> | ||
+ | <echo><get name="out" /></echo> | ||
+ | </else> | ||
+ | <echo> <get name="Text" len=200 /> </echo> | ||
+ | <let name="out">''[[</let> | ||
+ | <let name="out" append copy="PageName" /> | ||
+ | <let name="out" append>|more...]]''</let> | ||
+ | <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> | </else> | ||
− | |||
</func> | </func> | ||
</hide> | </hide> |