Шаблон:Newest: различия между версиями
Материал из Исламоведение
Дополнительные действия
Modir (обсуждение | вклад) Нет описания правки Метка: отменено |
Modir (обсуждение | вклад) Нет описания правки Метка: отменено |
||
| Строка 1: | Строка 1: | ||
<includeonly>{{#if: {{#explode: {{newest/names|{{{type}}}}}| / |0}}| | <includeonly>{{#if: {{#explode: {{newest/names|{{{type}}}}}| / |0}}| | ||
<div style="width:100%; background-image:linear-gradient(to bottom,{{{color|#ffffff}}}, white); | <div style="width:100%; background-image:linear-gradient(to bottom,{{{color|#ffffff}}}, white); padding:10px; margin-bottom:15px;"> | ||
<!-- Заголовок с иконкой --> | <!-- Заголовок с иконкой --> | ||
<div style="padding:10px; border-bottom:1px solid white;"> | <div style="padding:10px; border-bottom:1px solid white; margin-bottom:10px;"> | ||
[[File:{{{icon|}}}|30px|link=|alt=]] | [[File:{{{icon|}}}|30px|link=|alt=]] | ||
<span style="font-size:19px; padding:10px; vertical-align:middle;">'''{{{title|}}}'''</span> | <span style="font-size:19px; padding:10px; vertical-align:middle;">'''{{{title|}}}'''</span> | ||
</div> | </div> | ||
<!-- Первый элемент --> | <!-- Первый элемент с фото --> | ||
<div style=" | {{#if: {{#explode: {{newest/names|{{{type}}}}}| / |0}}| | ||
[[{{#explode: {{newest/names|{{{type}}}}}| / |0}}]] | <div style="display:flex; align-items:center; margin:10px 0; padding:10px; background:rgba(255,255,255,0.5); border-radius:5px;"> | ||
<div style="flex:0 0 60px; margin-right:15px;"> | |||
[[File:{{PAGENAME:{{#explode: {{newest/names|{{{type}}}}}| / |0}}}}.jpg|60px|link={{#explode: {{newest/names|{{{type}}}}}| / |0}}|alt=]] | |||
</div> | |||
<div style="flex:1; font-size:17px;"> | |||
[[{{#explode: {{newest/names|{{{type}}}}}| / |0}}]] | |||
</div> | |||
</div> | </div> | ||
}} | |||
<!-- Второй элемент (если есть) --> | <!-- Второй элемент с фото (если есть) --> | ||
{{#if: {{#explode: {{newest/names|{{{type}}}}}| / |1}}| | {{#if: {{#explode: {{newest/names|{{{type}}}}}| / |1}}| | ||
<div style=" | <div style="display:flex; align-items:center; margin:10px 0; padding:10px; background:rgba(255,255,255,0.5); border-radius:5px;"> | ||
[[{{#explode: {{newest/names|{{{type}}}}}| / |1}}]] | <div style="flex:0 0 60px; margin-right:15px;"> | ||
</div>}} | [[File:{{PAGENAME:{{#explode: {{newest/names|{{{type}}}}}| / |1}}}}.jpg|60px|link={{#explode: {{newest/names|{{{type}}}}}| / |1}}|alt=]] | ||
</div> | |||
<div style="flex:1; font-size:17px;"> | |||
[[{{#explode: {{newest/names|{{{type}}}}}| / |1}}]] | |||
</div> | |||
</div> | |||
}} | |||
<!-- Третий элемент (если есть) --> | <!-- Третий элемент с фото (если есть) --> | ||
{{#if: {{#explode: {{newest/names|{{{type}}}}}| / |2}}| | {{#if: {{#explode: {{newest/names|{{{type}}}}}| / |2}}| | ||
<div style=" | <div style="display:flex; align-items:center; margin:10px 0; padding:10px; background:rgba(255,255,255,0.5); border-radius:5px;"> | ||
[[{{#explode: {{newest/names|{{{type}}}}}| / |2}}]] | <div style="flex:0 0 60px; margin-right:15px;"> | ||
</div>}} | [[File:{{PAGENAME:{{#explode: {{newest/names|{{{type}}}}}| / |2}}}}.jpg|60px|link={{#explode: {{newest/names|{{{type}}}}}| / |2}}|alt=]] | ||
</div> | |||
<div style="flex:1; font-size:17px;"> | |||
[[{{#explode: {{newest/names|{{{type}}}}}| / |2}}]] | |||
</div> | |||
</div> | |||
}} | |||
</div> | </div> | ||
}}</includeonly> | }}</includeonly> | ||