Template:ID to name: Difference between revisions

fixed bug with apostrophes
mNo edit summary
(fixed bug with apostrophes)
Line 1: Line 1:
<includeonly>{{#sub:{{#cargo_query:table=GeneralData|
<includeonly>{{#sub:{{#cargo_query:table=GeneralData|
fields=PlainName|
fields=PlainName|
where=ObjectID='{{{1|}}}' and _pageNamespace='0'|format=template|template=single query result|nohtml}}}}</includeonly><noinclude>[[Category:Templates]]
where=ObjectID='{{#replace:{{{1|}}}|'|''}}' and _pageNamespace='0'|format=template|template=single query result|nohtml}}}}</includeonly><noinclude>[[Category: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.