Difference between revisions of "Template:CreaturePicture"
From Fallen Sword Wiki
Lusterless (Talk | contribs) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{Pictures|creatures/{{{1}}}. | + | <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! | ||
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 '''.gif''' ending. Let's look at the following URL for example:<pre>http:// | + | | 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}} | ||
|} | |} | ||
Line 26: | 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 with creatures. This time, the item number appears in the URL directly before the '''.jpg''' ending. URL Example:<pre>http:// | + | | 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
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.coms/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. |
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.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. |