Template:Reputation Table/Item: Difference between revisions

Template page
(Created page with "<noinclude> this is a test </noinclude><includeonly>local p = {} function p.rep_bar(frame) -- Get the value from the parameter local value = tonumber(frame.args.value) or 0 -- Default to 0 if no value is provided -- Return "positive" for values greater than or equal to 0, and "negative" for values less than 0 if value >= 0 then return "positive" else return "negative" end end return p </includeonly>")
 
mNo edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
this is a test
this is a test
</noinclude><includeonly>local p = {}
</noinclude><includeonly>
function p.rep_bar(frame)
{{test|hello}}
-- Get the value from the parameter
local value = tonumber(frame.args.value) or 0  -- Default to 0 if no value is provided
-- Return "positive" for values greater than or equal to 0, and "negative" for values less than 0
if value >= 0 then
return "positive"
else
return "negative"
end
end
return p
</includeonly>
</includeonly>

Revision as of 04:11, 15 December 2024

this is a test