Vorlage:Icons/doc: Unterschied zwischen den Versionen

IMT HilfeWiki - das Wiki
 
 
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 icons. 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.
+
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 of the entity created by this template or of the function of this template",
+
     "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 ==
{{code|lang=bibtex|code=<nowiki>
+
<pre>
 
{{Icons|name|link}}
 
{{Icons|name|link}}
</nowiki>}}
+
</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 templates]][[Category:Hilfewiki templates]][[Category:Query templates]]
+
[[Category:Utility templates]][[Category:Query templates]]
 
}}
 
}}
 
}}</includeonly>
 
}}</includeonly>

Aktuelle Version vom 30. September 2016, 11:44 Uhr

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.

Vorlagenparameter

ParameterBeschreibungTypStatus
Iconname1

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.

Seiteerforderlich
Link2

Fully qualified link or page name, image icon will be linked with

Zeilevorgeschlagen

Usage[Quelltext bearbeiten]

{{Icons|name|link}}

See also[Quelltext bearbeiten]

Cookies helfen uns bei der Bereitstellung des IMT HilfeWikis. Bei der Nutzung vom IMT HilfeWiki werden die in der Datenschutzerklärung beschriebenen Cookies gespeichert.