User:Evertiro/Shields: Difference between revisions

From Step Mods | Change The Game
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>==== <span style="color: cyan">[{{{title|}}}]</span> {{#if:{{{core|}}}|{{User:Evertiro/Shields|message=CORE|color=126F6F}}}} {{#if:{{{tool|}}}|{{User:Evertiro/Shields|message=TOOL|color=666}}}} {{#if:{{{optional|}}}|{{User:Evertiro/Shields|message=OPTIONAL|color=CC3E99}}}} {{#if:{{{patchcentral|}}}|{{User:Evertiro/Shields|message=PATCH%20CENTRAL|color=434343}}}} {{#if:{{{bsa|}}}|{{User:Evertiro/Shields|message=BSA%20EXTRACTED|color=32A5A0}}}} {{#if:{{{classic|}}}|{{User:Evertiro/Shields|message=CLASSIC|color=005500}}}} {{#if:{{{convert|}}}|{{User:Evertiro/Shields|message=CONVERT|color=D00}}}} {{#if:{{{cao|}}}|{{User:Evertiro/Shields|message=CAO|color=228D00}}}} {{#if:{{{merged|}}}|{{User:Evertiro/Shields|message=MERGED|color=800080}}}} {{#if:{{{esl|}}}|{{User:Evertiro/Shields|message=ESL|color=0000FF}}}} ====
<includeonly><img src="https://img.shields.io/badge/{{{label|}}}-{{{message|}}}-{{{color|}}}.svg" style="vertical-align: middle; height: 1.2rem" /></includeonly><noinclude>__NOTOC__
[{{{url|}}} {{User:Evertiro/Shields|label=Link|message=Website|color=success}}] {{User:Evertiro/Shields|label=Version|message={{{version|}}}|color=informational}} {{User:Evertiro/Shields|label=Author|message={{{author|}}}|color=informational}}</includeonly><noinclude>__NOTOC__
==Purpose & Usage==
==Purpose & Usage==
This template provides a simple means to render mod headers.
This template provides a simple means to render custom scalable tags for use when applicable. Note that spaces must be url-safe, meaning that you must replace spaces with %20 (see examples).
====Parameters:====
====Parameters:====
* '''''title''''' is the title of the mod.
* '''''label''''' is the text for the (optional) label.
* '''''version''''' is the version of the mod used in the guide.
* '''''message''''' is the text for the (recommended) message.
* '''''author''''' is the author of the mod.
* '''''color''''' determines the color used for the message background. The following built-in colors are available, custom colors can be defined by entering a hex color code:
* '''''url''''' is the link to the mod homepage.
** brightgreen
* The following can also be passed to define tags:
** green
** core
** yellowgreen
** tool
** yellow
** optional
** orange
** patchcentral
** red
** bsa
** blue
** convert
** lightgrey
** classic
** blueviolet
** merged** blueviolet
** success
** esl</noinclude>
** important
** critical
** informational
** inactive
==Examples==
'''Code:''' (note %20 for spaces)
<pre>{{User:Evertiro/Shields|label=Hi!|message=I'm%20a%20shield.|color=blue}}</pre>
'''Result:'''
{{User:Evertiro/Shields|label=Hi!|message=I'm%20a%20shield.|color=blue}}
</noinclude>

Latest revision as of 20:37, June 1, 2019

Purpose & Usage[edit | edit source]

This template provides a simple means to render custom scalable tags for use when applicable. Note that spaces must be url-safe, meaning that you must replace spaces with %20 (see examples).

Parameters:[edit | edit source]

  • label is the text for the (optional) label.
  • message is the text for the (recommended) message.
  • color determines the color used for the message background. The following built-in colors are available, custom colors can be defined by entering a hex color code:
    • brightgreen
    • green
    • yellowgreen
    • yellow
    • orange
    • red
    • blue
    • lightgrey
    • blueviolet
    • success
    • important
    • critical
    • informational
    • inactive

Examples[edit | edit source]

Code: (note %20 for spaces)

{{User:Evertiro/Shields|label=Hi!|message=I'm%20a%20shield.|color=blue}}

Result: <img src="https://img.shields.io/badge/Hi!-I'm%20a%20shield.-blue.svg" style="vertical-align: middle; height: 1.2rem" />