Vorlage:IconFrame: Unterschied zwischen den Versionen
Aus Eco - Deutsches Wiki
[unmarkierte Version] | [gesichtete Version] |
Dennis (Diskussion | Beiträge) K 1 Version importiert |
Keine Bearbeitungszusammenfassung |
||
(3 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
<includeonly><div style="border: 5px outset # | <includeonly><div style="border: 5px outset #A9A9A9; background: #DCDCDC; display:inline-block; width: auto; padding: 10px; margin: 10px; text-align: center; vertical-align: middle;"><div class="iconContainer"><div class="iconStack">[[File:{{{file}}}|class=iconBlue|link={{{link}}}]]</div><div class="iconBorder"></div></div> | ||
{{#if:{{{text|}}}|{{{text}}}}}</div></includeonly> | |||
<noinclude> | |||
==Usage== | |||
<pre> | |||
{{IconFrame | {{IconFrame | ||
|file = | |file = WoodenHoe_Icon.png | ||
|link = | |link = Agriculture | ||
|text = <h3>[[ | |text = <h3>[[Agriculture]]</h3> | ||
}} | }} | ||
</pre> | |||
===Parameters=== | |||
;First Parameter - File Name - file | |||
:File page title for an image. | |||
:You can use spaces or underscores. Do not include the "File:" part of the page title. | |||
:This uses MediaWiki:Common.css to create An Icon Background and Frame for the file chosen. [Current .iconBlue for the Background] | |||
[[Category: | ;Second Parameter - Page Name - link | ||
:Name of the page you wish to create a link to. | |||
:Use spaces instead of underscores, otherwise, the underscores will show up in the link text. | |||
;Third Parameter - Text Displayed - text | |||
:The text you want to be displayed under the Image. | |||
===Example=== | |||
{{IconFrame | |||
|file = WoodenHoe_Icon.png | |||
|link = Agriculture | |||
|text = <h3>[[Landwirtschaft]]</h3> | |||
}} | |||
[[Category:Vorlage]] | |||
</noinclude> | </noinclude> |
Aktuelle Version vom 18. August 2020, 12:21 Uhr
Usage[Quelltext bearbeiten]
{{IconFrame |file = WoodenHoe_Icon.png |link = Agriculture |text = <h3>[[Agriculture]]</h3> }}
Parameters[Quelltext bearbeiten]
- First Parameter - File Name - file
- File page title for an image.
- You can use spaces or underscores. Do not include the "File:" part of the page title.
- This uses MediaWiki:Common.css to create An Icon Background and Frame for the file chosen. [Current .iconBlue for the Background]
- Second Parameter - Page Name - link
- Name of the page you wish to create a link to.
- Use spaces instead of underscores, otherwise, the underscores will show up in the link text.
- Third Parameter - Text Displayed - text
- The text you want to be displayed under the Image.