Extension:LogoFunctions/fi

Category:GPL licensed extensions/fi
MediaWikin laajennukset-ohje
LogoFunctions
Julkaisustatus: vakaaCategory:Stable extensions/fi
Toteutus Jäsennintoiminto Category:Parser function extensions/fi
Kuvaus Adds a parser function about the wiki's logo
Tekijä(t) JuneHyeon Bae (*devuntkeskustelu)
Viimeisin versio 2.0 (2019-09-15)
MediaWiki 1.31+Category:Extensions with manual MediaWiki version
PHP 7.0+
Tietokantamuutokset Ei
Lisenssi GNU General Public License 2.0 tai myöhempi
Lataa Category:Extensions in Wikimedia version control/fi
  • $wgNamespaceLogos
Quarterly downloads 1 (Ranked 95th)
Voit kääntää LogoFunctions-laajennuksen mikäli se on saatavilla translatewiki.netissä
Ongelmat Avoimet tehtävät · Raportoi ongelmasta
Category:All extensions/fi

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

This extension was broken for several years. Use master or respectively the versions for MediaWiki 1.34 and later once available to install it.
  • Lataa ja siirrä purettu kansio nimeltä LogoFunctions extensions/-kansioosi.
    Kehittäjien ja koodipaikkauksia tekevien tahojen tulisi asentaa laajennos git-versionhallintaohjelmaa käyttäen:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LogoFunctions
  • Lisää seuraava koodi LocalSettings.php -tiedostosi loppuosaan:
    wfLoadExtension( 'LogoFunctions' );
    
  • Määritä tarvittaessa.
  • Yes Tehty – Mene wikisi sivulle Special:Version vahvistaaksesi, että laajennoksen asennus onnistui.

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.

Do not use namespace constants but namespace numbers for configuration since the former will not work. See T232952 for further information.
Category:All extensions/fi Category:BeforePageDisplay extensions/fi Category:Extensions in Wikimedia version control/fi Category:Extensions included in Miraheze/fi Category:Extensions included in WikiForge/fi Category:Extensions with manual MediaWiki version Category:GPL licensed extensions/fi Category:ParserFirstCallInit extensions/fi Category:Parser function extensions/fi Category:Stable extensions/fi