m (s) |
m (s) |
||
Line 19: | Line 19: | ||
function p.bar(frame) |
function p.bar(frame) |
||
local div = mw.html.create('div') |
local div = mw.html.create('div') |
||
+ | div:addClass("stein-box-inner-color") |
||
− | |||
div:cssText([[ |
div:cssText([[ |
||
− | background:#9a7753; |
+ | /*background:#9a7753;*/ |
− | color:#fff; |
+ | /*color:#fff;*/ |
padding:5px; |
padding:5px; |
||
margin:5px; |
margin:5px; |
||
− | box-shadow:0 0 0 3px rgb(38, 33, 25); |
+ | /*box-shadow:0 0 0 3px rgb(38, 33, 25);*/ |
border-radius:3px; |
border-radius:3px; |
||
− | border:2px solid rgba(38, 24, 8, 0.4); |
+ | /*border:2px solid rgba(38, 24, 8, 0.4);*/ |
display:flex; |
display:flex; |
||
flex-flow:row wrap; |
flex-flow:row wrap; |
Revision as of 01:19, 5 June 2021
Documentation for this module may be created at Module:Navbar/doc
local p = {}
local name = {'Items', 'Regions', 'Dungeons', 'Quests', 'NPCs', 'Enemies', 'Professions', 'Game<br />Mechanics', 'Character<br />Classes', 'FAQ', 'Community'}
local picture = {
'warrior_t_1-5_1_c.png',
'shortcuts_button_map.png',
'Icon_death_skull_quickbar.png',
'shortcuts_button_questlog.png',
'shortcuts_button_hub.png',
'mob.png',
'shortcuts_button_professions.png',
'shortcuts_button_options.png',
'shortcuts_button_stats.png',
'fragezeichen.png',
'button_chat.png'
}
local link = {'Items', 'Regions', 'Dungeons', 'Quests', 'NPC', 'Enemies', 'Professions', 'Game_Mechanics', 'Character_classes', 'FAQ', 'Special:Community'}
function p.bar(frame)
local div = mw.html.create('div')
div:addClass("stein-box-inner-color")
div:cssText([[
/*background:#9a7753;*/
/*color:#fff;*/
padding:5px;
margin:5px;
/*box-shadow:0 0 0 3px rgb(38, 33, 25);*/
border-radius:3px;
/*border:2px solid rgba(38, 24, 8, 0.4);*/
display:flex;
flex-flow:row wrap;
justify-content:space-evenly;
]])
for i=1,11 do
div = div:tag('div')
div:addClass('item')
div:addClass('p-killer')
div:cssText([[
display:flex;
flex-flow:column nowrap;
align-items:center;
margin-right:5px;
]])
div = div:tag('div')
div:addClass("item-box-colors")
div:cssText([[
float:left;
display:inline-block;
/* These fellas really don't belong here
width:48px;
height:48px;*/
visibility:visible;
/*color:#262119; */
user-select:none;
padding:0px;
/*background-color:#dbbb83;*/
/*border: 2px solid #eddca0; */
border-radius:3px;
position:relative;
/*box-shadow:0px 0px 0 2px #262119; */
margin:2px;
margin-bottom:5px;
]])
div:wikitext('[[File:'..picture[i]..'|link='..link[i]..']]')
div = div:done()
div = div:tag('div')
div:addClass('stein-text-border')
div:cssText([[
margin-top:2px;
margin-bottom:5px;
text-align:center;
color: white;
]])
div:wikitext('[['..link[i]..'|'..name[i]..']]')
div = div:done()
div = div:done()
end
div = div:allDone()
return tostring(div)
end
return p