Difference between revisions of "Template:Item"

From Project Alfheim Wiki
Jump to navigation Jump to search
alfheim>Resplendent
 
(adding slots to template:item)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{plainlink |url={{database}}/item-info/{{#sub: {{{id}}}|0|{{#pos:{{{id}}}| }}}}/ {{#sub:{{{id}}}|{{#pos:{{{id}}}| }}}}}}</includeonly><noinclude>==Description==
+
<includeonly>{{plainlink |url={{database}}item_db&ird=1&item_id={{#sub: {{{id}}}|0|{{#pos:{{{id}}}| }}}} {{#sub:{{{id}}}|{{#pos:{{{id}}}| }}}} {{ #if:{{{slots|}}} | [{{{slots}}}&#93; }}}}</includeonly><noinclude>==Description==
This template serves the purpose of shortening linkings to [{{database}}/item-info/ iRO Wiki Pre-Renewal DB View Item] for the ease of article overview when editing and consistency.
+
This template serves the purpose of shortening linkings to the [{{database}}item_db&ird=1&item_id= RMS Item DB] for the ease of article overview when editing and consistency.
  
 
====Usage====
 
====Usage====
<nowiki>{{item |id=</nowiki>''<id>''<nowiki> </nowiki>''<name>''<nowiki>}}</nowiki>
+
<pre>{{item |id=<id> <name>}}
 +
{{Item |id=<id> <name> |slots=<slots>}}</pre>
  
 
{| class="wikitable"
 
{| class="wikitable"
 
  ! Example !! Output
 
  ! Example !! Output
 
  |-
 
  |-
  | <nowiki>{{item |id=7015 Memory Bookmark}}</nowiki>  
+
  | <nowiki>{{item |id=7015 Bookclip in Memory}}</nowiki>  
|| {{item |id=7015 Memory Bookmark}}
+
|| {{item |id=7015 Bookclip in Memory}}
 +
|-
 +
| <nowiki>{{item |id=1568 Book of Billows |slots=3}}</nowiki>
 +
|| {{item |id=7015 Bookclip in Memory |slots=3}}
 
|}
 
|}
  
Line 17: Line 21:
 
|-
 
|-
 
  | name || The text to appear in the link.
 
  | name || The text to appear in the link.
 +
|-
 +
| slots || The number of slots in the item.
 
|}
 
|}
  

Latest revision as of 04:48, 29 December 2024

Description

This template serves the purpose of shortening linkings to the RMS Item DB for the ease of article overview when editing and consistency.

Usage

{{item |id=<id> <name>}}
{{Item |id=<id> <name> |slots=<slots>}}
Example Output
{{item |id=7015 Bookclip in Memory}} Bookclip in Memory
{{item |id=1568 Book of Billows |slots=3}} Bookclip in Memory [3]

Fields

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

See Also