Template:ID to name: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
mNo edit summary
(limit to first result)
Line 1: Line 1:
<includeonly>{{#sub:{{#cargo_query:table=GeneralData|
<includeonly>{{#sub:{{#cargo_query:table=GeneralData|
fields=PlainName|
fields=PlainName|
where=ObjectID='{{#replace:{{{1|}}}|'|''}}' and _pageNamespace='0'|format=template|template=single query result|default={{{1}}}|nohtml}}}}</includeonly><noinclude>[[Category:ID to name Templates]]
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]]
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.



Revision as of 16:58, 5 September 2019

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

{{ID to name|Cyclopean Prism}}

output: amaranthine prism

This uses the GeneralData Table,