Template:ListSubpagesHelper: Difference between revisions

From Step Mods | Change The Game
m (Z929669 moved page Template:IndexHelper to Template:ListSubpagesHelper without leaving a redirect)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#arraymap:{{{1|}}}|,|x|* [[x|{{SUBPAGENAME:x}}]]|\s}}</includeonly><noinclude>[[Category:Administrative Templates]]
<includeonly>{{#arraymap:{{{1|}}}|,|x|:: [[x|{{SUBPAGENAME:x}}]]|\s}}</includeonly><noinclude>[[Category:Administrative Templates]]
 
==Purpose & Usage==
==Purpose & Usage==
Maps query results into a list for game home pages.
This is a helper Template for Semantic queries. It maps query results into a list returning <code><nowiki>{{SUBPAGENAME}}</nowiki></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, <code><nowiki>{{BASEPAGENAME}}</nowiki></code> will be returned.


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


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


</noinclude>
</noinclude>

Latest revision as of 16:44, July 29, 2021

Purpose & Usage

This is a helper Template for Semantic queries. It maps query results into a list returning {{SUBPAGENAME}}. 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}} will be returned.

Examples

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

See Also