Template:ID to name: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>{{#sub:{{#invoke:CargoQuery|main
<includeonly>{{#invoke:CargoQuery|main
|q?tables=GeneralData
|q?tables=GeneralData
|q?fields=PlainName=Page
|q?fields=PlainName=Page
|q?where=ObjectID='{{#replace:{{{1|}}}|'|''}}' and _pageNamespace='0'
|q?where=ObjectID='{{#replace:{{{1|}}}|'|\'}}' and _pageNamespace='0'
|template=single query result
|template=single query result
|default={{{1}}}
|default={{{1}}}
|q?limit=1}}}}</includeonly><noinclude>[[Category:ID to name Templates]]
|q?limit=1}}</includeonly><noinclude>[[Category:ID to name Templates]]
Basic implementation that searches the objectid in ItemsTable and returns the page name in plain text.
Basic implementation that searches the objectid in ItemsTable and returns the page name in plain text.