Template:ModInfoBox: Difference between revisions

From The TF2 Sourcemod Wiki
Jump to navigation Jump to search
m Testing loops extension
m Added template information
 
(13 intermediate revisions by the same user not shown)
Line 11: Line 11:
| Latest Version
| Latest Version
| style="text-align:right;" | {{{Version|}}}
| style="text-align:right;" | {{{Version|}}}
|-
| Project Lead(s)
| style="text-align:right;" | {{#if:{{{Developers|}}}|{{#invoke:FormatLinks|Format|{{{Developers}}}}}}}
|-
|-
| Socials
| Socials
| style="text-align:right;" |
| style="text-align:right;" |
{{#if:{{{Discord|}}}| [{{{Discord}}} Discord]}}{{#if: {{{Discord|}}} | {{#if: {{{Website|}}} | <br> | }} | }}{{#if:{{{Website|}}}| [{{{Website}}} Website]}}{{#if: {{{Website|}}} | {{#if: {{{YouTube|}}} | <br> | }} | }}{{#if:{{{YouTube|}}}| [{{{YouTube}}} YouTube]}}{{#if: {{{YouTube|}}} | {{#if: {{{Twitter/X|}}} | <br> | }} | }}{{#if:{{{Twitter/X|}}}| [{{{Twitter/X}}} Twitter/X]}}{{#if: {{{Twitter/X|}}} | {{#if: {{{BlueSky|}}} | <br> | }} | }}{{#if:{{{BlueSky|}}}| [{{{BlueSky}}} BlueSky]}}
{{#if:{{{Socials|}}}|{{#invoke:FormatSocials|Format|{{{Socials}}}}}}}
|-
| Developers
| style="text-align:right;" | {{#if: {{{Developers|}}} |
  {{#loop:
  |for=developer
  |in={{{Developers}}}
  |separator=,
  |element=[[User:{{{element}}}|{{{element}}}]]
  }}
}}
|-
|-
| Github
| Download
| style="text-align:right;" | {{{SourceCodeLink|}}}
| style="text-align:right;" | {{{SourceCodeLink|}}}
|}
|}
<noinclude>
<templatedata>
{
"params": {
"ModName": {
"label": "Mod Name",
"description": "Name of the mod",
"example": "Open Fortress",
"required": true
},
"FileName": {
"label": "Logo or video file name",
"description": "The name of the file or video that will be displayed in the info box (WITH EXTENSION)",
"example": "Placeholder.png",
"suggested": true
},
"Status": {
"label": "Status of the mod",
"description": "Active, Inactive, Cancelled, Completed",
"example": "Active",
"required": true
},
"Version": {
"label": "Latest version or build",
"description": "If there is a number or date use that otherwise use the update name (If unknown just put unknown)",
"example": "0.7.3",
"required": true
},
"Developers": {
"label": "Project Leads",
"description": "The project leads, please do not list every developer. Format: name1,name2,name3,name4,name5",
"example": "stachekip,drpyspy,kaydemonlp,sirmatrix",
"suggested": true
},
"Socials": {
"label": "Social links",
"description": "All socials links for said mod, format: Discord,youtube,reddit,etc",
"example": "Discord,youtube,reddit,website",
"suggested": true
},
"SourceCodeLink": {
"label": "Download Link",
"description": "This is the recommend place to download the mod, normally a website or Github",
"example": "https://tf2classic.com/download",
"required": true
}
},
"description": "This template is not fully final and may have changes added later"
}
</templatedata>
</noinclude>

Latest revision as of 14:24, 2 February 2025

{{{ModName}}}

[[File:{{{FileName}}}|center|frameless|256px]]

Current Status
Latest Version
Project Lead(s)
Socials
Download

This template is not fully final and may have changes added later

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Mod NameModName

Name of the mod

Example
Open Fortress
Unknownrequired
Logo or video file nameFileName

The name of the file or video that will be displayed in the info box (WITH EXTENSION)

Example
Placeholder.png
Unknownsuggested
Status of the modStatus

Active, Inactive, Cancelled, Completed

Example
Active
Unknownrequired
Latest version or buildVersion

If there is a number or date use that otherwise use the update name (If unknown just put unknown)

Example
0.7.3
Unknownrequired
Project LeadsDevelopers

The project leads, please do not list every developer. Format: name1,name2,name3,name4,name5

Example
stachekip,drpyspy,kaydemonlp,sirmatrix
Unknownsuggested
Social linksSocials

All socials links for said mod, format: Discord,youtube,reddit,etc

Example
Discord,youtube,reddit,website
Unknownsuggested
Download LinkSourceCodeLink

This is the recommend place to download the mod, normally a website or Github

Example
https://tf2classic.com/download
Unknownrequired