Difference between revisions of "Template:Pictures"
From Fallen Sword Wiki
Ashgaerath (Talk | contribs) |
|||
(7 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>http:// | + | <includeonly>http://cdn.fallensword.com/{{{1}}}</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%" | ||
+ | ! ''Code'' | ||
+ | ! ''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 '''.gif''' ending. Let's look at the following URL for example:<pre>http://cdn.fallensword.com/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}} |
− | | | + | |
− | + | ||
|} | |} | ||
− | |||
+ | |||
+ | |||
+ | '''[[Template:CreaturePicture|CreaturePicture]]''' | ||
{| width="100%" | {| width="100%" | ||
! ''Code'' | ! ''Code'' | ||
! ''Output'' | ! ''Output'' | ||
|- | |- | ||
− | | width="75%" style="border:1px solid #aaa;" | <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;" | {{ | + | | width="25%" style="border:1px solid #aaa;" | {{CreaturePicture|1}} |
|} | |} | ||
[[Category:Templates|{{PAGENAME}}]] | [[Category:Templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Latest revision as of 21:48, 9 February 2018
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
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.com/items/1.gifWe 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. |
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.jpgFor 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. |