Template:ItemPicture

From Fallen Sword Wiki
Revision as of 20:50, 1 December 2013 by Krip7or (Talk | contribs)

Jump to: navigation, search
Ambox_content.png Do not edit this page unless Fallen Sword image URLs change!
If you would like to make a customized version of this template for your own use, copy it to a new template and edit from there. Editing this page may cause the template to stop working properly for the numerous other pages currently using this template.


These templates allow for easy editing of image links in case the URLs change again. The following codes are to be used in place of an image URL. There are separate URLs and thus separate codes for items and creatures. To use these templates, copy one of the following codes to the image section of a template and fill in the item or creature number. See examples below:

Variations

ItemPicture

Code Output
This template contains the item image URL so only the item number is needed. The item number appears in the URL directly before the .gif ending. Let's look at the following URL for example:
http://huntedcow.cachefly.net/fs/items/1.gif
We take the number that appears before the .gif, in this case 1, and enter after the vertical line |
{{ItemPicture|1}}
This is to be used instead of the link in case The Cows make a directory change in the furture. The item will then appear like the one we see to the right.
1.gif


CreaturePicture

Code Output
This is to be used in an identical manner to Template:ItemPicture above but is designed to work with creatures. This time, the item number appears in the URL directly before the .jpg ending. URL Example:
http://huntedcow.cachefly.net/fs/creatures/1.jpg
For creatures always take the number from the URL that appears before the .jpg, in this case it is 1. Now enter that number after the vertical line |
{{CreaturePicture|1}}
The item will then appear like the one we see to the right.
1.png