]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FImages
END OF DOCUMENT
[SourceForge/phpwiki.git] / pgsrc / Help%2FImages
1 Date: Tue, 11 Jan 2011 13:48:05 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
3 X-Rcs-Id: $Id$
4 Content-Type: application/x-phpwiki;
5   pagename=Help%2FImages;
6   flags=PAGE_LOCKED%2CEXTERNAL_PAGE;
7   markup=2;
8   charset=UTF-8
9 Content-Transfer-Encoding: binary
10
11 You can easily **use images in the wiki**.
12
13 == Uploaded images ==
14
15 First, image files need to be uploaded in the wiki. For that purpose, you will use the
16 [[Help:UpLoadPlugin|UpLoad]] plugin.
17
18 === Toolbar ===
19
20 Once the image is uploaded, the easiest way to insert it is to use the toolbar.
21
22 Click on the {{/themes/default/images/ed_image.png}} icon and you will be shown a list
23 of available images.
24
25 Select an image and click //Insert//. The image will be inserted without options or alternative text.
26
27 === Syntax ===
28
29 You give access to the uploaded image with the following syntax.
30
31 {{{
32 {{myimage.png}}
33 }}}
34 or
35 {{{
36 [[Upload:myimage.png]]
37 }}}
38 will inline the image.
39
40 {{{
41 {{myimage.png|this is the alt text for my image}}
42 }}}
43 inlines the image with an alternative text.
44
45 {{{
46 [[some link|{{myimage.png}}]]
47 }}}
48 if you click on the image, will goto "some link"
49
50 {{{
51 [[some link|{{myimage.png|alt text}}]]
52 }}}
53 same with alternative
54
55 {{{
56 [[http://example.com/|{{myimage.png}}]]
57 }}}
58 same as above: picture links to url
59
60 {{{
61 [[http://example.com/|{{myimage.png|alt text}}]]
62 }}}
63 same with alternative
64
65 {{{
66 Upload:myimage.png
67 }}}
68 shows a plain link
69
70 {{{
71 [[Upload:myimage.png | my image]]
72 }}}
73 shows the image under a link named "my image".
74
75 For Mediawiki compatibility, the keyword {{{Upload:}}} can be replaced by {{{File:}}} or {{{Image:}}}.
76
77 === Options ===
78
79 Using the {{{Upload:}}} syntax, options are allowed to change the appearance:
80 {{{
81 [[Upload:myimage.png size=40x25 align=center]]
82 }}}
83
84 Separate options by spaces. The allowed options are the following:
85 * size: ''width "x" height'' or ''num + "%"''
86 * align: ''string''
87 * border: ''number''
88 * hspace: ''number''
89 * vspace: ''number''
90
91 == URL images ==
92
93 You can also use "external" images by providing a URL.
94
95 In that case, you simply put the URL between double brackets:
96 {{{
97 [[http://phpwiki.svn.sourceforge.net/viewvc/phpwiki/trunk/themes/default/images/poweredby_phpwiki_51x31.png]]
98 }}}
99 will give:
100
101 [[http://phpwiki.svn.sourceforge.net/viewvc/phpwiki/trunk/themes/default/images/poweredby_phpwiki_51x31.png]]
102
103 == See Also ==
104 * [[Help:Adobe Flash]]
105 * [[Help:VideoPlugin]]
106 * [[Help:Wikicreole]]
107
108 <noinclude>
109 ----
110 [[PhpWikiDocumentation]]
111 </noinclude>