Changes between Version 5 and Version 6 of WikiFormatting


Ignore:
Timestamp:
May 4, 2024, 8:28:50 PM (2 years ago)
Author:
MasterQuestionable
Comment:

Usage example of "[[Image( ... )]]". Hint.

Legend:

Unmodified
Added
Removed
Modified
  • WikiFormatting

    v5 v6  
    159159|| `ticket:1, ticket:1#comment:1, comment:1:ticket:1` ||\
    160160|| ticket:1, ticket:1#comment:1, comment:1:ticket:1 ||
    161 || `Ticket [ticket:1]`, `[ticket:1 ticket one]` ||\
    162 || Ticket [ticket:1], [ticket:1 ticket one] ||
    163 || `Ticket [[ticket:1]]`, `[[ticket:1|ticket one]]` ||\
    164 || Ticket [[ticket:1]], [[ticket:1|ticket one]] ||
     161|| `Ticket [ticket:1]`, `[ticket:1 ticket one]` ||\
     162|| Ticket [ticket:1], [ticket:1 ticket one] ||
     163|| `Ticket [[ticket:1]]`, `[[ticket:1|ticket one]]` ||\
     164|| Ticket [[ticket:1]], [[ticket:1|ticket one]] ||
    165165|-----------------------------------------------------------
    166166{{{#!th rowspan=2
     
    182182|| `{{{-}}}` triple curly brackets ||
    183183|-----------------------------------------------------------
    184 ||= [#Images Images] =|| `[[Image(`''link''`)]]` || [[Image(htdocs:../common/trac_logo_mini.png)]] ||
     184||= [#Images Images] =|| `[[Image( ... )]]` || [[Image( "/chrome/common/trac_logo_mini.png" )]] ||
    185185|-----------------------------------------------------------
    186186{{{#!th rowspan=2
     
    691691  ...
    692692
    693   Point2:  [=#point2] Jump here
     693  Point2: [=#point2] Jump here
    694694  }}}
    695695}}}
     
    699699  ...
    700700
    701   Point2:  [=#point2] Jump here
     701  Point2: [=#point2] Jump here
    702702}}}
    703703
     
    717717Various forms of escaping for list markup:
    718718 ^^- escaped minus sign \\
    719  ^^1. escaped number  \\
     719 ^^1. escaped number \\
    720720 ^^* escaped asterisk sign
    721721  }}}
     
    727727Various forms of escaping for list markup:
    728728 ^^- escaped minus sign \\
    729  ^^1. escaped number  \\
     729 ^^1. escaped number \\
    730730 ^^* escaped asterisk sign
    731731}}}
     
    735735Urls ending with `.png`, `.gif` or `.jpg` are no longer automatically interpreted as image links, and converted to `<img>` tags.
    736736
    737 You now have to use the ![[Image]] macro. The simplest way to include an image is to upload it as attachment to the current page, and put the filename in a macro call like `[[Image(picture.gif)]]`.
     737You now have to use the ![[Image]] macro. The simplest way to include an image is to upload it as attachment to the current page, and put the filename in a macro call like `[[Image( "picture.gif" )]]`.
    738738
    739739In addition to the current page, it is possible to refer to other resources:
    740  * `[[Image(wiki:WikiFormatting:picture.gif)]]` (referring to attachment on another page)
    741  * `[[Image(ticket:1:picture.gif)]]` (file attached to a ticket)
    742  * `[[Image(htdocs:picture.gif)]]` (referring to a file inside the [TracEnvironment environment] `htdocs` directory)
    743  * `[[Image(source:/trunk/trac/htdocs/trac_logo_mini.png)]]` (a file in repository)
    744 
    745 ||= Wiki Markup =||= Display =||
    746 {{{#!td
    747   {{{
    748   [[Image(htdocs:../common/trac_logo_mini.png)]]
    749   }}}
    750 }}}
    751 {{{#!td
    752 [[Image(htdocs:../common/trac_logo_mini.png)]]
    753 }}}
    754 
    755 See WikiMacros for further documentation on the `[[Image()]]` macro, which has several useful options (`title=`, `link=`, etc.)
     740* `[[Image( "wiki:WikiFormatting:picture.gif" )]]` (referring to attachment on another page)
     741* `[[Image( "ticket:1:picture.gif" )]]` (file attached to a ticket)
     742* `[[Image( "htdocs:picture.gif" )]]` (referring to a file inside the [TracEnvironment environment] `htdocs` directory)
     743* `[[Image( "source:/trunk/trac/htdocs/trac_logo_mini.png" )]]` (a file in repository)\\
     744  See also: https://github.com/orgs/community/discussions/108088#discussioncomment-8678990
     745
     746||= Wiki Markup =||= Display =||
     747{{{#!td
     748  {{{
     749  [[Image( "htdocs:../common/trac_logo_mini.png" )]]
     750  }}}
     751}}}
     752{{{#!td
     753[[Image( "htdocs:../common/trac_logo_mini.png" )]]
     754}}}
     755
     756͏    See [/wiki/WikiMacros#Image-macro WikiMacros] for further documentation on "`[[Image( ... )]]`" macro: which has several useful options ("title", "link" etc.).\\
     757͏    Bunch mentioned in "`[[Image( ... )]]`" are invalid. Use with caution.\\
     758͏    Note also: https://trac.ffmpeg.org/ticket/10928
     759
     760Examples:\\
     761͏    https://trac.ffmpeg.org/wiki/Scaling?action=diff&contextlines=5&old_version=30&version=34\\
     762͏    It's recommended to quote the source URI: as which might contain "," that may cause misinterpretation of the macro.
    756763
    757764== Macros
     
    805812  }}}
    806813}}}
    807 {{{#!td valign="top"  style="border: 0px"
     814{{{#!td valign="top" style="border: 0px"
    808815
    809816{{{#!html
     
    831838  }}}
    832839}}}
    833 {{{#!td valign="top"  style="border: 0px"
     840{{{#!td valign="top" style="border: 0px"
    834841
    835842{{{#!python
     
    880887  }}}
    881888}}}
    882 {{{#!td  valign="top" style="border: 0px"
     889{{{#!td valign="top" style="border: 0px"
    883890
    884891  {{{#!th rowspan=4 align=justify