On 29.05.2012 17:02, Gregor Hagedorn wrote:
Hi Daniel,
They may not exist in the current form, but a "local scope" will always exist. Template parameter names are local the the current template "call". They have to be managed somewhere, so mediawiki will always have some way to manage data attached to the "current call", and we can tie into that to put the "default item" into that "current" or "local" scope.
I am convinced if you can explain: the scope of this setting will always be identical to template parameters. For example, it will not be inherited if a template calls another template.
Hehe, good catch. I have been thinking about this, and I think that in the case of default items, it would be consistent to let "sub"-templates (nested template calls) inherit the item set by a template further up. I'm not sure how this is currently handled by the preprocessor. It's something to be investigated (maybe we can have a chat with Tim about this in Thursday...)
We established the "item" terminology in the data model. The syntax spec has to be consistent with this. We could change "item" to something else, but we'd have to start in the data model.
Yes I know. I just mentioned it because I was experiencing myself being confused here -- just as an example. If you think there a chance to discuss the data model with respect to how the thing is being called, please open a discussion and I will gladly comment. I do respect your constraints in what you can discuss when.
Please voice your concerns on the data model's talk page, https://meta.wikimedia.org/wiki/Talk:Wikidata/Data_model.
-- daniel