Template:Modlisting: Difference between revisions

From Step Mods | Change The Game
No edit summary
No edit summary
Line 3: Line 3:
|Hearthfire=HF
|Hearthfire=HF
|Dragonborn=DB
|Dragonborn=DB
| }}<div style="background-color:{{{tagBG|#40804d}}}; background:-webkit-linear-gradient({{{tagBG|#40804d}}}, {{{tagGrad|#7db388}}}); background:-moz-linear-gradient({{{tagBG|#40804d}}}, {{{tagGrad|#7db388}}}); background:-o-linear-gradient({{{tagBG|#40804d}}}, {{{tagGrad|#7db388}}}); background:linear-gradient({{{tagBG|#40804d}}}, {{{tagGrad|#7db388}}}); border-radius:2px; display:inline-block; margin:0 0.5em 0 0; padding:0 0.5em; text-align:center; vertical-align:middle;"><span style="font-size:1.1em; font-weight:bold; color:{{{tagFont|#dddddd}}};">''{{{tag}}}''</span></div>}} <span style="color:#dddddd; font-size:1.5em;">[{{{modURL}}} {{{modName}}}] {{#if:{{{modVersion|}}}|- {{{modVersion}}}|}} - by {{{modAuthor}}}</span></div>
| }}<div style="background-color:{{{tagBG|#40804d}}}; background:-webkit-linear-gradient({{{tagBG|#40804d}}}, {{{tagGrad|#7db388}}}); background:-moz-linear-gradient({{{tagBG|#40804d}}}, {{{tagGrad|#7db388}}}); background:-o-linear-gradient({{{tagBG|#40804d}}}, {{{tagGrad|#7db388}}}); background:linear-gradient({{{tagBG|#40804d}}}, {{{tagGrad|#7db388}}}); border-radius:2px; display:inline-block; margin:0 0.5em 0 0; padding:0 0.5em; text-align:center; vertical-align:middle;"><span style="font-size:1.1em; font-weight:bold; color:{{{tagFont|#dddddd}}};">''{{{tag}}}''</span></div>}} <span style="color:#dddddd; font-size:1.5em;">[{{{modURL}}} {{{modName}}}] {{#if:{{{modVersion|}}}|- {{{modVersion}}} |}}- by {{{modAuthor}}}</span></div>
<div style="display:table-row;">
<div style="display:table-row;">
   <div style="display:table-cell;">'''Files to download:'''<br>{{#if:{{{MAIN|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">MAIN FILES</span> - {{#arraymap:{{{MAIN|}}}|;|%|''%''}} | }}{{#if:{{{UPDT|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">UPDATES</span> - {{#arraymap:{{{UPDT|}}}|;|%|''%''}} | }}{{#if:{{{ALTERNATIVE|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">ALTERNATIVE</span> - {{#arraymap:{{{ALTERNATIVE|}}}|;|%|''%''}} | }}{{#if:{{{ADDITIONAL|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">ADDITIONAL</span> - {{#arraymap:{{{ADDITIONAL|}}}|;|%|''%''}} | }}{{#if:{{{ADDITIONAL1|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">ADDITIONAL1</span> - {{#arraymap:{{{ADDITIONAL1|}}}|;|%|''%''}} | }}{{#if:{{{ADDITIONAL2|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">ADDITIONAL2</span> - {{#arraymap:{{{ADDITIONAL2|}}}|;|%|''%''}} | }}{{#if:{{{ADDITIONAL3|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">ADDITIONAL3</span> - {{#arraymap:{{{ADDITIONAL3|}}}|;|%|''%''}} | }}{{#if:{{{ADDITIONAL4|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">ADDITIONAL4</span> - {{#arraymap:{{{ADDITIONAL4|}}}|;|%|''%''}} | }}{{#if:{{{ADDITIONAL5|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">ADDITIONAL5</span> - {{#arraymap:{{{ADDITIONAL5|}}}|;|%|''%''}} | }}{{#if:{{{OPT|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">OPTIONAL FILES</span> - {{#arraymap:{{{OPT|}}}|;|%|''%''}} | }}{{#if:{{{MISC|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">MISCELLANEOUS</span> - {{#arraymap:{{{MISC|}}}|;|%|''%''}} | }}{{#if:{{{OLD|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">OLD VERSIONS</span> - {{#arraymap:{{{OLD|}}}|;|%|''%''}}| }}</div>
   <div style="display:table-cell;">'''Files to download:'''<br>{{#if:{{{MAIN|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">MAIN FILES</span> - {{#arraymap:{{{MAIN|}}}|;|%|''%''}} | }}{{#if:{{{UPDT|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">UPDATES</span> - {{#arraymap:{{{UPDT|}}}|;|%|''%''}} | }}{{#if:{{{ALTERNATIVE|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">ALTERNATIVE</span> - {{#arraymap:{{{ALTERNATIVE|}}}|;|%|''%''}} | }}{{#if:{{{ADDITIONAL|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">ADDITIONAL</span> - {{#arraymap:{{{ADDITIONAL|}}}|;|%|''%''}} | }}{{#if:{{{ADDITIONAL1|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">ADDITIONAL1</span> - {{#arraymap:{{{ADDITIONAL1|}}}|;|%|''%''}} | }}{{#if:{{{ADDITIONAL2|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">ADDITIONAL2</span> - {{#arraymap:{{{ADDITIONAL2|}}}|;|%|''%''}} | }}{{#if:{{{ADDITIONAL3|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">ADDITIONAL3</span> - {{#arraymap:{{{ADDITIONAL3|}}}|;|%|''%''}} | }}{{#if:{{{ADDITIONAL4|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">ADDITIONAL4</span> - {{#arraymap:{{{ADDITIONAL4|}}}|;|%|''%''}} | }}{{#if:{{{ADDITIONAL5|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">ADDITIONAL5</span> - {{#arraymap:{{{ADDITIONAL5|}}}|;|%|''%''}} | }}{{#if:{{{OPT|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">OPTIONAL FILES</span> - {{#arraymap:{{{OPT|}}}|;|%|''%''}} | }}{{#if:{{{MISC|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">MISCELLANEOUS</span> - {{#arraymap:{{{MISC|}}}|;|%|''%''}} | }}{{#if:{{{OLD|}}}|* <span style="color:{{{color|#dddddd}}}; font-weight:bold;">OLD VERSIONS</span> - {{#arraymap:{{{OLD|}}}|;|%|''%''}}| }}</div>

Revision as of 23:14, November 2, 2020


Template:Modlisting

Discussion:

Purpose & Usage

This template displays a stylized mod listing and instruction set on the page.

Required Parameters

modName
Defined: modName=textHere
Defines the text displayed for the mod's name within the template.
modURL
Defined: modURL=URLHere
Defines the URL to the mod's page. Uses external links, therefore, include the entire URL here.
modAuthor
Defined: modAuthor=authorName
Defines the textu used for the name of the mod's author.

Optional Parameters

modVersion
Defined: modVersion=versionHere
Defines the text used for calling out a specific version of a mod. If included, displays after modName and before modAuthor.
tag
Defaults to itself to enable the use of both pre-defined tags and custom tags.
Displays a stylized "tag" in from of the Mod's name. Users can enter any text to have the tag display that text. However, the following keywords are pre-defined and will default to a pre-defined style.
  • Dawnguard = DG
  • Hearthfire = HF
  • Dragonborn = DB
tagBG
Defined: tagBG=value
Default: #40804d
Defines the background color of the tag. Accepts any valid CSS for color.
tagGrad
Defined: tagGrad=value
Default: #7db388
Defines the gradient color the background will fade into (top to bottom). Accepts any valid CSS for color.

Examples

Code:
{{modlisting
|tag=Custom
|modName=My Mod
|modVersion=v1.2.3
|modURL=https://www.nexusmods.com/skyrimspecialedition/mods/31054
|modAuthor=TotallyAwesomeDude
|MAIN=FileNameHere
|OPT=theOptionalFileHere
|Description=This is the box that holds the mod description.}}


Result:
Custom
My Mod - v1.2.3- by TotallyAwesomeDude
Files to download:
  • MAIN FILES - FileNameHere
  • OPTIONAL FILES - theOptionalFileHere
Description

This is the box that holds the mod description.


Related Templates