Vorlage:Image mapper: Unterschied zwischen den Versionen

CamNet - das Wiki
imported>Oetterer
K (Schützte „Vorlage:Image mapper“: Automatic protection of selected project pages ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt)))
Keine Bearbeitungszusammenfassung
 
Zeile 1: Zeile 1:
<!-- Start your template code here. for tipps and tools for template development, please refer to our help-section -->{{#if:{{{1|}}}|<!-- there is an image name (supposedly) as first parameter. map -->{{{1}}}{{#invoke:Util|globalFileExtension}}|<!-- first parameter is emtpy. generate broken image -->Paramter1 to "Template:Image mapper" missing{{#invoke:Util|globalFileExtension}}}}<!--Last line of your template code--><noinclude>
<!-- Start your template code here. for tipps and tools for template development, please refer to our help-section -->{{#if:{{{1|}}}|<!-- there is an image name (supposedly) as first parameter. map -->{{{1}}}{{#invoke:Util|globalFileExtension}}|<!-- first parameter is emtpy. generate broken image -->Paramter1 to "Template:Image mapper" missing}}<!--Last line of your template code--><noinclude>
{{documentation}}
{{documentation}}
<!-- Add categories to the /doc subpage, not here! -->
<!-- Add categories to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Aktuelle Version vom 11. November 2023, 12:28 Uhr

Paramter1 to "Template:Image mapper" missing

Documentation icon Template documentation

Description

Takes the name of an image and returns the full file name with the correct extension. With this, you can upload images as svg and png and have this template "give" you the correct file name for your project environment.

This can be used to have a png alternative for projects wanting to support old browsers.

Configuration of the used file extension is done in {{#invoke:Util|globalFileExtension}}.

Parameters

Description of the entity created by this template or of the function of this template

Vorlagenparameter

ParameterBeschreibungTypStatus
Image name w/o extension1

Here you supply the name of the image, you whish to have mapped to the corrent image extension.

Standard
Parameter1 to &quot;Template:Image mapper&quot; missing
Einzeiliger Texterforderlich

Usage

<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-0">Skriptfehler: Die Funktion „unstrip“ ist nicht vorhanden.</span></strong>

Gives AnonEditWarning.svg