Zeile 2: | Zeile 2: | ||
<!-- Categories go at the bottom of this page. --> | <!-- Categories go at the bottom of this page. --> | ||
== Description == | == Description == | ||
− | Converts a string to an | + | Converts a string to an icon. Takes a string and outputs one image. Technically produces a string working as a mediawiki image link, including the correct width, an alt tag and optional a link to a wiki page. |
Handles all types of icons. Echos warning-text if no image is configured for supplied string and puts page in [[:Category:Pages with broken file links]] | Handles all types of icons. Echos warning-text if no image is configured for supplied string and puts page in [[:Category:Pages with broken file links]] | ||
Zeile 8: | Zeile 8: | ||
== Parameters == | == Parameters == | ||
<templatedata>{ | <templatedata>{ | ||
− | "description": " | + | "description": "Converts a string to an icon. Takes a string and outputs one image. ", |
"params": { | "params": { | ||
"1": { | "1": { | ||
Zeile 25: | Zeile 25: | ||
}</templatedata> | }</templatedata> | ||
== Usage == | == Usage == | ||
− | + | <pre> | |
{{Icons|name|link}} | {{Icons|name|link}} | ||
− | </ | + | </pre> |
== See also == | == See also == | ||
* {{tl|Icons user}} | * {{tl|Icons user}} | ||
− | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | + | [[Category:Hilfewiki templates]]<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
{{#ifeq:{{SUBPAGENAME}}|sandbox | | | {{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
<!-- ADD CATEGORIES AFTER THIS LINE --> | <!-- ADD CATEGORIES AFTER THIS LINE --> | ||
− | [[Category:Utility | + | [[Category:Utility templates]][[Category:Query templates]] |
}} | }} | ||
}}</includeonly> | }}</includeonly> |
Aktuelle Version vom 30. September 2016, 10:44 Uhr
This is a documentation subpage for Vorlage:Icons. It contains usage information, categories and other content that is not part of the original vorlage page. |
Description[Quelltext bearbeiten]
Converts a string to an icon. Takes a string and outputs one image. Technically produces a string working as a mediawiki image link, including the correct width, an alt tag and optional a link to a wiki page.
Handles all types of icons. Echos warning-text if no image is configured for supplied string and puts page in Category:Pages with broken file links
Parameters[Quelltext bearbeiten]
Converts a string to an icon. Takes a string and outputs one image.
Parameter | Beschreibung | Typ | Status | |
---|---|---|---|---|
Iconname | 1 | The name/type/identifier for the icon to produce. For an operation system its the name of the page, the os is defined on. For a target audience it is the identifier. | Seite | erforderlich |
Link | 2 | Fully qualified link or page name, image icon will be linked with | Zeile | vorgeschlagen |
Usage[Quelltext bearbeiten]
{{Icons|name|link}}
See also[Quelltext bearbeiten]
- {{Icons user}}