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(' | 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 = ' | local viewLink, talkLink, editLink = 'view', 'talk', 'edit' | ||
if args.mini then | if args.mini then | ||
viewLink, talkLink, editLink = ' | viewLink, talkLink, editLink = 'v', 't', 'e' | ||
end | end | ||
local div = HtmlBuilder.create( 'div' ) | local div = HtmlBuilder.create( 'div' ) | ||
div | div | ||
.addClass( 'plainlinks' ) | .addClass( 'plainlinks' ) | ||
.addClass( 'hlist' ) | .addClass( 'hlist' ) | ||
| Zeile 97: | Zeile 96: | ||
.wikitext( '[[' .. mainpage .. '|' ) | .wikitext( '[[' .. mainpage .. '|' ) | ||
.tag( 'span ' ) | .tag( 'span ' ) | ||
.attr( 'title', ' | .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', ' | .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', ' | .attr( 'title', 'Edit this template' ) | ||
.cssText( args.fontstyle or '' ) | .cssText( args.fontstyle or '' ) | ||
.wikitext( editLink ) | .wikitext( editLink ) | ||