Template:ListSubpagesHelper: Difference between revisions
From Step Mods | Change The Game
mNo edit summary |
m (→Examples) |
||
Line 5: | Line 5: | ||
== Examples == | == Examples == | ||
: '''Code:''' <code><nowiki>{{#ask:[[Category:NMS-Index-Entity]]|?|mainlabel=-|template=ListSubpagesHelper|link=none}}</nowiki></code> | : '''Code:''' <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}} | ||
== See Also == | == See Also == |
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