Difference between revisions of "Issuepedia:Code/lib/links"
< Issuepedia:Code | lib
Jump to navigation
Jump to search
m (Protected "Issuepedia:Code/lib/links": to enable SQL features [edit=sysop:move=sysop]) |
(currently can't echo from inside a func; syntax to be resolved. Save data to var and echo from calling code.) |
||
Line 1: | Line 1: | ||
<hide> | <hide> | ||
− | <func | + | <func ShowRecent max> |
<let name=idx /> | <let name=idx /> | ||
− | |||
<for table="qryW3_Titles_Catgs" where="(cl_to='Data/links')" name=pg limit=$max hide> | <for table="qryW3_Titles_Catgs" where="(cl_to='Data/links')" name=pg limit=$max hide> | ||
<let name=pg_title val="@row.pg.page_title" /> | <let name=pg_title val="@row.pg.page_title" /> | ||
<let name=idx inc /> | <let name=idx inc /> | ||
<load page=$pg_title /> | <load page=$pg_title /> | ||
− | <let name=out>'''</let> | + | <let name=out> |
+ | * '''</let> | ||
<let name=out append copy=data[Date] /> | <let name=out append copy=data[Date] /> | ||
<let name=out append>''' /'''[[</let> | <let name=out append>''' /'''[[</let> | ||
Line 42: | Line 42: | ||
<let name=out append>|more...]]''</let> | <let name=out append>|more...]]''</let> | ||
− | < | + | <let name=return append copy=out /> |
− | |||
</for> | </for> | ||
</func> | </func> | ||
</hide> | </hide> |