Editing Template:IconFrame

From Eco - Meta Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
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={{{style|iconBlue}}}|link={{{link}}}]]</div>
      <div class="iconBorder"></div>
    </div>
    {{#if:{{{text|}}}|{{{text}}}}}
  </div></includeonly>


<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]]
<templatedata>
{
"params": {
"file": {},
"style": {},
"link": {},
"text": {}
}
}
</templatedata></noinclude>
Please note that all contributions to Eco - Meta Wiki are considered to be released under the CC BY-NC-SA 4.0 (see Eco:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)