Template:ID to name: Difference between revisions

14 bytes removed ,  21:47, 8 September 2019
m
no edit summary
(limit to first result)
mNo edit summary
Line 1: Line 1:
<includeonly>{{#sub:{{#cargo_query:table=GeneralData|
<includeonly>{{#sub:{{#invoke:CargoQuery|main
fields=PlainName|
|q?tables=GeneralData
where=ObjectID='{{#replace:{{{1|}}}|'|''}}' and _pageNamespace='0'|format=template|template=single query result|default={{{1}}}|no html|limit=1|more results text=}}}}</includeonly><noinclude>[[Category:ID to name Templates]]
|q?fields=PlainName=Page
|q?where=ObjectID='{{#replace:{{{1|}}}|'|''}}' and _pageNamespace='0'
|template=single query result
|default={{{1}}}
|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.