请输入您要查询的百科知识:

 

词条 Module:Sandbox/B2project/Style
释义

local pp = {}

function pp.status(Args)

-- Declare status options

-- ------------------------------------------------------------

-- NOTE: If you add to status_code, also add to status_called and status_letters!!

-- Or functionality will be compromised

-- ------------------------------------------------------------

local status_code, status_called = {}

status_code = { E='Eliminated from playoff contention', P='Clinched Presidents Trophy',

X='Clinched playoff spot', Y='Clinched division', Z='Clinched conference'}

status_called = {E=false, P=false, X=false, Y=false, Z=false}

local status_letters = 'EPXYZ'

-- Status position (before or after read and default)

local stat_pos_val = Args['status_pos'] or

local status_position = 'before' -- Default location

stat_pos_val = string.lower(stat_pos_val)

if stat_pos_val=='before' then

status_position = 'before'

elseif stat_pos_val=='after' then

status_position = 'after'

end

return {code=status_code, called=status_called, letters=status_letters, position=status_position}

end

return pp

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/11 10:08:00