Manual:$wgLogos/da

From mediawiki.org
This page is a translated version of the page Manual:$wgLogos and the translation is 35% complete.
Outdated translations are marked like this.
Server URLs and file paths: $wgLogos
URL-stien til forskellige wiki-logoer
Introduced in version:1.35.0 (Gerrit change 562588; git #8cd2e133)
Removed in version:still in use
Allowed values:(vifte af faktorer og relative stier eller webadresser)
Default value:false
(Note: The default value of this variable depends on other variables, such as the values set in Setup.php , after LocalSettings.php is executed)

Detaljer

En matrix med faktorer og deres tilhørende relative stier eller URL-stier til de forskellige versioner af wiki-logoet. (dvs. billedet vist i øverste venstre hjørne af siden i de fleste MediaWiki-installationer).

Understøttede formater

* Ikonet skal være en firkant og bør nominelt være 50x50 pixels hvis SVG, eller 100x100 pixels hvis raster for at understøtte HiDPI.
it should be a square and should be nominally 50×50 pixels if SVG, or 100×100 pixels if raster in order to support HiDPI. SVG anbefales dog. Nuværende support til denne nøgle er begrænset til Skin:Vector , Skin:Timeless , Skin:Refreshed , Skin:Citizen , $2, men dette anbefales til alle nye udseender. Bemærk, at andre udseender typisk kræver et større ikon, hvis de understøtter dette, så det anbefales at bruge en SVG i stedet, da det skaleres korrekt på tværs af dem alle.
* 1x versionen skal være 135px bred og op til ~155px høj.
it should be 135px wide by up to ~155px tall. Dette skyldes, at versionerne 1.5x og 2x antager en nominel bredde på 135px, og op til 155px høje vil passe uden problemer i standardudseender. Dette understøtter ældre udseender og vil på længere sigt blive forældet. Vi anbefaler, at udseender understøtter det foretrukne 'ikon'.
* 1.5x versionen skal være 202px bred og passe til størrelsesforholdet på 1x.
it should 202px wide, matching the aspect ratio of the 1x. (så op til 232px, for 155px nominel højde.) Nøglen vil blive udfaset i fremtiden, og dens brug anbefales ikke.
* 2x versionen skal være 270px bred og passe til størrelsesforholdet på 1x.
it should be 270px wide, matching the aspect ratio of the 1x. (så op til 310px, for 155px nominel højde.) Nøglen vil blive udfaset i fremtiden, og dens brug anbefales ikke.
* Svg versionen erstatter behovet for en 1x, 1.5x og 2x version, men bør følge de samme retningslinjer for nominel størrelse, der passer inden for 135px bredde og 155px højde, når den ændres til 135px i bredden.
it replaces the need for a 1x, 1.5x, and 2x version, but should follow the same nominal size guidelines, fitting within 135px wide and 155px tall when resized to 135px wide. Nøglen vil blive udfaset i fremtiden, og dens brug anbefales ikke.

Der er også to valgfrie felter, hvor yderligere aktiver kan vises ved siden af logoet:

wordmark
it should be a landscape logo, with maximum set width or height, as these are specified under the width and height keys. The width shouldn't exceed 124 and the height shouldn't exceed 32px. Typisk er dette den grafiske version af $wgSitename. Dette bruges Skin:Vector (1.36), Skin:Timeless , Skin:Minerva
tagline
* Det samme gælder for tagline, som typisk svarer til den del, der ikke er sitenavn på MediaWiki:Tagline. The combined height of the tagline and wordmark should not exceed 50px.

Alle værdier (undtagen width og height) kan enten være en fuldt kvalificeret URL eller en relativ sti fra DOCUMENT_ROOT. If it's a relative path, it has to start with a slash (a file in DOCUMENT_ROOT is /file.png, not file.png). I stedet vil billedet blive afskåret, så kun en del af det (det øverste venstre hjørne for at være præcist) vil være synligt. Hvis dette hjørne er helt hvidt, kan det se ud til, at billedet ikke vises, selvom det faktisk gør det.

Example images

Eksempel

$wgLogos = [
	'1x' => "path/to/1x_version.png",		// path to 1x version
	'1.5x' => "path/to/1.5x_version.png",	// path to 1.5x version
	'2x' => "path/to/2x_version.png",		// path to 2x version
	'svg' => "path/to/svg_version.svg",		// path to svg version
	'icon' => "path/to/icon.png",			// A version of the logo without wordmark and tagline
	'wordmark' => [
		'src' => "path/to/wordmark_version.png",	// path to wordmark version
		'1x' => "path/to/wordmark_version.svg",		// optional if you want to support browsers with SVG support with an SVG logo.
		'width' => 135,
		'height' => 20,
	],
	'tagline' => [
		'src' => "path/to/tagline_version.png",		// path to tagline version
		'width' => 135,
		'height' => 15,
	],
];


Simple example

$wgLogos = [
	'1x' => "$wgScriptPath/myCustomLogo.png",			// path to 1x version
	'2x' => "$wgResourceBasePath/hiResLogo.png",		// path to 2x version
];

Example paths

$wgLogos = [
	'1x' => "/logo_1x.png",												// relative path to file in logo folder, 1x version
	'1.5x' => "https://mywiki.org/w/resources/assets/logo_1.5x.png",	// fully qualified URL path to 1.5x version
	'2x' => "/logo_2x.png",												// relative path to 2x version, which always starts with a slash
	//  'svg' => "",													// no svg (deprecated by MW)
	'icon' => "icon.png",												// Limited support, either 50x50 svg or 100x100 png
	'wordmark' =>  [
		'src' => "/wordmark_sitename.png",								// 135px wide image of sitename text, limited support
		'width' => 135,
		'height' => 20,
   ],
	'tagline' => [
         'src' => "/tagline_subtitle.png",								// 135px image to tagline text without sitename
		'width' => 135,
		'height' => 15,
	],
];

Adding logos for language variants

The functionality to override logos for different language variants was introduced in version 1.36.0 (Gerrit change 627939, git #8cd2e133). See T261153.

When defining variants, any language key can be used, for example it is possible to provide a German variant of an English logo.

This was extended to apply to all logo keys in 1.39.0.

$wgLogos = [
	'1x' => "path/to/1x_version.png",		// path to 1x version
	'1.5x' => "path/to/1.5x_version.png",	// path to 1.5x version
	'2x' => "path/to/2x_version.png",		// path to 2x version
	'svg' => "path/to/svg_version.svg",		// path to svg version
	'icon' => "path/to/icon.png",			// A version of the logo without wordmark and tagline
	'wordmark' => [
		'src' => "path/to/wordmark_version.png",	// path to wordmark version
		'1x' => "path/to/wordmark_version.svg",		// optional if you want to support browsers with SVG support with an SVG logo.
		'width' => 135,
		'height' => 20,
	],
	'tagline' => [
		'src' => "path/to/tagline_version.png",		// path to tagline version
		'width' => 135,
		'height' => 15,
	],
	'variants' => [
		'variant-code' => [
			'1x' => "path/to/language_variant_1x_version.png",		// path to 1x version in language variant
			'1.5x' => "path/to/language_variant_1.5x_version.png",	// path to 1.5x version in language variant
			'2x' => "path/to/language_variant_2x_version.png",		// path to 2x version in language variant
			'svg' => "path/to/language_variant_svg_version.svg",	// path to svg version in language variant
			'icon' => "path/to/language_variant_icon.png",			// A version of the logo without wordmark and tagline in language variant
			'wordmark' => [
				'src' => "path/to/language_variant_wordmark_version.png",	// path to wordmark version in language variant
				'1x' => "path/to/language_variant_wordmark_version.svg",	// optional if you want to support browsers with SVG support with an SVG logo in language variant.
				'width' => 135,
				'height' => 20,
			],
		],
	],
];
Forsigtig! Forsigtig: Lad være med at overskrive standardlogoet installeret med MediaWiki (/resources/assets/wiki.png). Filen overskrives automatisk, når du opgraderer, og dine ændringer går tabt.


Se også