01.12.2012 Views

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

188<br />

��<br />

��<br />

��<br />

page, you can <strong>the</strong>n determine that a link to <strong>the</strong> attachment be included<br />

in <strong>the</strong> text. If you are integrating a graphic image, this means<br />

that it will be visible in <strong>the</strong> page view mode at <strong>the</strong> end of <strong>the</strong> article;<br />

<strong>the</strong> following line would be added to <strong>the</strong> source text:<br />

<br />

To place <strong>the</strong> image in ano<strong>the</strong>r spot on <strong>the</strong> page, put <strong>the</strong> line in <strong>the</strong><br />

corresponding spot in <strong>the</strong> source text. By <strong>the</strong> way, you do not necessarily<br />

have to use <strong>the</strong> link function to integrate an image: You can<br />

also manually add <strong>the</strong> above line to <strong>the</strong> source text. As an alternative,<br />

<strong>the</strong> following expression also works:<br />

%ATTACHURL%/image.gif<br />

Images attached to o<strong>the</strong>r pages or even o<strong>the</strong>r webs can be accessed<br />

via<br />

%PUBURL%/webname/pagename/image.gif<br />

12.5<br />

HTML in TWiki<br />

All HTML tags can be used in TWiki. However, in a cooperative<br />

project, you should refrain from doing so when possible and use<br />

TWiki formats instead to keep <strong>the</strong> source text easy to follow and<br />

thus easier to edit. In addition, uniformity in formatting is no longer<br />

ensured if you employ HTML. Remember, too, that <strong>the</strong> text, which<br />

is surrounded by tags, is still interpreted by TWiki and converted by<br />

it to HTML anyway. This could lead to unwanted side effects.<br />

If, however, you do use HTML, you must follow a few rules:<br />

� Keep to <strong>the</strong> standards of HTML 4.0 and XHTML 1.0 as far as<br />

possible, since you would o<strong>the</strong>rwise lose compatibility with<br />

various browsers.<br />

� Refrain from stretching an HTML tag over several lines. The<br />

greater/less-than signs that surround <strong>the</strong> tag must be on <strong>the</strong> same<br />

line.<br />

� Remove all blank lines, since TWiki would o<strong>the</strong>rwise make new<br />

paragraphs out of <strong>the</strong>m, which could pose problems in certain<br />

areas, such as in tables.<br />

12 Formatting in TWiki

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!