https://bugzilla.wikimedia.org/show_bug.cgi?id=53566
--- Comment #5 from Chris McKenna <[email protected]> --- (In reply to comment #4) > > > > The idea is not just to store what the title should be displayed as when it > > doesn't match the default, but to record what the title actually is in all > > cases. Presently there is afaik no way to tell that for example [[Parish > > ale]] > > is a common noun, [[Parish Walk]] is a proper noun and [[Parish Bar]] is a > > proper noun that should be italicised. > > *Does it really make sense to store what type of word the title is, instead > of just how to display it. Sorry that was my poor explanation. For tools (such as VisualEditor) to offer a sensible default for the display of a link the tool needs to know how the title should be displayed. In mid sentence: *The vicar drank some [[parish ale]] and declared it "rather good" *The vicar competed in the 2013 [[Parish Walk]], raising money for the church roof. *The vicar enjoyed listening to the ''[[Parish Bar]]'' album while driving. At present only the last of these has need of a {{DISPLAYTITLE}} because the unitalicised format with an initial capital letter is correct when it appears as a page title. This tells us nothing about how it should be used in other contexts, and the DISPLAYTITLE for the third example tells us nothing about capitalisation mid-sentence. In other words we want to store the information about how the title should be used in all cases, not just when it doesn't match the default. It seems to me that there are three options for how to structure this metadata. The first is to simply store the format, e.g. "title: ''Parish Bar''" or "title: parish ale". The second is to define classes of titles and how they are displayed and assign each article title to one such class. e.g. for Parish Walk "title class: proper noun" and for Parish Bar: "title class: musical album title" The third option is to store a class (without that defining the display) and the display: "title: ''Parish Bar''; class: musical album title". The classes and (associated) displays would need to be configurable per wiki for either of those options to work. I've also realised that separate fields would be good for "title" and "disambiguator", e.g. for the article at [[Mercury (element)]]: "title: mercury"; "disambiguator: element"; class: "common noun" or for [[Wellington, Somerset]]: "title: Wellington"; "disambiguator: Somerset"; "class: place name" The advantage of storing this metadata is that it allows for a large amount of semantic information about the title which can be used not only for linking but potentially for customised display options and doubtless more that I haven't thought of. > *What problem (Other than perhaps ideological) does moving the data out of > templates actually solve? I'm told that it needs to be moved out of templates for VE to support. I don't know why. More philosophical, but I was under the impression that the long term goal was to separate metadata from content? -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
