User:Evertiro/Shields: Difference between revisions

From Step Mods | Change The Game
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><img src="https://img.shields.io/badge/{{{label|}}}-{{{message|}}}-{{{color|}}}.svg" style="vertical-align: middle" /></includeonly><noinclude>__NOTOC__
<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}}}} ====
[{{{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 custom scalable tags for use when applicable. Note that spaces must be url-safe, meaning that you must replace spaces with %20 (see examples).
This template provides a simple means to render mod headers.
====Parameters:====
====Parameters:====
* '''''label''''' is the text for the (optional) label.
* '''''title''''' is the title of the mod.
* '''''message''''' is the text for the (recommended) message.
* '''''version''''' is the version of the mod used in the guide.
* '''''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:
* '''''author''''' is the author of the mod.
** brightgreen
* '''''url''''' is the link to the mod homepage.
** green
* The following can also be passed to define tags:
** yellowgreen
** core
** yellow
** tool
** orange
** optional
** red
** patchcentral
** blue
** bsa
** lightgrey
** convert
** blueviolet
** classic
** success
** merged** blueviolet
** important
** esl</noinclude>
** 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>

Revision as of 18:30, June 1, 2019

Purpose & Usage[edit | edit source]

This template provides a simple means to render mod headers.

Parameters:[edit | edit source]

  • title is the title of the mod.
  • version is the version of the mod used in the guide.
  • author is the author of the mod.
  • url is the link to the mod homepage.
  • The following can also be passed to define tags:
    • core
    • tool
    • optional
    • patchcentral
    • bsa
    • convert
    • classic
    • merged** blueviolet
    • esl