Difference between revisions of "Template:CreaturePicture"

From Fallen Sword Wiki
Jump to: navigation, search
(Created page with "<includeonly>http://huntedcow.cachefly.net/fs/creatures/{{{1}}}.jpg</includeonly><noinclude> {{Warningbox |Title=Do not edit this page unless Fallen Sword image urls change! |...")
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>http://huntedcow.cachefly.net/fs/creatures/{{{1}}}.jpg</includeonly><noinclude>
+
<includeonly>{{Pictures|creatures/{{{1}}}.png}}</includeonly><noinclude>
 
{{Warningbox
 
{{Warningbox
|Title=Do not edit this page unless Fallen Sword image urls change!
+
|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.
 
|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%
 
|Width=50%
Line 7: Line 7:
  
  
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:
+
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==
 
==Variations==
Line 15: Line 15:
 
! ''Output''
 
! ''Output''
 
|-
 
|-
| 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="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 '''.gif''' ending. Let's look at the following URL for example:<pre>http://cdn.fallensword.coms/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 a directory change in the furture. 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]]'''
 
'''[[Template:CreaturePicture|CreaturePicture]]'''
Line 24: Line 26:
 
! ''Output''
 
! ''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|1}}</pre>
+
| 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 with creatures. This time, the item number appears in the URL directly before the '''.jpg''' ending. URL Example:<pre>http://cdn.fallensword.com/creatures/1.jpg</pre>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 '''|'''<pre>{{CreaturePicture|1}}</pre>The item will then appear like the one we see to the right.
 
| width="25%" style="border:1px solid #aaa;" | {{CreaturePicture|1}}
 
| width="25%" style="border:1px solid #aaa;" | {{CreaturePicture|1}}
 
|}
 
|}

Latest revision as of 08:27, 10 November 2021

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://cdn.fallensword.coms/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://cdn.fallensword.com/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