Editing
EQ/howtohelp/Creating an item tooltip
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Using the #Lucy Parser Function == So there is this '''Parser Function''' called '''#Lucy''', you know it is a parser function, because it begins with #. So basically a '''Parser Function''', is a template that begins its name with #. What does the '''Parser Function''', '''#Lucy''' do? All it does is translates An item name to an item ID and product the wiki code to generate an item tooltip for the named item. It does this by figuring out the Lucy Item ID. So pick '''ANY ITEM IN THE GAME'''. Say ''Singing Short Sword''. Or something like ''Greater Terrormote''. Lets see the code to make those work. <pre> * {{#Lucy: Singing Short Sword}} * {{#Lucy: Greater Terrormote}} </pre> Copy and paste produces: * {{#Lucy: Singing Short Sword}} * {{#Lucy: Greater Terrormote}} Seems to work pretty well. What happens if the Parser Function fails to look up the name? Well this can happen for a few reasons. But generally it is pretty smart about it. Contact [[User:Zoycite]] about it. However there is an alternative called the '''Item''' template. In a nutshell the Item template is used to link to arbitrary item id's and display any text you like. '''What you should have learned so far''': # How to recognize a Parser Function # How to use the #Lucy Parser Function # There is an advanced template named '''Item''' to link to arbitrary items
Summary:
Please note that all contributions to zoywiki.com are considered to be released under the Attribution-Noncommercial-Share Alike 3.0 Unported (see
zoywiki.com:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
zoywiki.com
Main Page
Recent Changes
Game
Age4
Archived Games
Community
Admin Discussion
Zoywiki Tutorials
Random Page
Tools
What links here
Related changes
Special pages
Page information