User:Tom/Sandbox7

From Saintapedia
Jump to navigation Jump to search

This is for Cargo test

Namespace

The queries will also create links for each namespace where I can add another cargo query to display a bullet list of the pages for that namespace. For example, in my query for “#ask”, it counted 799 pages in the “0” namespace. The query also links each namespace ID to a page (e.g. ../ask/0) where there’s a query to display all pages counted for that namespace:

{{#cargo_query:

|table=_pageData

|fields=_pageName

|where=_fullText LIKE '%#ask:%' AND _pageNamespace = {{SUBPAGENAME}}

|order by=_pageName ASC

|format=ul

}}

Using the magic word {{SUBPAGENAME}}, I can place this query on every subpage under the parent page. This helps me easily go to a page using “#ask” in whichever namespace it was found in.