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>")
 
(Blanked the page)
Tag: Blanking
 
(65 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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>

Latest revision as of 19:25, 15 December 2024