Jump to content

Topic on Extension talk:Cargo/Quick start guide

Joernc unibi (talkcontribs)

If I have a query on a Template page, how do I express "this page", or more precisely "attribute x of this page"?

Example: I have tables for "departments" and "employees". For each department I want a page listing all employees of that department - but of course I want to do this within a Template "department". Each department has a department code, and each employee references his/her department by this code. So I need something like

where employee.depcode=<_thisPage.depcode>

How do I achieve this?

Yaron Koren (talkcontribs)

Is there a template parameter for the department code? If so, use that.

Reply to ""this" in Cargo?"