Help:Images: Difference between revisions

Jump to navigation Jump to search
m
Tagged code.
(Created page with "Adding images to Portal Wiki is a great way to enhance the content of an article. Here are some basics on how to use and format images. Image use is regulated by our [[Help:Image...")
 
m (Tagged code.)
Line 1: Line 1:
Adding images to Portal Wiki is a great way to enhance the content of an article. Here are some basics on how to use and format images. Image use is regulated by our [[Help:Image guidelines|Image use policy]].  
Adding '''images''' to The Portal Wiki is a great way to enhance the content of an article. Here are some basics on how to use and format images. Image use is regulated by our [[Help:Image guidelines|Image use policy]].  


==Uploading images==
==Uploading images==
Line 27: Line 27:
   [[Image:{file_name}|{options}]]
   [[Image:{file_name}|{options}]]
Where options can be zero or more of the following, separated by pipes:
Where options can be zero or more of the following, separated by pipes:
* ''border'', ''frame'', ''thumb'', or ''frameless'': Controls how the image is formatted
* <code>border</code>, <code>frame</code>, <code>thumb</code>, or <code>frameless</code>: Controls how the image is formatted
* ''left'', ''right'', ''center'', ''none'': Controls the alignment of the image within a text
* <code>left</code>, <code>right</code>, <code>center</code>, <code>none</code>: Controls the alignment of the image within a text
* ''baseline'', ''sub'', ''super'', ''top'', ''text-top'', ''middle'', ''bottom'', ''text-bottom'': Controls the vertical alignment of the image within a text
* <code>baseline</code>, <code>sub</code>, <code>super</code>, <code>top</code>, <code>text-top</code>, <code>middle</code>, <code>bottom</code>, <code>text-bottom</code>: Controls the vertical alignment of the image within a text
* ''{width} px'': Resizes the image to the given width in pixels
* <code>{width}px</code>: Resizes the image to the given width in pixels
* ''{width}x{height}px'': Resizes the image to fit within the given width and height in pixels; it is possible to specify only the height by writing ''x{height}px''
* <code>{width}x{height}px</code>: Resizes the image to fit within the given width and height in pixels; it is possible to specify only the height by writing <code>x{height}px</code>
** ''Note that the image will always retain its aspect ratio.''
** ''Note that the image will always retain its aspect ratio.''
*  ''link={destination}'': Allows to link to an article or URL, e.g. <code><nowiki>[[</nowiki>Image:Name.jpg|20px|link=Help:Images]]</code> ? [[Image:Logo.png|20px|link=Help:Images]].
*  ''link={destination}'': Allows to link to an article or URL; '''e.g.''' <code><nowiki>[[Image:Name.jpg|20px|link=Help:Images]]</nowiki></code> [[Image:Logo.png|20px|link=Help:Images]].
** ''link= '': Will display an image without link.
** <code>link=</code>: Will display an image without link.
** ''Note that ''link'' cannot be used in conjunction with ''thumb'' as thumb is always meant to link to the larger version of the image. In addition, ''link'' cannot be used with ''frame''.''
** ''Note that <code>link</code> cannot be used in conjunction with <code>thumb</code> as thumb is always meant to link to the larger version of the image. In addition, <code>link</code> cannot be used with <code>frame</code>.''
* ''alt={alternative text}'': For changing the alternative text (''alt=""'') of an image.
* <code>alt={alternative text}</code>: For changing the alternative text (<code>alt=""</code>) of an image.


The options can be given in any order. If the given options conflict each other, the latter is applied, except for the format options, where the options take the priority in the order of ''frame'', ''thumb'', and ''frameless'' and/or ''border''. If a given option does not match any of the other possibilities, it is assumed to be the caption text. Caption text can contain wiki links or other formatting.
The options can be given in any order. If the given options conflict each other, the latter is applied, except for the format options, where the options take the priority in the order of <code>frame</code>, <code>thumb</code>, and <code>frameless</code> and/or <code>border</code>. If a given option does not match any of the other possibilities, it is assumed to be the caption text. Caption text can contain wiki links or other formatting.


== Format ==
== Format ==
Line 151: Line 151:


== Stopping text flow ==
== Stopping text flow ==
On occasion it is desirable to stop text from flowing around an image. Depending on the web browser's screen resolution and such, text flow on the right side of an image may cause a section header (for instance, <nowiki>== My Header ==</nowiki>) to appear to the right of the image, instead of below it, as a user may expect. The text flow can be stopped by placing '''<nowiki><br style="clear: both" /></nowiki>''' before the text that should start after the image.
On occasion it is desirable to stop text from flowing around an image. Depending on the web browser's screen resolution and such, text flow on the right side of an image may cause a section header (for instance, <code>== My Header ==</code>) to appear to the right of the image, instead of below it, as a user may expect. The text flow can be stopped by placing <code><br style="clear: both" /></code> before the text that should start after the image.


== Links ==
== Links ==
Line 176: Line 176:
[[{{ns:media}}:Wiki-logo.png|Wiki Logo]]
[[{{ns:media}}:Wiki-logo.png|Wiki Logo]]


== List of Files in Portal Wiki ==
== List of Files in The Portal Wiki ==
There are a number of special pages to help you view and manage files which have been uploaded. Go to “{{int:specialpages}}” (in the {{lcfirst:{{int:toolbox}}}} on the left) and then see...
There are a number of special pages to help you view and manage files which have been uploaded. Go to “{{int:specialpages}}” (in the {{lcfirst:{{int:toolbox}}}} on the left) and then see...


Line 184: Line 184:


== See also ==
== See also ==
*[[Help:Image guidelines]] - Image guidelines for Portal Wiki
*[[Help:Image guidelines]] - Image guidelines for The Portal Wiki
*[[:Category:Images]] - Main image category, sub categories should be filed under this.
*[[:Category:Images]] - Main image category, sub categories should be filed under this.


{{NS HELP navbar}}
{{NS HELP navbar}}
Moderators
452

edits

Navigation menu