WikiMap Help Redirect Images
From TI3Wiki.org
Contents |
Expanding/Replacing Piece Images
Usage
{{#mapImgRedirect:Img=<wikimap image URL>|Redirect=<new url>}}
OR
{{#mapImgRedirect:
Multi=
<wikimap image URL>
<new URL>
...
<wikimap image URL>
<new URL>
}}
Redirect code should be placed in your pbems include page. For any tile that needs to display redirects, should be specified as the first command.
Parameters
Img (Default)
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.
Redirect
Required. New URL to redirect wikimap image URL to (specified by Img parameter). Note that the replacement/expansion image must still be the exact dimensions of the original image type and must also be a GIF image file. JPEG does not support transparency and Internet Explorer does not display transparency in PNG correctly. Any empty areas of the image must be set as transparent.
Examples
Replace Images for Tile Abyz-Fria (hosting images on any site)
- Create image Abyz-Fria.gif
- Create 50% and 25% zoom versions of Abyz-Fria.gif
- Upload images to any hosting site.
Placed in your pbems include page:
{{#mapImgRedirect:Img=http://www.ti3wiki.org/wikimap/1/Tile-Abyz-Fria.gif
|Redirect=http://www.someothersite.com/Abyz-Fria_100.gif}}
{{#mapImgRedirect:Img=http://www.ti3wiki.org/wikimap/0.5/Tile-Abyz-Fria.gif
|Redirect=http://www.someothersite.com/Abyz-Fria_50.gif}}
{{#mapImgRedirect:Img=http://www.ti3wiki.org/wikimap/0.5/Tile-Abyz-Fria.gif
|Redirect=http://www.someothersite.com/Abyz-Fria_25.gif}}
OR
{{#mapImgRedirect:
Multi=
http://www.ti3wiki.org/wikimap/1/Tile-Abyz-Fria.gif
http://www.someothersite.com/Abyz-Fria_100.gif
http://www.ti3wiki.org/wikimap/0.5/Tile-Abyz-Fria.gif
http://www.someothersite.com/Abyz-Fria_50.gif
http://www.ti3wiki.org/wikimap/0.5/Tile-Abyz-Fria.gif
http://www.someothersite.com/Abyz-Fria_25.gif
}}
Add Expansion Images for Tile HS-Atreides (hosting images on tiwiki.org)
- Create image HS-Atreides.gif
- Create 50% and 25% zoom versions of HS-Atreides.gif
- Upload images to wiki. See How to upload images to wiki
- Discover wiki image URLs. See How to discover wiki image URL
Placed in code for your pbems include page:
{{#mapImgRedirect:Img=http://www.ti3wiki.org/wikimap/1/Tile-HS-Atreides.gif
|Redirect=http://www.ti3wiki.org/images/f/ff/HS-Atreides-Scale-100.gif}}
{{#mapImgRedirect:Img=http://www.ti3wiki.org/wikimap/0.5/Tile-HS-Atreides.gif
|Redirect=http://www.ti3wiki.org/images/0/00/HS-Atreides-Scale-50.gif}}
{{#mapImgRedirect:Img=http://www.ti3wiki.org/wikimap/0.25/Tile-HS-Atreides.gif
|Redirect=http://www.ti3wiki.org/images/8/8a/HS-Atreides-Scale-25.gif}}
OR
{{#mapImgRedirect:
Multi=
http://www.ti3wiki.org/wikimap/1/Tile-HS-Atreides.gif
http://www.ti3wiki.org/images/f/ff/HS-Atreides-Scale-100.gif
http://www.ti3wiki.org/wikimap/0.5/Tile-HS-Atreides.gif
http://www.ti3wiki.org/images/0/00/HS-Atreides-Scale-50.gif
http://www.ti3wiki.org/wikimap/0.25/Tile-HS-Atreides.gif
http://www.ti3wiki.org/images/8/8a/HS-Atreides-Scale-25.gif
}}

