Help:WikiMap2:Redirect Images
From TI3Wiki.org
Contents |
Expanding/Replacing Piece Images
Usage
<redirect scale=# image="[wikimap image URL]" redirect="[new URL]"/>
Adding new images for the entire wiki
Place this tag in the wiki text for the image being redirected. The redirection now creates a "symbolic link" between the wiki image and the wikimap image to ensure that the image can be accessed without the need for included redirects in the map AND ensures that if there are any updates to the wiki image, it is updated in the wikimap image as well.
Overriding existing file images for only one map
Redirect code should be placed in the global section of your map data page. The global section of the map data page is automatically included for any map tag rendering the map data page or for any preview edit.
Parameters
image
Required. Specifies the exact wikimap URL to redirect. Note that image redirection only affects the current page and will NOT cause other wikimaps to be rendered incorrectly. The image to redirect need not exist to be redirected. Redirecting an image that does not exist in the wikimap library allows for expansion of images. To find a particular wikimap image URL see WikiMap Image URL Scheme.
If "http://" is not included in the URL, "http://www.ti3wiki.org/wikimap/$scale" will be prepended to the URL. $scale is set by setting the scale setting
redirect
Adding new images for the entire wiki
Leave blank if placed within an image's page.
Overriding existing file images for only one map
Required when placed in a map page. New URL to redirect wikimap image URL to (specified by image parameter).
Note on image types: JPEG does not support transparency and Internet Explorer < version 7 does not display transparency in PNG correctly. Any empty areas of the image must be set as transparent.
scale
Optional. Used to set $scale for substitution when "http://www.ti3wiki.org/wikimap/$scale" is prepended to the URL.



















