Difference between revisions of "Template:Item4"

From JellyRO Wiki
Jump to: navigation, search
(Created page with "[[File:Item {{{Name}}}.gif|link=]]<span class="plainlinks">url=http://cp.jellyro.com/item_new/view/?id={{{id}}} {{{Name}}}</span> <noinclude>This template serves the purpose...")
 
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:Item {{{Name}}}.gif|link=]]<span class="plainlinks">url=http://cp.jellyro.com/item_new/view/?id={{{id}}} {{{Name}}}</span>
+
<includeonly>http://cp.jellyro.com/data/items/icons/{{{id}}}.png{{plainlink|url=http://cp.jellyro.com/item_new/view/?id={{{id}}} {{{name}}}}}</includeonly><noinclude>
 
+
<noinclude>This template serves the purpose of shortening linkings to the Item DB with an image.
+
 
+
 
====Usage====
 
====Usage====
 
  <nowiki>{{Item4|id=</nowiki>''<id>''<nowiki>|name=</nowiki>''<name>''<nowiki>}}</nowiki>
 
  <nowiki>{{Item4|id=</nowiki>''<id>''<nowiki>|name=</nowiki>''<name>''<nowiki>}}</nowiki>
 
 
{| class="wikitable"
 
{| class="wikitable"
 
  ! Example !! Output
 
  ! Example !! Output
 
  |-
 
  |-
  | <nowiki>{{itemDB|id=7015|name=Bookclip in Memory}}</nowiki>  
+
  | <nowiki>{{item4|id=7015|name=Bookclip in Memory}}</nowiki>  
 
|| {{Item4|id=7015|name=Bookclip in Memory}}
 
|| {{Item4|id=7015|name=Bookclip in Memory}}
 
|}
 
|}
 
 
====Fields====
 
====Fields====
 
{| class="wikitable" style="text-align: left"
 
{| class="wikitable" style="text-align: left"
Line 19: Line 14:
 
  | name || The text to appear in the link.
 
  | name || The text to appear in the link.
 
|}
 
|}
 
+
[[Category:Templates]]</noinclude><noinclude>[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>
+
 
+
<noinclude>[[Category:Templates]]</noinclude>
+

Latest revision as of 01:10, 25 April 2018

Usage

{{Item4|id=<id>|name=<name>}}
Example Output
{{item4|id=7015|name=Bookclip in Memory}} 7015.pngBookclip in Memory

Fields

id The ID of the item as seen in the itemdesctables.
name The text to appear in the link.