Template:ID to name: Difference between revisions
Jump to navigation
Jump to search
(now works with ~80% of all tables) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#sub:{{#cargo_query:table={{{2|ItemsTable}}}| | <includeonly>{{#sub:{{#cargo_query:table={{{2|ItemsTable}}}| | ||
fields={{#switch: {{{2|temsTable}}} | Corpses= | fields={{#switch: {{{2|temsTable}}} | Corpses=StrippedTitle | Cybernetics=Name| _pageName='Page'}}| | ||
where={{#switch: {{{2|ItemsTable}}}| ItemsTable=ObjectID| Mods=ModID| Mutations=MutationID | Factions=FactionID | Corpses=CorpseID | Cybernetics=CyberneticID | ObjectID }}='{{{1|}}}'|format=template|template=single query result}}}}</includeonly><noinclude>[[Category:Templates]] | where={{#switch: {{{2|ItemsTable}}}| ItemsTable=ObjectID| Mods=ModID| Mutations=MutationID | Factions=FactionID | Corpses=CorpseID | Cybernetics=CyberneticID | 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. |