Module:Navbox: Difference between revisions
missed an option
m>Dragons flight (hmmm, not my smartest moment) |
m>Dragons flight (missed an option) |
||
Line 162: | Line 162: | ||
.wikitext( ']]' ); | .wikitext( ']]' ); | ||
if args.mini ~= nil then | if args.noedit == nil then | ||
if args.mini ~= nil then | |||
inner = 'e'; | |||
else | |||
inner = 'edit'; | |||
end | |||
ul.tag( 'li' ) | |||
.addClass( 'nv-edit' ) | |||
.wikitext( '[' .. editurl .. ' ' ) | |||
.tag( 'span ' ) | |||
.attr( 'title', 'Edit this template' ) | |||
.cssText( args.fontstyle or '' ) | |||
.wikitext( inner ) | |||
.done() | |||
.wikitext( ']' ); | |||
end | end | ||
if args.brackets ~= nil then | if args.brackets ~= nil then | ||
div.tag('span') | div.tag('span') |