User:GuyPerfect/Lua: Difference between revisions

From Inkipedia, the Splatoon wiki
(Proof of concept gear infobox)
m (Displaying wikitext)
Line 1: Line 1:
__NOTOC__
=== Invocation ===
=== Invocation ===
  <nowiki>{{#invoke:GuyPerfect|gear
  <nowiki>{{#invoke:GuyPerfect|gear
Line 13: Line 14:
=== Output ===
=== Output ===
{{#invoke:GuyPerfect|gear
{{#invoke:GuyPerfect|gear
|game=S2
|category=Clothing
|name=Octo Tee
|brand=Cuttlegear
|ability=Haunt
|cost=8,888
|splatnet2=13,332
|rarity=3
}}
=== Wikitext ===
{{#invoke:GuyPerfect|gear|nowiki=true
|game=S2
|game=S2
|category=Clothing
|category=Clothing

Revision as of 01:58, 16 April 2021

Invocation

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

Output

Script error: The function "gear" does not exist.

Wikitext

Script error: The function "gear" does not exist.

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
}