Template:ListSubpagesHelper: Difference between revisions

From Step Mods | Change The Game
m (Z929669 moved page Template:IndexHelper to Template:ListSubpagesHelper without leaving a redirect)
mNo edit summary
Line 2: Line 2:


==Purpose & Usage==
==Purpose & Usage==
Maps query results into a list for game home pages.
Maps query results into a list returning <code><nowiki>{{SUBPAGENAME}}</code></nowiki>. This may be used with any Semantic query result for which only the subpage name is desired. For list items that are not subpages, <code><nowiki>{{BASEPAGENAME}}</code></nowiki> will be returned.


== Examples ==
== Examples ==
<!--
'''Code:'''
'''Code:'''
<pre>{{TEMPLATE NAME AND ARGUMENTS}}</pre>
<code><nowiki>{{#ask:[[Category:NMS-Index-Entity]]|?|mainlabel=-|template=ListSubpagesHelper|link=none}}</code></nowiki>
'''Result:'''
'''Result:'''
{{TEMPLATE NAME AND ARGUMENTS}}
{{#ask:[[Category:NMS-Index-Entity]]|?|mainlabel=-|template=ListSubpagesHelper|link=none}}
-->
None


== See Also ==
== See Also ==
<!--
* [[:Template:GameHomePageList]]
[[:RELATED TEMPLATE NAME AND ARGUMENTS]]
* [[:Template:INITOC]]
-->
None


</noinclude>
</noinclude>

Revision as of 16:19, July 29, 2021


Purpose & Usage

Maps query results into a list returning {{SUBPAGENAME}}</code>. This may be used with any Semantic query result for which only the subpage name is desired. For list items that are not subpages, {{BASEPAGENAME}}</code> will be returned.

Examples

Code: {{#ask:[[Category:NMS-Index-Entity]]|?|mainlabel=-|template=ListSubpagesHelper|link=none}}</code> Result:


See Also