Difference between revisions of "Template:Pictures"

From Fallen Sword Wiki
Jump to: navigation, search
Line 18: Line 18:
 
| width="25%" style="border:1px solid #aaa;" | {{ItemPicture|1}}
 
| width="25%" style="border:1px solid #aaa;" | {{ItemPicture|1}}
 
|}
 
|}
 +
 +
  
 
'''[[Template:CreaturePicture|CreaturePicture]]'''
 
'''[[Template:CreaturePicture|CreaturePicture]]'''

Revision as of 10:00, 1 December 2013

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 .jpg or .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 another change. 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 only with creatures.
{{CreaturePicture|1}}
1.png