From: Yaron K. <ya...@wi...> - 2011-07-19 21:48:06
|
Okay, I'll think about it. Yeah, "Edit" would make sense if it already exists - I was too lazy to add that in to the example. I didn't want to make Semantic Forms require Validator. Now that SMW 1.6 requires Validator, it makes sense for SF to start using its functionality too. -Yaron On Tue, Jul 19, 2011 at 5:30 PM, Van de Bugger <van...@gm...>wrote: > Automatic text is ok and would be suitable in many cases. (Why "Create"? > It may be "Edit" or "Update", not always "Create". It should depend on > link color, blue or red.) > > But I want to have ability to specify the text manually. For example, at > my site there is a namespace "Region", form "Region" (and template > "Region"). In such a case automatic tooltip would be "Edit Region: > Region:Albania" ("Edit <Form>: <Page>"), which is not so good. > > There are other cases when overriding automatic tooltip would be > desirable. > > BTW, I noticed every function parses its parameters... Why don't you use > Validator for parsing parameters? > > Regards, > Van. > > On Tue, 2011-07-19 at 17:15 -0400, Yaron Koren wrote: > > Hi, > > > > > > Oh yes - I forgot that MediaWiki links all have the hover text. Maybe > > the right solution, then, is to have an automatic hover text for > > #formlink? It could have the structure "Create <form name>" or "Create > > <form name>: <page name>", depending on whether a target page was > > specified. So it could look like "Create Country: Albania". > > > > > > Would that work for you, or would you want custom control? And if it's > > the latter, what sort of specific text would you want to set? > > > > > > -Yaron > > > > On Tue, Jul 19, 2011 at 5:05 PM, Van de Bugger > > <van...@gm...> wrote: > > > The "title" attribute, and hover text, are rarely used for > > links > > > > > > Rarely? I would say "title" attribute is used very often. > > Almost all > > internal links in MediaWiki (=> Wikipedia) has "title" > > attribute. Try to > > stop mouse over a link and see result -- a small tooltip will > > appear > > with more detailed explanation of the link target. For ordinal > > pages it > > is just a full destination page name (including namespace > > name). For > > action link tooltip explains action, often it provides > > keyboard > > shortcut. > > > > I would like such a tooltip for "further results" link -- now > > it shows > > full address of Special:Ask page with all the search arguments > > -- looks > > very cryptic for ordinal user. I want to set content of > > tooltip via > > parameter, but it is a different component. > > > > Van. > > > > > > On Tue, 2011-07-19 at 16:52 -0400, Yaron Koren wrote: > > > Hi Van, > > > > > > > > > Thanks for this patch - it's an interesting idea. The > > "title" > > > attribute, and hover text, are rarely used for links, as far > > as I know > > > - what's a use case for this? > > > > > > > > > -Yaron > > > > > > On Tue, Jul 19, 2011 at 4:39 PM, Van de Bugger > > > <van...@gm...> wrote: > > > Hi Yaron, > > > > > > Please consider a small patch to the formlink > > functon. I added > > > "title" > > > parameter. If specified, form link HTML element > > receives > > > "title" > > > attribute, which appears as a small tooltip if user > > stops a > > > mouse on a > > > link. > > > > > > Thanks, > > > Van. > > > > > > > > > > > > -- > > > WikiWorks · MediaWiki Consulting · http://wikiworks.com > > > > > > > > > > > > > > > > > -- > > WikiWorks · MediaWiki Consulting · http://wikiworks.com > > > > > -- WikiWorks · MediaWiki Consulting · http://wikiworks.com |