<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.geministation.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ATooltip</id>
	<title>Module:Tooltip - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.geministation.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ATooltip"/>
	<link rel="alternate" type="text/html" href="https://wiki.geministation.com/index.php?title=Module:Tooltip&amp;action=history"/>
	<updated>2026-06-04T04:34:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.geministation.com/index.php?title=Module:Tooltip&amp;diff=2206&amp;oldid=prev</id>
		<title>Banri: Created page with &quot;local p = {}  local yn = require(&#039;Module:Yesno&#039;) local hc = require(&#039;Module:Paramtest&#039;).has_content   -- module access point for div p._div = function(args) 	local name = args...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.geministation.com/index.php?title=Module:Tooltip&amp;diff=2206&amp;oldid=prev"/>
		<updated>2020-02-19T16:53:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  local yn = require(&amp;#039;Module:Yesno&amp;#039;) local hc = require(&amp;#039;Module:Paramtest&amp;#039;).has_content   -- module access point for div p._div = function(args) 	local name = args...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
local yn = require(&amp;#039;Module:Yesno&amp;#039;)&lt;br /&gt;
local hc = require(&amp;#039;Module:Paramtest&amp;#039;).has_content&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- module access point for div&lt;br /&gt;
p._div = function(args)&lt;br /&gt;
	local name = args.name&lt;br /&gt;
	if not hc(name) then&lt;br /&gt;
		error(&amp;#039;Name is required!&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local content = args.content&lt;br /&gt;
	local hasarrow = yn(args.arrow or &amp;#039;yes&amp;#039;, true)&lt;br /&gt;
	local arrowsize = tonumber(args.arrowsize) or 10&lt;br /&gt;
	local limitwidthbool = yn(args.limitwidth or &amp;#039;yes&amp;#039;, true)&lt;br /&gt;
	local style = args.style&lt;br /&gt;
	&lt;br /&gt;
	local div = mw.html.create(&amp;#039;div&amp;#039;)&lt;br /&gt;
	&lt;br /&gt;
	local arrow = &amp;#039;no&amp;#039;&lt;br /&gt;
	if hasarrow then&lt;br /&gt;
		arrow = &amp;#039;yes&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local limitwidth = &amp;#039;no&amp;#039;&lt;br /&gt;
	if limitwidthbool then&lt;br /&gt;
		limitwidth = &amp;#039;yes&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local attrs = {&lt;br /&gt;
		[&amp;#039;data-tooltip-for&amp;#039;] = name,&lt;br /&gt;
		[&amp;#039;data-tooltip-arrow&amp;#039;] = arrow,&lt;br /&gt;
		[&amp;#039;data-tooltip-arrow-size&amp;#039;] = arrowsize,&lt;br /&gt;
		[&amp;#039;data-tooltip-limit-width&amp;#039;] = limitwidth,&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	if hc(style) then&lt;br /&gt;
		attrs[&amp;#039;data-tooltip-style&amp;#039;] = style&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	div	:addClass(&amp;#039;hidden js-tooltip-wrapper&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;display&amp;#039;, &amp;#039;none&amp;#039;)&lt;br /&gt;
		:attr(attrs)&lt;br /&gt;
		:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
			:addClass(&amp;#039;js-tooltip-text&amp;#039;)&lt;br /&gt;
			:wikitext(content)&lt;br /&gt;
			:done()&lt;br /&gt;
		:done()&lt;br /&gt;
	&lt;br /&gt;
	return div&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p._span = function(args)&lt;br /&gt;
	local name = args.name or args[1] or nil&lt;br /&gt;
	if not hc(name) then&lt;br /&gt;
		error(&amp;#039;Name is required!&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
	local alt = args.alt or args[2] or &amp;#039;?&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	local span = mw.html.create(&amp;#039;span&amp;#039;)&lt;br /&gt;
	&lt;br /&gt;
	span:addClass(&amp;#039;hidden js-tooltip-click&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;display&amp;#039;, &amp;#039;none&amp;#039;)&lt;br /&gt;
		:attr(&amp;#039;data-tooltip-name&amp;#039;, name)&lt;br /&gt;
		:wikitext(alt)&lt;br /&gt;
		:done()&lt;br /&gt;
	&lt;br /&gt;
	return span&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- template access points&lt;br /&gt;
p.div = function(frame)&lt;br /&gt;
	return p._div(frame:getParent().args)&lt;br /&gt;
end&lt;br /&gt;
p.span = function(frame)&lt;br /&gt;
	return p._span(frame:getParent().args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Banri</name></author>
	</entry>
</feed>