Template:ID to page: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#invoke:CargoQuery|main |q?tables=GeneralData |q?fields=_pageName=Page |q?where=ObjectID='{{#replace:{{{1|}}}|'|\'}}' and _pageNamespace='0' |template=single qu...")
 
(changed to module)
 
Line 1: Line 1:
<includeonly>{{#invoke:CargoQuery|main
<includeonly>{{#invoke:Favilink Utility|IDtopage
|q?tables=GeneralData
|{{{1}}}}}</includeonly><noinclude>[[Category:ID to name Templates]]
|q?fields=_pageName=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.



Latest revision as of 15:56, 28 October 2019

Basic implementation that searches the objectid in ItemsTable and returns the page name in plain text.

{{ID to page|Glowcrow_Peck}}

output: Data:Peck (glowcrow)

This uses the GeneralData Table.