Re: [xwiki-users] syntax nuances
Hi Joris/Andreas, On Jan 6, 2011, at 10:29 PM, Joris Dirks wrote: > Vincent, > >> The wiki syntax to specify an image with params is [[image:...||params]]. >> >> Please let us know how to fix the doc to make it more obvious. > > My suggestion: show with other examples, how any syntax is allowed. > [[--strikethrough-- example>>link]] I've updated the Syntax page with more examples, see: http://jira.xwiki.org/jira/secure/attachment/18393/Screen+shot+2011-01-10+at+11.48.48+AM.png Hope it good now. Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] syntax nuances
Vincent, > The wiki syntax to specify an image with params is [[image:...||params]]. > > Please let us know how to fix the doc to make it more obvious. My suggestion: show with other examples, how any syntax is allowed. [[--strikethrough-- example>>link]] ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] syntax nuances
Am 06.01.2011 12:59, schrieb Vincent Massol: > On Jan 6, 2011, at 12:53 PM, Andreas Hahn wrote: > >> Am 06.01.2011 11:11, schrieb Vincent Massol: >> >> Yesss - so now I can remove the ugly {{html}}> resulting. That wasn't obvious to me >> either but it means that customization with a class="myImage" should be >> easily possible. Also the scope of the Parameter - statement "(%" isn't >> completely clear to me - it seems to work on the subsequent syntax >> element - but not for [[image:...]] or it renders a paragraph but if >> you want to render a you need to use {{html }}> class="myclass">text{{/html}} - right ? > I've tried this on my local wiki: > > [[(% class="myclass" %)[[image:XWikiLogo.png||width="25" > height="25"]]>>http://xwiki.org]] > > And it generates: > > http://xwiki.org";> class="myclass"> src="http://localhost:8080/xwiki/bin/download/Sandbox/WebHome/XWikiLogo.png?width=25&height=25"; > width="25" height="25" alt="XWikiLogo.png"/> > > So as you can see it does generate a. > > Now if you want the params to apply to the img tag you need to pass them as > image params: > > image:XWikiLogo.png||width="25" height="25" > class="myclass"]]>>http://xwiki.org]] > > which generates: > > http://xwiki.org";> src="http://localhost:8080/xwiki/bin/download/Sandbox/WebHome/XWikiLogo.png?width=25&height=25"; > width="25" height="25" class="myclass" alt="XWikiLogo.png"/> > > Hope it's clear. > > Thanks > -Vincent > Bingo - again I wasn't aware i need to put it in brackets [[ ]] thanks Andreas >> Well I'm sort of casual user and it takes time finding out. >> >> thanks a lot >> >> Andreas >> >>> On Jan 6, 2011, at 11:09 AM, Vincent Massol wrote: >>> Hi Andreas, On Jan 6, 2011, at 10:59 AM, Andreas Hahn wrote: > Seems I haven't yet understood all the nuances of XWiki syntax: > > According to http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax > > I can have a sized image with [[image:img.png||width="25" height="25"]] > I can have an image with a link [[image:img.png>>http://xwiki.org]] > > How can I have a sized image with a link ? > not working: > [[image:img.png||width="25" height="25">>http://xwiki.org]] not correct > [[image:img.png>>http://xwiki.org||width="25" height="25"]] not correct either You need: image:img.png||width="25" height="25"]]>>http://xwiki.org]] >>> What you need to understand is that you have wiki syntax inside a link label >>> >>> In [[linklabelhere>>reference]], linklabelhere is wiki syntax. >>> >>> The wiki syntax to specify an image with params is [[image:...||params]]. >>> >>> Please let us know how to fix the doc to make it more obvious. >>> >>> Thanks >>> -Vincent >>> Hope it helps, -Vincent > not working either (with and without 'px'): > (% style="height:25px;width:25px" %) > [[image:img.png>>http://xwiki.org]] > > and > (% style="height:25px;width:25px" > [[image:img.png>>http://xwiki.org]] > %) > > Hmmm... Once again I may not see the obvious ... > How can I do it ? > > Thanks > > Andreas > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] syntax nuances
On Jan 6, 2011, at 12:53 PM, Andreas Hahn wrote: > Am 06.01.2011 11:11, schrieb Vincent Massol: > > Yesss - so now I can remove the ugly {{html}} resulting . That wasn't obvious to me > either but it means that customization with a class="myImage" should be > easily possible. Also the scope of the Parameter - statement "(%" isn't > completely clear to me - it seems to work on the subsequent syntax > element - but not for [[image:...]] or it renders a paragraph but if > you want to render a you need to use {{html }} class="myclass">text{{/html}} - right ? I've tried this on my local wiki: [[(% class="myclass" %)[[image:XWikiLogo.png||width="25" height="25"]]>>http://xwiki.org]] And it generates: http://xwiki.org";>http://localhost:8080/xwiki/bin/download/Sandbox/WebHome/XWikiLogo.png?width=25&height=25"; width="25" height="25" alt="XWikiLogo.png"/> So as you can see it does generate a . Now if you want the params to apply to the img tag you need to pass them as image params: image:XWikiLogo.png||width="25" height="25" class="myclass"]]>>http://xwiki.org]] which generates: http://xwiki.org";>http://localhost:8080/xwiki/bin/download/Sandbox/WebHome/XWikiLogo.png?width=25&height=25"; width="25" height="25" class="myclass" alt="XWikiLogo.png"/> Hope it's clear. Thanks -Vincent > > Well I'm sort of casual user and it takes time finding out. > > thanks a lot > > Andreas > >> On Jan 6, 2011, at 11:09 AM, Vincent Massol wrote: >> >>> Hi Andreas, >>> >>> On Jan 6, 2011, at 10:59 AM, Andreas Hahn wrote: >>> Seems I haven't yet understood all the nuances of XWiki syntax: According to http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax I can have a sized image with [[image:img.png||width="25" height="25"]] I can have an image with a link [[image:img.png>>http://xwiki.org]] How can I have a sized image with a link ? not working: [[image:img.png||width="25" height="25">>http://xwiki.org]] >>> not correct >>> [[image:img.png>>http://xwiki.org||width="25" height="25"]] >>> not correct either >>> >>> You need: >>> >>> image:img.png||width="25" height="25"]]>>http://xwiki.org]] >> What you need to understand is that you have wiki syntax inside a link label >> >> In [[linklabelhere>>reference]], linklabelhere is wiki syntax. >> >> The wiki syntax to specify an image with params is [[image:...||params]]. >> >> Please let us know how to fix the doc to make it more obvious. >> >> Thanks >> -Vincent >> >>> Hope it helps, >>> -Vincent >>> not working either (with and without 'px'): (% style="height:25px;width:25px" %) [[image:img.png>>http://xwiki.org]] and (% style="height:25px;width:25px" [[image:img.png>>http://xwiki.org]] %) Hmmm... Once again I may not see the obvious ... How can I do it ? Thanks Andreas ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] syntax nuances
Am 06.01.2011 11:11, schrieb Vincent Massol: Yesss - so now I can remove the ugly {{html}} . That wasn't obvious to me either but it means that customization with a class="myImage" should be easily possible. Also the scope of the Parameter - statement "(%" isn't completely clear to me - it seems to work on the subsequent syntax element - but not for [[image:...]] or it renders a paragraph but if you want to render a you need to use {{html }}text{{/html}} - right ? Well I'm sort of casual user and it takes time finding out. thanks a lot Andreas > On Jan 6, 2011, at 11:09 AM, Vincent Massol wrote: > >> Hi Andreas, >> >> On Jan 6, 2011, at 10:59 AM, Andreas Hahn wrote: >> >>> Seems I haven't yet understood all the nuances of XWiki syntax: >>> >>> According to http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax >>> >>> I can have a sized image with [[image:img.png||width="25" height="25"]] >>> I can have an image with a link [[image:img.png>>http://xwiki.org]] >>> >>> How can I have a sized image with a link ? >>> not working: >>> [[image:img.png||width="25" height="25">>http://xwiki.org]] >> not correct >> >>> [[image:img.png>>http://xwiki.org||width="25" height="25"]] >> not correct either >> >> You need: >> >> image:img.png||width="25" height="25"]]>>http://xwiki.org]] > What you need to understand is that you have wiki syntax inside a link label > > In [[linklabelhere>>reference]], linklabelhere is wiki syntax. > > The wiki syntax to specify an image with params is [[image:...||params]]. > > Please let us know how to fix the doc to make it more obvious. > > Thanks > -Vincent > >> Hope it helps, >> -Vincent >> >>> not working either (with and without 'px'): >>> (% style="height:25px;width:25px" %) >>> [[image:img.png>>http://xwiki.org]] >>> >>> and >>> (% style="height:25px;width:25px" >>> [[image:img.png>>http://xwiki.org]] >>> %) >>> >>> Hmmm... Once again I may not see the obvious ... >>> How can I do it ? >>> >>> Thanks >>> >>> Andreas > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] syntax nuances
On Jan 6, 2011, at 11:09 AM, Vincent Massol wrote: > Hi Andreas, > > On Jan 6, 2011, at 10:59 AM, Andreas Hahn wrote: > >> Seems I haven't yet understood all the nuances of XWiki syntax: >> >> According to http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax >> >> I can have a sized image with [[image:img.png||width="25" height="25"]] >> I can have an image with a link [[image:img.png>>http://xwiki.org]] >> >> How can I have a sized image with a link ? >> not working: >> [[image:img.png||width="25" height="25">>http://xwiki.org]] > > not correct > >> [[image:img.png>>http://xwiki.org||width="25" height="25"]] > > not correct either > > You need: > > image:img.png||width="25" height="25"]]>>http://xwiki.org]] What you need to understand is that you have wiki syntax inside a link label In [[linklabelhere>>reference]], linklabelhere is wiki syntax. The wiki syntax to specify an image with params is [[image:...||params]]. Please let us know how to fix the doc to make it more obvious. Thanks -Vincent > Hope it helps, > -Vincent > >> >> not working either (with and without 'px'): >> (% style="height:25px;width:25px" %) >> [[image:img.png>>http://xwiki.org]] >> >> and >> (% style="height:25px;width:25px" >> [[image:img.png>>http://xwiki.org]] >> %) >> >> Hmmm... Once again I may not see the obvious ... >> How can I do it ? >> >> Thanks >> >> Andreas ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] syntax nuances
Hi Andreas, On Jan 6, 2011, at 10:59 AM, Andreas Hahn wrote: > Seems I haven't yet understood all the nuances of XWiki syntax: > > According to http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax > > I can have a sized image with [[image:img.png||width="25" height="25"]] > I can have an image with a link [[image:img.png>>http://xwiki.org]] > > How can I have a sized image with a link ? > not working: > [[image:img.png||width="25" height="25">>http://xwiki.org]] not correct > [[image:img.png>>http://xwiki.org||width="25" height="25"]] not correct either You need: image:img.png||width="25" height="25"]]>>http://xwiki.org]] Hope it helps, -Vincent > > not working either (with and without 'px'): > (% style="height:25px;width:25px" %) > [[image:img.png>>http://xwiki.org]] > > and > (% style="height:25px;width:25px" > [[image:img.png>>http://xwiki.org]] > %) > > Hmmm... Once again I may not see the obvious ... > How can I do it ? > > Thanks > > Andreas ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] syntax nuances
Seems I haven't yet understood all the nuances of XWiki syntax: According to http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax I can have a sized image with [[image:img.png||width="25" height="25"]] I can have an image with a link [[image:img.png>>http://xwiki.org]] How can I have a sized image with a link ? not working: [[image:img.png||width="25" height="25">>http://xwiki.org]] [[image:img.png>>http://xwiki.org||width="25" height="25"]] not working either (with and without 'px'): (% style="height:25px;width:25px" %) [[image:img.png>>http://xwiki.org]] and (% style="height:25px;width:25px" [[image:img.png>>http://xwiki.org]] %) Hmmm... Once again I may not see the obvious ... How can I do it ? Thanks Andreas ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users