Help: Difference between revisions

No edit summary
link to Yaron's book
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
For a printed reference on MediaWiki, get Yaron Koren's book ''"[http://workingwithmediawiki.com/ Working With MediaWiki]"''
A fully free online version is at http://workingwithmediawiki.com/book/
{{Template:Categorypage|Help}}
{{Template:Categorypage|Help}}


Line 28: Line 32:


=== Images ===
=== Images ===
<nowiki>[[Image:foo.jpg]]</nowiki> produces an image  You must first upload the image.  You can not embed external images, with the notable exception that you CAN use 1.5 million images available in the commons project.
<nowiki>[[Image:foo.jpg]]</nowiki> produces an image  You must first upload the image.  You can not embed external images, with the notable exception that you CAN use 1.5 million images available in the commons project.
<nowiki>[[Media:foo.pdf]]</nowiki> would produce a link to a pdf document, so
<nowiki>[[Media:foo.pdf]]</nowiki> would produce a link to a pdf document, so
<nowiki>[[Media:Ejbdesignpatterns.pdf]]</nowiki> produces a link to http://freephile.com/wiki/images/6/6d/Ejbdesignpatterns.pdf
<nowiki>[[Media:Ejbdesignpatterns.pdf]]</nowiki> produces a link to http://freephile.com/wiki/images/6/6d/Ejbdesignpatterns.pdf
* [[mw:Help:Images]]
* [[mw:Help:Images]]


== Using External Editors ==
== Using External Editors ==
Line 56: Line 47:


=== Linked Images ===
=== Linked Images ===
By default, this system is configured to show an image and link to it's description page.  Sometimes, you want to use an image to link to a page of your choice.  There are [[mw:Help:Linked_images| many ways to make mediawiki link images]], but the most convenient that we settled on here is to use the [[mw:Extension:Icon|Icon extension]]
By default, when you show an image in mediawiki, it links to it's description page.  Sometimes, you want to use an image to link to a page of your choice.  Starting in v. 1.14 you can link to an article by using the <code>link=</code> attribute in your image.  See [[mw:Manual:Linked_images| many ways to make mediawiki link images]]
The syntax (described at [[Icons]]) is
<pre>
{{#icon: Info.png|Info|24|floatright|Special:Help}}
</pre>
 
To get your image to float left or right, wrap the
 
 
 
 
<nowiki>{{#icon}}</nowiki> in a div with the appropriate class like so:
 
 
 
 
<nowiki><div class="floatright">{{#icon}}</div></nowiki> Although I modified the Icon extension to be able to specify a class in the icon tag itself, the extension now reveals some weaknesses that make me want to change to the LinkedImage extension http://www.mediawiki.org/wiki/Extension:LinkedImage