Difference between revisions of "Issuepedia:Code/lib/links"

From Issuepedia
Jump to navigation Jump to search
(fixed SMW, added visible comment)
(→‎GetBrief(): updated syntax)
 
(2 intermediate revisions by the same user not shown)
Line 168: 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 197: Line 197:
  
 
</func>
 
</func>
 +
 
===ShowRecent()===
 
===ShowRecent()===
 +
'''calls''': GetBrief()
 
<func ShowRecent max>
 
<func ShowRecent max>
 
   <let name=idx />
 
   <let name=idx />
Line 204: 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 221: 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() <= ()