Difference between revisions of "Template:Pictures"

From Fallen Sword Wiki
Jump to: navigation, search
 
(7 intermediate revisions by one user not shown)
Line 1: Line 1:
<includeonly>http://huntedcow.cachefly.net/fs/items/{{{1}}}.gif</includeonly><noinclude>
+
<includeonly>http://cdn.fallensword.com/{{{1}}}</includeonly><noinclude>
<center>
+
{{Warningbox
{| width="100%" style="border:3px dashed #f00;"
+
|Title=Do not edit this page unless Fallen Sword image URLs change!
| align="center" valign="middle" style="font-family:Verdana;font-variant:small-caps;font-weight:bold;" | Do not edit this page!
+
|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''
 
|-
 
|-
| align="center" valign="middle" style="font-family:Verdana;font-weight:normal;" |  
+
| 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.
<small>If you need to customize this template to fit your own needs, copy the code into a fresh template and work from there. If you think this template needs changed, mention it on the [[Talk:{{PAGENAME}}|Talk Page]].</small>
+
| width="25%" style="border:1px solid #aaa;" | {{ItemPicture|1}}
|-
+
| align="center" valign="middle" style="font-family:Verdana;font-variant:small-caps;font-weight:bold;" | Editing this page may cause the template to stop working properly for other pages currently using this template.
+
 
|}
 
|}
</center>
 
  
 +
 +
 +
'''[[Template:CreaturePicture|CreaturePicture]]'''
 
{| width="100%"
 
{| width="100%"
 
! ''Code''
 
! ''Code''
 
! ''Output''
 
! ''Output''
 
|-
 
|-
| width="75%" style="border:1px solid #aaa;" | <pre>{{Picture|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;" | {{Picture|1}}
+
| 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

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.com/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