Template:Pageframe: Difference between revisions

From Artea Station
Jump to navigation Jump to search
m (Slight padding tweak)
m (→‎How to use this template: Added an explanation for each parameter of this template)
Line 9: Line 9:
==How to use this template==
==How to use this template==
This template has several parameters and all of them will be displayed in the example below.
This template has several parameters and all of them will be displayed in the example below.
*<code>color</code> Controls the color in this template.
*<code>icon</code> Can be used to add a small Icon to the top bar of the template, if left empty no icon will be shown.
*<code>title</code>Sets the title of the template in the top bar.
*<code>content</code>Controls the contents of the lower box.
*<code>width</code>Controls the width of the whole template.


'''Important note:''' The <code>icon</code> parameter is <u>only</u> meant to be used with the [https://www.mediawiki.org/wiki/Extension:FontAwesome FontAwesome extension] For usage see the extension itself. A list of use-able icons can be found here [https://fontawesome.com/v5/search?o=r&m=free on the FontAwesome website] (We can only use Free Icons from version 5.15.4 or older, keep this in mind when looking for icons to use.)
'''Important note:''' The <code>icon</code> parameter is <u>only</u> meant to be used with the [https://www.mediawiki.org/wiki/Extension:FontAwesome FontAwesome extension] For usage see the extension itself. A list of use-able icons can be found here [https://fontawesome.com/v5/search?o=r&m=free on the FontAwesome website] (We can only use Free Icons from version 5.15.4 or older, keep this in mind when looking for icons to use.)

Revision as of 01:13, 12 March 2023

{{{title}}}

{{{content}}}

THIS TEMPLATE SHOULD NOT BE EDITED UNLESS ABSOLUTELY NESSESARY

How to use this template

This template has several parameters and all of them will be displayed in the example below.

  • color Controls the color in this template.
  • icon Can be used to add a small Icon to the top bar of the template, if left empty no icon will be shown.
  • titleSets the title of the template in the top bar.
  • contentControls the contents of the lower box.
  • widthControls the width of the whole template.

Important note: The icon parameter is only meant to be used with the FontAwesome extension For usage see the extension itself. A list of use-able icons can be found here on the FontAwesome website (We can only use Free Icons from version 5.15.4 or older, keep this in mind when looking for icons to use.)

{{Pageframe
| color = #005C53
| icon = {{#fas:gavel}}
| title = Test1
| content = Test2
| width = 80%
}}

These parameters will result in the following:
Test1

Test2