Projekat

Općenito

Profil

Redmine formatiranje sadržaja

Redmine podržava Textile syntaksu za wikije za skoro sve što ima tekstualni opis (issues, news, messages, changesets...).

Links

Redmine links

Redmine allows hyperlinking between issues, changesets and wiki pages from anywhere wiki formatting is used.

Links to issues and changesets

  • Link to an issue: #124 (displays #124, link is striked-through if the issue is closed) #1
  • Link to a changeset: r758 (displays r758)
  • Link to a changeset with a non-numeric hash: commit:"c6f4d0fd" (displays c6f4d0fd). Added in r1236. r5

Wiki links: links

  • [[Guide]] displays a link to the page named 'Guide': Guide
  • [[Guide|User manual]] displays the a link to the same page but with a different text: User manual

You can also link to pages of an other project wiki:

  • [[sandbox:some page]] displays a link to the page named 'Some 'some page' of the Sandbox wiki
  • [[sandbox:]] displays a link to the Sandbox wiki main page

Wiki links are displayed in red if the page doesn't exist yet, yet exist, eg: Nonexistent page.

Links to others resources (0.6.devel.1064 and above):

  • Documents:
  • document#17 (link to document with id 17)
  • document:Greetings (link to the document with title "Greetings")
  • document:"Some document" (double quotes can be used when document title contains spaces)
  • Versions:
  • version#3 (link to version with id 3)
  • version:1.0.0 (link to version named "1.0.0")
  • version:"1.0 beta 2"
  • Attachments:
  • attachment:file.zip (link to the attachment of the current object named file.zip)
  • For now, attachments of the current object can be referenced only (if you're on an issue, it's possible to reference attachments of this issue only) external URL

Escaping (0.6.devel.1064 and above):

  • You can prevent Redmine links from being parsed by preceding them with an exclamation mark: !

External links

HTTP URLs and email addresses are automatically turned into clickable links:

http://www.redmine.org, someone@foo.bar

displays: http://www.redmine.org,

If you want to display a specific text instead of the URL, you can use the standard textile syntax:

"Redmine web site":http://www.redmine.org

displays: Redmine web site

Text formatting

For things such as headlines, bold, tables, lists, Redmine supports Textile syntax. See http://hobix.com/textile/ for information on using any of these features. A few samples are included below, but the engine is capable of much more of that.

Font style

* *bold*
* _italic_
* _*bold italic*_
* +underline+
* -strike-through-

Display:

  • bold
  • italic
  • bold italic
  • underline
  • strike-through

h2. Inline images

  • !image_url! displays an image located at image_url (textile syntax)
  • !>image_url! right floating image
  • If you have an image attached to your wiki page, it can be displayed inline using its filename: !attached_image.png!

Headings

h1. Heading
h2. Subheading
h3. Subheading

Nabrajanje

Nabrajanje bez numeracije

  • stavka ova
    • podstavka stavke ova
    • još jedna podstavka
  • stavka ona

* stavka ova
** podstavka stavke ova
** još jedna podstavka 
* stavka ona

Nabrajanje sa numeracijom

  1. stavka jedan
    1. podstavka stavke jedan
    2. još jedna podstavka
  2. stavka dva
# stavka jedan
## podstavka stavke jedan
## još jedna podstavka 
# stavka dva

Paragraphs

p>. right aligned
p=. centered

This is centered paragraph.
Redmine screenshot

Fiksno formatiran tekst

Ako želimo staviti tekst koji treba biti fiksne širine, npr. želimo staviti sadržaj ponude iz FMK FAKT:

      ------ ----------------------------------------------------------------------- -------- ---------- ------------
       R.br  Trgovacki naziv dobra/usluge (sifra, naziv, jmj)                        kolicina  C.b.PDV    Uk.bez.PDV 
      ------ ----------------------------------------------------------------------- -------- ---------- ------------
          1) OZ - Obrada korisničkog zahtjeva                                             1.0      25.00        25.00
          2) IT - Izlazak na teren kod korisnika                                          1.0      30.00        30.00
          3) TP-ZAV - Troškovi puta, Ze-Zavidovići-Ze (put)                               1.0      30.00        30.00
          4) SP-9 - Servisna podrška: FMK razdvajanje sezona, prenos početnog             1.0      80.00        80.00
             stanja (akt)                                                           
      ------ ----------------------------------------------------------------------- -------- ---------- ------------
                                                                                    Ukupno bez PDV (KM) :      165.00
                                                                                                PDV 17% :       28.05
      ------ ----------------------------------------------------------------------- -------- ---------- ------------
                                                                            ** SVEUKUPNO SA PDV  (KM) :      193.05
      slovima: stotinudevedesettri i 5/100 KM
      ------ ----------------------------------------------------------------------- -------- ---------- ------------

kucamo:

<pre>
      ------ ----------------------------------------------------------------------- -------- ---------- ------------
       R.br  Trgovacki naziv dobra/usluge (sifra, naziv, jmj)                        kolicina  C.b.PDV    Uk.bez.PDV 
      ------ ----------------------------------------------------------------------- -------- ---------- ------------
      ...
      slovima: stotinudevedesettri i 5/100 KM
      ------ ----------------------------------------------------------------------- -------- ---------- ------------
</pre>

Blockquotes

Start the paragraph with bq.

bq. Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern.
To go live, all you need to add is a database and a web server.

Display:

Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern.
To go live, all you need to add is a database and a web server.

Table of content

{{toc}} => left aligned toc
{{>toc}} => right aligned toc

Macros

Redmine has the following builtin macros:

hello_world
Sample macro.
macro_list
Displays a list of all available macros, including description if available.
child_pages
Displays a list of child pages. With no argument, it displays the child pages of the current wiki page. Examples:

{{child_pages}} -- can be used from a wiki page only
{{child_pages(depth=2)}} -- display 2 levels nesting only
{{child_pages(Foo)}} -- lists all children of page Foo
{{child_pages(Foo, parent=1)}} -- same as above with a link to page Foo
include
Includes a wiki page. Examples:

{{include(Foo)}}
{{include(projectname:Foo)}} -- to include a page of a specific project wiki
collapse
Inserts of collapsed block of text. Examples:

{{collapse
This is a block of text that is collapsed by default.
It can be expanded by clicking a link.
}}

{{collapse(View details...)
With custom link text.
}}
thumbnail
Displays a clickable thumbnail of an attached image.
Default size is 200 pixels. Examples:

{{thumbnail(image.png)}}
{{thumbnail(image.png, size=300, title=Thumbnail)}} -- with custom title and size
issue
Displays an issue link including additional information. Examples:

{{issue(123)}}                              -- Issue #123: Enhance macro capabilities
{{issue(123, project=true)}}                -- Andromeda - Issue #123: Enhance macro capabilities
{{issue(123, tracker=false)}}               -- #123: Enhance macro capabilities
{{issue(123, subject=false, project=true)}} -- Andromeda - Issue #123

Code highlighting

Code highlightment relies on CodeRay, a fast syntax highlighting library written completely in Ruby. It currently supports c, html, javascript, rhtml, ruby, scheme, xml languages.

You can highlight code in your wiki page using this syntax:

<pre><code class="ruby">
Place you code here.
</code></pre>

Example:

# The Greeter class
class Greeter
def initialize(name)
@name = name.capitalize
end

def salute
puts "Hello #{@name}!" 
end
end

Slike

Kada dodamo fajl slike npr. "logo.jpg" prikazujemo ga ovako:

!logo.jpg!