Difference between revisions of "Issuepedia:Code/lib/links"
< Issuepedia:Code | lib
Jump to navigation
Jump to search
(added noLoad flag to skip loading the pages) |
(minor fixes and debug code) |
||
Line 71: | Line 71: | ||
<let name=topic parse>{{PAGENAME}}</let> | <let name=topic parse>{{PAGENAME}}</let> | ||
</if> | </if> | ||
− | <let name=topic with="_"> </let> | + | <let name=topic self with="_"> </let> |
<let name=sqlWhere>(page_namespace=0) AND (cl_to='</let> | <let name=sqlWhere>(page_namespace=0) AND (cl_to='</let> | ||
− | |||
− | |||
<let name=sqlWhere append copy=topic /> | <let name=sqlWhere append copy=topic /> | ||
<let name=sqlWhere append>')</let> | <let name=sqlWhere append>')</let> | ||
+ | |||
+ | <let name=links.rtn>SQL: </let> | ||
+ | <let name=links.rtn append copy=sqlWhere /> | ||
<for table="qryW3_Titles_Catgs" where=$sqlWhere sort="page_title DESC" name=pg empty="no items yet" limit=$iMax hide> | <for table="qryW3_Titles_Catgs" where=$sqlWhere sort="page_title DESC" name=pg empty="no items yet" limit=$iMax 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 /> | + | <if not flag=noLoad> |
− | < | + | <load page=$pg_title local /> |
+ | </if> | ||
<if flag=data[Title]> | <if flag=data[Title]> | ||
<call GetBrief /> | <call GetBrief /> | ||
</if><else> | </if><else> | ||
− | |||
<let name=links.out> | <let name=links.out> | ||
* [[</let> | * [[</let> |