Difference between revisions of "Issuepedia:Code/lib/links"
< Issuepedia:Code | lib
Jump to navigation
Jump to search
(ShowLinkData(): code is obsolete, but a lot of pages still use it, so let's make it a bit more... functional. [rimshot]) |
(→GetBrief(): updated syntax) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
===ShowLinkData()=== | ===ShowLinkData()=== | ||
+ | This is a functionalized version of the code in [[Issuepedia:Code/show/link]]. Don't use that anymore; use this. | ||
<func ShowLinkData> | <func ShowLinkData> | ||
Line 8: | Line 9: | ||
<let name=wtDate append>}}</let> | <let name=wtDate append>}}</let> | ||
<if flag=$data[Author]> | <if flag=$data[Author]> | ||
− | |||
<let name=wtAuth>[[</let> | <let name=wtAuth>[[</let> | ||
− | |||
<let name=wtAuth append copy=data[Author] /> | <let name=wtAuth append copy=data[Author] /> | ||
− | |||
<let name=wtAuth append>]] ([[</let> | <let name=wtAuth append>]] ([[</let> | ||
<let name=wtAuth append copy=data[Author] /> | <let name=wtAuth append copy=data[Author] /> | ||
Line 143: | Line 141: | ||
| align=right | '''Categories''': || <get name=wtCatgs /> | | align=right | '''Categories''': || <get name=wtCatgs /> | ||
|} | |} | ||
− | |||
</let> | </let> | ||
<echo> | <echo> | ||
+ | {{#set:page type=link}} | ||
+ | {{#set:format version=2.1}} | ||
__NOEDITSECTION__ | __NOEDITSECTION__ | ||
==Specs== | ==Specs== | ||
Line 169: | Line 168: | ||
<let name=links.out append>|talk]]: </let> | <let name=links.out append>|talk]]: </let> | ||
− | <if flag=data[wpage]> | + | <if flag=$data[wpage]> |
<let name=wtLink>[[</let> | <let name=wtLink>[[</let> | ||
<let name=wtLink append copy=data[wpage] /> | <let name=wtLink append copy=data[wpage] /> | ||
Line 198: | Line 197: | ||
</func> | </func> | ||
+ | |||
===ShowRecent()=== | ===ShowRecent()=== | ||
+ | '''calls''': GetBrief() | ||
<func ShowRecent max> | <func ShowRecent max> | ||
<let name=idx /> | <let name=idx /> | ||
Line 205: | Line 206: | ||
<let name=pg_title val="@row.page_title" /> | <let name=pg_title val="@row.page_title" /> | ||
<let name=idx inc /> | <let name=idx inc /> | ||
− | <if not flag=noLoad> | + | <if not flag=$noLoad> |
<load page=$pg_title nocat /> | <load page=$pg_title nocat /> | ||
</if> | </if> | ||
− | <if flag=data[Title]> | + | <if flag=$data[Title]> |
<call GetBrief /> | <call GetBrief /> | ||
</if><else> | </if><else> | ||
Line 222: | Line 223: | ||
</for> | </for> | ||
</func> | </func> | ||
+ | |||
===ShowTopic_old(iTopic,iMax)=== | ===ShowTopic_old(iTopic,iMax)=== | ||
<func ShowTopic_old iTopic iMax> | <func ShowTopic_old iTopic iMax> |
Latest revision as of 11:32, 13 September 2012
ShowLinkData()
This is a functionalized version of the code in Issuepedia:Code/show/link. Don't use that anymore; use this.
> function showlinkdata() <= ()
GetBrief()
> function getbrief() <= ()
ShowRecent()
calls: GetBrief()
> function showrecent() <= ()
ShowTopic_old(iTopic,iMax)
> function showtopic_old() <= ()
ShowTopic_old(topic,max)
This can be deleted if there are no problems with new ShowTopic().
> function showtopic_old() <= ()
ShowTopic(topic,max)
> function showtopic() <= ()