At line 388 added 63 lines |
|
--------------- |
A few comments on images. |
|
1. The test case I found (I think here) gave: |
|
This should be a flower with the ALT text "this is a flower" if your wiki supports ALT text on images: |
{{{[{ImagePro src='Red-Flower.jpg' caption='here is a red flower' }]}}} |
|
Couldn't work out what that was supposed to do but {{{ {{Red-Flower.jpg}} }}}seemed sensible/ |
|
2. Using Mozilla, **IT IS ESSENTIAL** that the title is set so that the alternative text displays when you hover over it as unlike Mico$oft IE the alt tag is not displayed by default. BY DEFAULT, you put in an image expecting people to be able to view it, so the DEFAULT use of the text should be for the DEFAULT use i.e. the hover over text. |
|
Or to put it another way, in the vast majority of cases the 'alt' and 'title' tags should be identical by DEFAULT and it should be an option to include a separate title tag. |
|
3. What on earth does:- |
{{{ |
[[some link|{{myimage name}}]] - if you click on the image, will goto "some link" |
[[http://example.com/|{{myimage name}}]] - same as above: picture links to url" |
}}} |
mean?????? |
|
What is {{myimage name}} when it is at home? For my example is it "Red-Flower" or "Red-Flower.jpg" or some kind of internal tag?? |
|
Isonomia Ides of April 2007 |
|
Reply to Isonomia: |
|
1. This isn't defined in Creole 1.0. |
|
2. Seems to me like an implementation issue. |
|
3. //myimage name// is the link to the image, usually with the same syntax as what's accepted as double-bracketed links. Whether it must be a valid relative or absolute URL or something else depends on the application and isn't defined in Creole. The string "myimage name" shouldn't be understood as an illustration of the required syntax. |
|
-- [[YvesPiguet]], 2008-Apr-28 |
|
YvesPiguet ... all standards stand or fall on their implementation. |
|
I've got the test document that I have seeming to work in its entirety (?). The 'implementation' that seems sensible is as follows:- |
|
E.g {{{ {{Red-Flower.jpg|here is a red flower}} }}} |
|
# When the text is given the title and alt tags are both alt = "here is a red flower" title = "here is a red flower". |
# When the text is not given {{{ {{Red-Flower.jpg}} }}}the alt tag is: alt = "Red-Flower.jpg" , but the title is: title = "" |
|
The result is that on both Firefox and IE6 the hover over function will return the same text (whereas if the title tag is not set the implementation will mean that IE and firefox differ (although I supsect it is a failing of IE rather than firefox). |
|
However, if text is not given, then it would be better not to display the file name, when you hover over it. |
|
-- [[Isonomia]], 2008-Apr-28 |
|
YvesPiguet, on the {{{ {{some link}} }}} thing. Because I didn't understand it, Ive assumed "some link" is just a url and is the same as the two preceeding image links on the page. Logic, however tells me that the two are not the same as it would be extraordinary on a page of around four lines to use two different naming conventions for the same thing. |
|
I hope these comments help. |
|
-- [[Isonomia]], 2008-Apr-28 |
|
I agree; I've put "myimage.jpg" everywhere to be clearer. |
|
Concerning the use of image text, I'm not an expert in cross-platform compatibility. But I believe it isn't the purpose of Creole to specify what the exact translation to HTML should be. By default, [[Nyctergatis|NME]] image text is put in the alt attribute. |
|
-- [[YvesPiguet]], 2008-Apr-28 |
|