Template:ListSubpagesHelper: Difference between revisions

From Step Mods | Change The Game
mNo edit summary
mNo edit summary
Line 2: Line 2:


==Purpose & Usage==
==Purpose & Usage==
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.
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:'''
<code><nowiki>{{#ask:[[Category:NMS-Index-Entity]]|?|mainlabel=-|template=ListSubpagesHelper|link=none}}</code></nowiki>
<code><nowiki>{{#ask:[[Category:NMS-Index-Entity]]|?|mainlabel=-|template=ListSubpagesHelper|link=none}}</nowiki></code>
'''Result:'''
'''Result:'''
{{#ask:[[Category:NMS-Index-Entity]]|?|mainlabel=-|template=ListSubpagesHelper|link=none}}
{{#ask:[[Category:NMS-Index-Entity]]|?|mainlabel=-|template=ListSubpagesHelper|link=none}}

Revision as of 16:20, July 29, 2021


Purpose & Usage

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