On Sunday 20 April 2008 18:54:55 Mediawiki wrote:
is there a way to store general information in a template and access parts of that information by a conditional call of the template?
An example could be a list of first name and surname of people working in defined positions in different departments. A template call to find out the Surname could then look like this
{{People_Info
|Department=DepartementA |Position=Accountant |Surname}}
where DepartementA and Accountant define which surname has to be displayed.
I tried a lot with the parser functions #if and #ifeq but the result is not really satisfying.
You may try http://meta.wikimedia.org/wiki/Semantic_MediaWiki or http://www.mediawiki.org/wiki/Extension:Data .