Difference between revisions of "Template:ItemPicture"

From Fallen Sword Wiki
Jump to: navigation, search
(Created page with "<includeonly>http://huntedcow.cachefly.net/fs/items/{{{1}}}.gif</includeonly><noinclude> {| width="100%" ! ''Code'' ! ''Output'' |- | width="75%" style="border:1px solid #aaa;...")
 
Line 1: Line 1:
 
<includeonly>http://huntedcow.cachefly.net/fs/items/{{{1}}}.gif</includeonly><noinclude>
 
<includeonly>http://huntedcow.cachefly.net/fs/items/{{{1}}}.gif</includeonly><noinclude>
 +
{{Warningbox
 +
|Title=Do not edit this page unless Fallen Sword image urls change!
 +
|Text=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.
 +
|Width=50%
 +
}}
 +
 +
 +
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==
 +
'''[[Template:ItemPicture|ItemPicture]]'''
 
{| width="100%"
 
{| width="100%"
 
! ''Code''
 
! ''Code''
 
! ''Output''
 
! ''Output''
 
|-
 
|-
| width="75%" style="border:1px solid #aaa;" | <pre>{{ItemPicture|1}}</pre>
+
| width="75%" style="border:1px solid #aaa;" | 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:<pre>http://huntedcow.cachefly.net/fs/items/1.gif</pre>We take the number that appears before the '''.gif''', in this case '''1''', and enter after the vertical line '''|'''<pre>{{ItemPicture|1}}</pre> 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.
 
| width="25%" style="border:1px solid #aaa;" | {{ItemPicture|1}}
 
| width="25%" style="border:1px solid #aaa;" | {{ItemPicture|1}}
 +
|}
 +
 +
'''[[Template:CreaturePicture|CreaturePicture]]'''
 +
{| width="100%"
 +
! ''Code''
 +
! ''Output''
 +
|-
 +
| width="75%" style="border:1px solid #aaa;" | This is to be used in an identical manner to [[Template:ItemPicture]] above but is designed to work only with creatures.<pre>{{CreaturePicture|http://huntedcow.cachefly.net/fs/creatures/949610a34059d501ebc4df7a942429ffce2.jpg}}</pre>
 +
| width="25%" style="border:1px solid #aaa;" | {{CreaturePicture|http://huntedcow.cachefly.net/fs/creatures/949610a34059d501ebc4df7a942429ffce2.jpg}}
 
|}
 
|}
  
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 09:58, 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|http://huntedcow.cachefly.net/fs/creatures/949610a34059d501ebc4df7a942429ffce2.jpg}}
949610a34059d501ebc4df7a942429ffce2.jpg.png