Extension:LogoFunctions/da
LogoFunctions Release status: stabil |
|
---|---|
Implementation | Parser function |
Beskrivelse | Adds a parser function about the wiki's logo |
Forfatter(e) | JuneHyeon Bae (*devuntdiskussion) |
Latest version | 2.0 (2019-09-15) |
MediaWiki | 1.31+ |
PHP | 7.0+ |
Database changes | Nej |
Licens | GNU General Public License 2.0 or later |
Download | |
|
|
Quarterly downloads | 6 (Ranked 128th) |
Translate the LogoFunctions extension if it is available at translatewiki.net | |
Issues | Open tasks · Report a bug |
The LogoFunctions extension adds parser functions to override or add stamps to the wiki's logo.
Anvendelse
#setlogo
{{#setlogo:ExampleLogo.png}}
Sæt logo til at være [[File:ExampleLogo.png]]
#stamplogo
{{#stamplogo:Featured.png|190px|top|-1em|-1em}}
This adds a featured article stamp to the logo ([[File:Featured.png]]
), 190px wide, -1em from the left, -1em from the top, as seen on uncyclopedia:Page title.
top
or bottom
options can be used, for up to two stamps applied to the logo on a page.
Installering
- Download and move the extracted
LogoFunctions
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LogoFunctions - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'LogoFunctions' );
- Configure as required.
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Configuration
This extension can be used to set per-namespace logos via configuration by mapping a namespace number to a file available on the wiki:
$wgNamespaceLogos = [
6 => 'Uncyclomedia Commons.png',
7 => 'Uncyclomedia Commons.png',
];
The above code added to your "LocalSettings.php" file will set the specified files as logos for the "File" and "File talk" namespace. For these in particular, do remember to protect the files and also to mark them as used to prevent them from being deleted.
This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |