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