Template:RecursiveChem/General: Difference between revisions

Documentation rewrite
(Created page with "<noinclude><div style='font-size: 140%; text-align: center;'>Hello! This is the general thingy to make hover thingy!</div> You just need to type whatever you want to pop out...")
 
(Documentation rewrite)
 
Line 1: Line 1:
<noinclude><div style='font-size: 140%; text-align: center;'>Hello! This is the general thingy to make hover thingy!</div>
<noinclude>
== About ==
Use this group of templates which will add a hovertext to recipe-ingredients when used with [[Template:Tooltip]]. Used in articles like [[Guide to Drinks]] and [[Guide to Chemistry]].


Here is the [https://wiki.yogstation.net/index.php?title=Special%3APrefixIndex&prefix=RecursiveChem%2F&namespace=10 full list of templates].


You just need to type whatever you want to pop out when you hover your cursor over the word. Thus, hoverthingy.
== Parameter-Usage ==
None


For example you want to hoverthingy [[Bicaridine|Bicaridine]], you need to simply type<br>  
== How to create ==
<nowiki>"1 part Carbon <br>1 part Oxygen<br>1 part Sugar<br>"</nowiki> in the required [[Template:RecursiveChem/Bicaridine|one]] and you are set.
Here is an example of how to create a template for the imaginary ingredient '''Love'''
# Create a new template [[Template:RecursiveChem/Love]]
# Enter your recipe
## '''Simple:''' <code><nowiki>1 part Carbon <br>1 part Oxygen<br>1 part Sugar<br></nowiki></code>
## '''Complex(aka recursive):''' <code><nowiki>1 part Ethanol<br>1 part {{Tooltip|[[#Charcoal|Charcoal]]|{{RecursiveChem/Charcoal}}}}<br>1 part Copper<br></nowiki></code>
# Save
# Use with <code><nowiki>{{Tooltip|What is Love?|{{RecursiveChem/Love}}}}</nowiki></code>


== Examples ==
=== Bicaridine ===
<pre><nowiki>{{Tooltip|'''Hover here to be amazed'''|{{RecursiveChem/Bicaridine}}}}</nowiki></pre>
{{Tooltip|'''Hover here to be amazed'''|{{RecursiveChem/Bicaridine}}}}


<div style='font-size: 110%; text-align: center;'>Now that you have made the template, it's time to add it to a page!</div>
[[Category:Templates]]
 
 
The catch is that you need to type this: <nowiki>{{Tooltip|Bicaridine|{{RecursiveChem/Bicaridine}}}}</nowiki><br>
and you are going to get this! {{Tooltip|'''Hover here to be amazed'''|{{RecursiveChem/Bicaridine}}}}
 
</noinclude>
</noinclude>
<noinclude>[[Category:Templates]]</noinclude>
1,133

edits