Modul:Navbar: Unterschied zwischen den Versionen

Does not work, now hidden in MediaWiki:Print.css
Keine Bearbeitungszusammenfassung
(Does not work, now hidden in MediaWiki:Print.css)
Zeile 1: Zeile 1:
local p = {}
local p = {}


local HtmlBuilder = require('Modul:HtmlBuilder')
local HtmlBuilder = require('Module:HtmlBuilder')


function trim(s)
function trim(s)
Zeile 57: Zeile 57:
     local editurl = title:fullUrl( 'action=edit' );  
     local editurl = title:fullUrl( 'action=edit' );  
   
   
     local viewLink, talkLink, editLink = 'ansehen', 'diskutieren', 'bearbeiten'
     local viewLink, talkLink, editLink = 'view', 'talk', 'edit'
     if args.mini then
     if args.mini then
         viewLink, talkLink, editLink = 'a', 'd', 'b'
         viewLink, talkLink, editLink = 'v', 't', 'e'
     end
     end
   
   
     local div = HtmlBuilder.create( 'div' )
     local div = HtmlBuilder.create( 'div' )
     div
     div
        .addClass( 'noprint' )
         .addClass( 'plainlinks' )
         .addClass( 'plainlinks' )
         .addClass( 'hlist' )
         .addClass( 'hlist' )
Zeile 97: Zeile 96:
             .wikitext( '[[' .. mainpage .. '|' )
             .wikitext( '[[' .. mainpage .. '|' )
             .tag( 'span ' )
             .tag( 'span ' )
                 .attr( 'title', 'Ansehen' )
                 .attr( 'title', 'View this template' )
                 .cssText( args.fontstyle or '' )
                 .cssText( args.fontstyle or '' )
                 .wikitext( viewLink )
                 .wikitext( viewLink )
Zeile 107: Zeile 106:
             .wikitext( '[[' .. talkpage .. '|' )
             .wikitext( '[[' .. talkpage .. '|' )
             .tag( 'span ' )
             .tag( 'span ' )
                 .attr( 'title', 'Diskutieren' )
                 .attr( 'title', 'Discuss this template' )
                 .cssText( args.fontstyle or '' )
                 .cssText( args.fontstyle or '' )
                 .wikitext( talkLink )
                 .wikitext( talkLink )
Zeile 119: Zeile 118:
                 .wikitext( '[' .. editurl .. ' ' )
                 .wikitext( '[' .. editurl .. ' ' )
                 .tag( 'span ' )
                 .tag( 'span ' )
                     .attr( 'title', 'Bearbeiten' )
                     .attr( 'title', 'Edit this template' )
                     .cssText( args.fontstyle or '' )
                     .cssText( args.fontstyle or '' )
                     .wikitext( editLink )
                     .wikitext( editLink )
Anonymer Benutzer