User:Imahero/test: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#invoke:imahero|hello}}
<span class='onlysod' style='display:none;'>Shadow of Death</span>
<span class='onlyhota' style='display:none;'>Horn of the Abyss</span>
 
{{#explode:5/3|/|0}}
{{#explode:5/3|/|1}}
 
{{#invoke:imahero|hello|name=imahero}}


{{#invoke:imahero/test|test}}
{{#invoke:imahero/test|test}}
Line 10: Line 16:
{{#invoke:imahero/test|arrow|direction=right}}
{{#invoke:imahero/test|arrow|direction=right}}


<syntaxhighlight lang="lua" line='line'>
{{#invoke:keywords|count_fruit|bananas=2|apples=1}}.
local p = {} --p stands for package
 
function p.test( frame )
    return frame
end
 
langObject = mw.getLanguage( 'simple' )
 
function p.language( frame )
    return langObject:getCode()
end
 
function p.arrow( frame )
    return langObject:getArrow( frame.args.direction )
end
 
return p
</syntaxhighlight>

Latest revision as of 04:34, 25 January 2024

5 3

Hello imahero!

User:Imahero/test

simple

↑ ↓ ← →

I have 2 bananas and 1 apple.