Template:Infobox mod: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox mod-infobox" style="max-width:360px; border: 2px solid #007acc; border-radius: 15px; background:#1a1a1a; color:#f5f5f5; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-size:14px; box-shadow: 0 4px 12px rgba(0,0,0,0.7); float: right; margin: 0 0 20px 20px;"
<div class="infobox-mod" style="max-width: 380px; border: 2px solid #007acc; border-radius: 20px; background: #1a1a1a; color: #f5f5f5; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-size: 14px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7); margin: 20px 0; padding: 20px; text-align: center;">
|-
    <div style="display: flex; justify-content: center; align-items: center; margin-bottom: 20px;">
! colspan="2" style="background:#1a1a1a; border-bottom: 2px solid #007acc; color:#007acc; font-size:1.8em; font-weight:bold; padding: 12px 16px; text-align:left; vertical-align:middle;" |
        <img src="[[File:Hl2 icon.png]]" alt="HL2" style="width: 40px; height: 40px; margin-right: 10px;">
  [[File:Hl2 icon.png|32px|alt=HL2|link=]]&nbsp; {{{title|Название мода}}}
        <h2 style="margin: 0; font-size: 24px; color: #007acc;">{{{title|Название мода}}}</h2>
|-
    </div>
| colspan="2" style="padding:0; border-radius: 15px 15px 0 0; overflow:hidden; text-align:center; background:#111;" |
    <div style="border-radius: 15px; overflow: hidden; margin-bottom: 20px;">
  {{#if: {{{image|}}} | [[File:{{{image}}}|360px|link=|alt=Логотип|style=border-radius:15px 15px 0 0;]] }}
        {{#if: {{{image|}}} | [[File:{{{image}}}|360px|link=|alt=Логотип|style=border-radius:15px;]] }}
|-
    </div>
! style="width:40%; padding:8px 16px; border-top:none; color:#999; vertical-align:top;" | Раздел
    <div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
! style="width:60%; padding:8px 16px; border-top:none; text-align:right; vertical-align:top;" | Информация
        <span style="width: 45%; text-align: left; color: #999;">Разработчик</span>
|-
        <span style="width: 55%; text-align: right;">{{{developer|}}}</span>
{{#if: {{{developer|}}} | | Разработчик | {{{developer}}} | }}
    </div>
|-
    <div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
{{#if: {{{engine|}}} | | Движок | {{{engine}}} | }}
        <span style="width: 45%; text-align: left; color: #999;">Движок</span>
|-
        <span style="width: 55%; text-align: right;">{{{engine|}}}</span>
{{#if: {{{engine_version|}}} | | Версия движка | {{{engine_version}}} | }}
    </div>
|-
    <div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
{{#if: {{{platforms|}}} | | Платформы | {{{platforms}}} | }}
        <span style="width: 45%; text-align: left; color: #999;">Версия движка</span>
|-
        <span style="width: 55%; text-align: right;">{{{engine_version|}}}</span>
{{#if: {{{released|}}} | | Релиз | {{{released}}} | }}
    </div>
|-
    <div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
{{#if: {{{status|}}} | | Статус | {{{status}}} | }}
        <span style="width: 45%; text-align: left; color: #999;">Платформы</span>
|-
        <span style="width: 55%; text-align: right;">{{{platforms|}}}</span>
{{#if: {{{genre|}}} | | Жанр | {{{genre}}} | }}
    </div>
|-
    <div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
{{#if: {{{license|}}} | | Лицензия | {{{license}}} | }}
        <span style="width: 45%; text-align: left; color: #999;">Релиз</span>
|-
        <span style="width: 55%; text-align: right;">{{{released|}}}</span>
{{#if: {{{source_code|}}} | | Исходники | [{{{source_code}}} GitHub] | }}
    </div>
|-
    <div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
{{#if: {{{website|}}} | | Сайт | [{{{website}}} перейти] | }}
        <span style="width: 45%; text-align: left; color: #999;">Статус</span>
|}
        <span style="width: 55%; text-align: right;">{{{status|}}}</span>
    </div>
    <div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
        <span style="width: 45%; text-align: left; color: #999;">Жанр</span>
        <span style="width: 55%; text-align: right;">{{{genre|}}}</span>
    </div>
    <div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
        <span style="width: 45%; text-align: left; color: #999;">Лицензия</span>
        <span style="width: 55%; text-align: right;">{{{license|}}}</span>
    </div>
    <div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
        <span style="width: 45%; text-align: left; color: #999;">Исходники</span>
        <span style="width: 55%; text-align: right;">{{#if: {{{source_code|}}} | [{{{source_code}}} GitHub] }}</span>
    </div>
    <div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
        <span style="width: 45%; text-align: left; color: #999;">Сайт</span>
        <span style="width: 55%; text-align: right;">{{#if: {{{website|}}} | [{{{website}}} перейти] }}</span>
    </div>
</div>
</includeonly>
</includeonly>



Revision as of 06:32, 27 July 2025


Использование

{{Infobox mod/clean
 | title          = Freeman's Journey
 | image          = FreemansJourney_logo.png
 | developer      = [[User:PavelCheloveckov]]
 | engine         = Source
 | engine_version = 2013
 | platforms      = Windows, Linux
 | released       = TBA
 | status         = В разработке
 | genre          = Story Adventure
 | license        = Custom (non-commercial)
 | source_code    = https://github.com/PavelCheloveckov/FreemansJourney
 | website        = https://pavelcheloveckov.github.io/hl2-modders-team/
}}