User:GuyPerfect/Lua: Difference between revisions

From Inkipedia, the Splatoon wiki
(Proof of concept gear infobox)
m (commenting out Lua invocation errors; function 'gear' doesn't exist in the module.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
=== Invocation ===
=== Invocation ===
  <nowiki>{{#invoke:GuyPerfect|gear
  <nowiki>{{#invoke:GuyPerfect|gear
Line 8: Line 9:
|cost=8,888
|cost=8,888
|splatnet2=13,332
|splatnet2=13,332
|rarity=3
|stars=3
}}</nowiki>
}}</nowiki>


=== Output ===
=== Output ===
<!--
{{#invoke:GuyPerfect|gear
{{#invoke:GuyPerfect|gear
|game=S2
|game=S2
Line 20: Line 22:
|cost=8,888
|cost=8,888
|splatnet2=13,332
|splatnet2=13,332
|rarity=3
|stars=3
}}
}}
-->
=== Wikitext ===
<!--
{{#invoke:GuyPerfect|gear|nowiki=true
|game=S2
|category=Clothing
|name=Octo Tee
|brand=Cuttlegear
|ability=Haunt
|cost=8,888
|splatnet2=13,332
|stars=3
}}
-->


=== Module ===
=== Module ===
[[Module:GuyPerfect]]
[[Module:GuyPerfect]]
{{#tag:pre|{{Module:GuyPerfect}}}}
{{#tag:pre|{{Module:GuyPerfect}}}}

Latest revision as of 16:18, 4 September 2023

Invocation

{{#invoke:GuyPerfect|gear
|game=S2
|category=Clothing
|name=Octo Tee
|brand=Cuttlegear
|ability=Haunt
|cost=8,888
|splatnet2=13,332
|stars=3
}}

Output

Wikitext

Module

Module:GuyPerfect

function Infobox(frame)
	local ret = ""
	for k,v in frame:argumentPairs() do
		ret = ret .. k .. " = " .. v .. "<br>"
	end
	return ret
end

-- Module
return {
    infobox = Infobox
}