Template:IconFrame: Difference between revisions

From Eco - English Wiki
[unchecked revision][checked revision]
Tag: 2017 source edit
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<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>
<includeonly><div style="border: 5px outset #A9A9A9; background: #DCDCDC; display:inline-block; width: auto; padding: 10px; margin: 10px; text-align: center; vertical-align: middle;">
{{#if:{{{text|}}}|{{{text}}}}}</div></includeonly>
    <div class="iconContainer">
      <div class="iconStack">[[File:{{{file}}}|class={{{style|iconBlue}}}|link={{{link}}}]]</div>
      <div class="iconBorder"></div>
    </div>
    {{#if:{{{text|}}}|{{{text}}}}}
  </div></includeonly>


<noinclude>
<noinclude>
==Usage==
<pre>
{{IconFrame
    |file = WoodenHoe_Icon.png
    |link = Agriculture
    |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]
;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.
;Forth Parameter - Icon Style - iconBlue, iconWhite etc
:The background style of the icon, defaults to iconBlue.
===Example===
{{IconFrame
    |file = WoodenHoe_Icon.png
    |link = Agriculture
    |text = <h3>[[Agriculture]]</h3>
}}
{{IconFrame
    |file = CrushedRock_Icon.png
    |link = CrushedRock
    |text = <h3>[[Crushed Rock Tag]]</h3>
    |style = iconWhite
}}
[[Category:Templates]]
</noinclude>

Latest revision as of 16:35, 19 April 2021


Usage[edit source]

{{IconFrame
    |file = WoodenHoe_Icon.png
    |link = Agriculture
    |text = <h3>[[Agriculture]]</h3>
}}

Parameters[edit source]

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.
Forth Parameter - Icon Style - iconBlue, iconWhite etc
The background style of the icon, defaults to iconBlue.

Example[edit source]