Changes

Jump to navigation Jump to search
7 bytes added ,  12:02, 6 March 2017
Line 263: Line 263:  
</gallery>
 
</gallery>
   −
Captions for the gallery can also be added with <code>caption</code> inside the <code><gallery></code> tag:
+
Captions for the gallery can also be added with <code>caption</code> inside the <nowiki> <gallery> </nowiki> tag:
    
<source lang="xml">
 
<source lang="xml">
 
<gallery caption="Sample gallery" widths="180px" heights="120px" >
 
<gallery caption="Sample gallery" widths="180px" heights="120px" >
File:Wiki.png
+
File:Example.png
File:Wiki.png|Captioned
+
File:Example.png|Captioned
File:Wiki.png|Captioned with alt text|alt=The Wikipedia logo
+
File:Example.png|Captioned with alt text|alt=The Wikipedia logo
File:Wiki.png|[[Help:Contents/Links|Links]] can be put in captions.
+
File:Example.png|[[Help:Contents/Links|Links]] can be put in captions.
File:Wiki.png|Full [[MediaWiki]] <br/>[[syntax]] may now be used...
+
File:Example.png|Full [[MediaWiki]] <br/>[[syntax]] may now be used...
 
</gallery>
 
</gallery>
 
</source>
 
</source>
Line 278: Line 278:     
<gallery caption="Sample gallery" widths="180px" heights="120px" >
 
<gallery caption="Sample gallery" widths="180px" heights="120px" >
File:Wiki.png
+
File:Example.png|Captioned
File:Wiki.png|Captioned
+
File:Example.png|Captioned with alt text|alt=The Wikipedia logo
File:Wiki.png|Captioned with alt text|alt=The Wikipedia logo
+
File:Example.png|[[TOER wiki help|Links]] can be put in captions.
File:Wiki.png|[[Help:Contents/Links|Links]] can be put in captions.
+
File:Example.png|Full MediaWiki <br/> syntax may now be used...
File:Wiki.png|Full [[MediaWiki]] <br/>[[syntax]] may now be used...
   
</gallery>
 
</gallery>
  

Navigation menu