Extension:LogoFunctions
LogoFunctions Release status: stable |
|
---|---|
Implementation | Parser function |
Description | Adds a parser function about the wiki's logo |
Author(s) | JuneHyeon Bae (*devunttalk) |
Latest version | 2.0 (2019-09-15) |
MediaWiki | 1.31+ |
PHP | 7.0+ |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | |
|
|
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
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.
Usage
#setlogo
{{#setlogo:ExampleLogo.png}}
This sets the logo to file [[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.
Installation
- <translate> [[<tvar name=2>Special:ExtensionDistributor/LogoFunctions</tvar>|Download]] and move the extracted <tvar name=name>
LogoFunctions
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LogoFunctions - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'LogoFunctions' );
- Configure as required.
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
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.
File:OOjs UI icon information-progressive.svg | <translate> This extension is included in the following wiki farms/hosts and/or packages:</translate>
<translate> This is not an authoritative list.</translate> <translate> Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.</translate> <translate> Always check with your wiki farms/hosts or bundle to confirm.</translate> |
- Pages with script errors
- Pages with broken file links
- Stable extensions
- Extensions without an image
- Parser function extensions
- Extensions without a compatibility policy
- Extensions with manual MediaWiki version
- GPL licensed extensions
- Extensions in Wikimedia version control
- BeforePageDisplay extensions
- ParserFirstCallInit extensions
- All extensions