Help:Images: Difference between revisions

m
Text replacement - "\|(right|thumb)(\|[^\]\n]+)?\|(right|thumb)" to "|thumb$2"
No edit summary
m (Text replacement - "\|(right|thumb)(\|[^\]\n]+)?\|(right|thumb)" to "|thumb$2")
Line 50: Line 50:
[[File:Destiny-Symbol.png|70px|right]]What is between the last vertical bar and the closing brackets ("]]"), void or not, is taken as the last option, and works as usual. For instance, when the last option is <tt>right</tt>, the image is right-aligned, and text floats to the left: <tt><nowiki>[[File:Destiny-Symbol.png|70px|right]]</nowiki></tt> (shown on the right).
[[File:Destiny-Symbol.png|70px|right]]What is between the last vertical bar and the closing brackets ("]]"), void or not, is taken as the last option, and works as usual. For instance, when the last option is <tt>right</tt>, the image is right-aligned, and text floats to the left: <tt><nowiki>[[File:Destiny-Symbol.png|70px|right]]</nowiki></tt> (shown on the right).


[[File:Destiny-Symbol.png|thumb|This text is not displayed.|70px|left|]][[File:Destiny-Symbol.png|thumb|This text is displayed.|70px|right]]In particular, if the last option is the void text (that is, if there is nothing between the last vertical bar and the closing brackets), the caption is not displayed: <tt><nowiki>[[File:Destiny-Symbol.png|thumb|This text is not displayed.|70px|left|]]</nowiki></tt> (shown on the left) and <tt><nowiki>[[File:Destiny-Symbol.png|thumb|This text is displayed.|70px|right]]</nowiki></tt> (shown on the right).
[[File:Destiny-Symbol.png|thumb|This text is not displayed.|70px|left|]][[File:Destiny-Symbol.png|thumb|This text is displayed.|70px]]In particular, if the last option is the void text (that is, if there is nothing between the last vertical bar and the closing brackets), the caption is not displayed: <tt><nowiki>[[File:Destiny-Symbol.png|thumb|This text is not displayed.|70px|left|]]</nowiki></tt> (shown on the left) and <tt><nowiki>[[File:Destiny-Symbol.png|thumb|This text is displayed.|70px]]</nowiki></tt> (shown on the right).
{{clear}}
{{clear}}


Line 75: Line 75:


===Image with caption in the center===
===Image with caption in the center===
[[File:Destiny-Symbol.png|right|thumb|175px|<center>Destiny symbol.</center>]]
[[File:Destiny-Symbol.png|thumb|175px|<center>Destiny symbol.</center>]]
Use '''<nowiki>[[File:image name|alignment|type|size|<center>Caption</center>]]</nowiki>'''
Use '''<nowiki>[[File:image name|alignment|type|size|<center>Caption</center>]]</nowiki>'''


For example, '''<nowiki>[[File:Destiny-Symbol.png|right|thumb|100px|<center>Destiny symbol</center>]]</nowiki>''' produces a caption in the center .'' However, this syntax is not recommended for long captions (for example, captions involving long, descriptive sentences running more than one line), for which the regular image syntax should be used.'' You can also specify the color of the border, like "border:solid grey".  
For example, '''<nowiki>[[File:Destiny-Symbol.png|thumb|100px|<center>Destiny symbol</center>]]</nowiki>''' produces a caption in the center .'' However, this syntax is not recommended for long captions (for example, captions involving long, descriptive sentences running more than one line), for which the regular image syntax should be used.'' You can also specify the color of the border, like "border:solid grey".  
{{clear}}
{{clear}}