Template:ID to name: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#cargo_query:table={{{2|ItemsTable}}}|where={{#switch: {{{2|ItemsTable}}}| ItemsTable =ObjectID|Mods=ModID|Mutations=MutationID|Factions=FactionID|ObjectID}}='{{{1|}}}'|format=template|template=single query result}}</includeonly><noinclude>[[Category:Templates]] | {{#cargo_query:table={{{2|ItemsTable}}}|where={{#switch: {{{2|ItemsTable}}}| ItemsTable =ObjectID| Mods=ModID| Mutations=MutationID | Factions=FactionID | ObjectID }}='{{{1|}}}'|format=template|template=single query result}}</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. | ||
Revision as of 03:02, 31 July 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 defaults to Items table, but can search other tables given that they have their own value that stores object id if the table is specified(Not fully implemented)