Шаблон:FishLocationEntry: различия между версиями

Материал из Stardew Valley Wiki
Перейти к навигации Перейти к поиску
м (Замена текста — «{{englishdoc}}» на «{{Englishdoc}}»)
 
(не показаны 4 промежуточные версии 2 участников)
Строка 1: Строка 1:
<onlyinclude>
+
<includeonly>
 
|-
 
|-
 
|colspan="{{#if:{{{location|}}}|1|2}}" style="background: #{{#switch:{{{season|}}}|Spring = FBE3D5|Summer = C5DFB4|Fall = FEE59A|Winter = BCD6ED}}; text-align: {{#if:{{{fish|}}}|center|}}; line-height:16px;" | {{#if:{{{fish|}}}|{{name|{{{fish|}}}|size=16|alt={{{rus|}}}}}|{{Season|{{{season|}}}}}}}
 
|colspan="{{#if:{{{location|}}}|1|2}}" style="background: #{{#switch:{{{season|}}}|Spring = FBE3D5|Summer = C5DFB4|Fall = FEE59A|Winter = BCD6ED}}; text-align: {{#if:{{{fish|}}}|center|}}; line-height:16px;" | {{#if:{{{fish|}}}|{{name|{{{fish|}}}|size=16|alt={{{rus|}}}}}|{{Season|{{{season|}}}}}}}
 
{{#if:{{{location|}}}|
 
{{#if:{{{location|}}}|
 
{{!}}style="background: #{{#switch:{{{season|}}}|Spring = FBE3D5|Summer = C5DFB4|Fall = FEE59A|Winter = BCD6ED}}; line-height: 16px;"{{!}}{{{location|}}}|}}{{#if:{{{offset|}}}|
 
{{!}}style="background: #{{#switch:{{{season|}}}|Spring = FBE3D5|Summer = C5DFB4|Fall = FEE59A|Winter = BCD6ED}}; line-height: 16px;"{{!}}{{{location|}}}|}}{{#if:{{{offset|}}}|
{{!}}colspan="{{{offset}}}" style="background: #{{#switch:{{{timeofday}}}|Night = {{#switch:{{{weather}}}|Дождливая = 09B0EE|Ясная = FEBF15|Снежная = 09B0EE|90CF53}}|}}; text-align: center; line-height: 16px;"{{!}}|}}
+
{{#if:{{{location|}}}|{{!}}|}}{{!}}colspan="{{{offset}}}" style="background: #{{#switch:{{{timeofday}}}|Night = {{#switch:{{{weather}}}|Дождливая = 09B0EE|Солнечная = FEBF15|Снежная = 09B0EE|90CF53}}|}}; text-align: center; line-height: 16px;"{{!}}|}}
| colspan="{{#if:{{{offset|}}}|{{{length|}}}|{{#switch:{{{timeofday|}}}|Night = {{#expr: 20 - {{{length|}}}}}|{{{length|}}}}}}}" style="background: #{{#switch:{{{timeofday|}}}|Night = |{{#switch:{{{weather|}}}|Дождливая = 09B0EE|Ясная = FEBF15|Снежная = 09B0EE|90CF53}}}}; text-align: center; line-height: 16px;"| {{#switch:{{{timeofday|}}}|Night = |{{#if:{{{weather|}}}|<i>{{{weather|}}} day only</i>|}}}}
+
| colspan="{{#if:{{{offset|}}}|{{{length|}}}|{{#switch:{{{timeofday|}}}|Night = {{#expr: 20 - {{{length|}}}}}|{{{length|}}}}}}}" style="background: #{{#switch:{{{timeofday|}}}|Night = |{{#switch:{{{weather|}}}|Дождливая = 09B0EE|Солнечная = FEBF15|Снежная = 09B0EE|90CF53}}}}; text-align: center; line-height: 16px;"| {{#switch:{{{timeofday|}}}|Night = |{{#if:{{{weather|}}}|<i>{{{weather|}}} погода</i>|}}}}
| colspan="{{#if:{{{offset|}}}|{{#expr: 20 - {{{offset|}}} - {{{length|}}}}}|{{#switch:{{{timeofday|}}}|Night = {{{length|}}}|{{#expr: 20 - {{{length|}}}}}}}}}" style="{{#ifexpr:{{{length|}}} = 20|display:none;|}} background: #{{#switch:{{{timeofday|}}}|Night = {{#switch:{{{weather|}}}|Дождливая = 09B0EE|Ясная = FEBF15|Снежная = 09B0EE|90CF53}}|}}; text-align: center; line-height:16px;"| {{#switch:{{{timeofday|}}}|Night = {{#if:{{{weather|}}}|<i>{{{weather|}}} погода{{#if:{{{snow|}}}{{!}}&nbsp;(Нельзя поймать зимой)}}</i>|}}|}}</onlyinclude><noinclude>{{englishdoc}}</noinclude>
+
| colspan="{{#if:{{{offset|}}}|{{#expr: 20 - {{{offset|}}} - {{{length|}}}}}|{{#switch:{{{timeofday|}}}|Night = {{{length|}}}|{{#expr: 20 - {{{length|}}}}}}}}}" style="{{#ifexpr:{{{length|}}} = 20|display:none;|}} background: #{{#switch:{{{timeofday|}}}|Night = {{#switch:{{{weather|}}}|Дождливая = 09B0EE|Солнечная = FEBF15|Снежная = 09B0EE|90CF53}}|}}; text-align: center; line-height:16px;"| {{#switch:{{{timeofday|}}}|Night = {{#if:{{{weather|}}}|<i>{{{weather|}}} погода{{#if:{{{snow|}}}{{!}}&nbsp;(Нельзя поймать зимой)}}</i>|}}|}}</includeonly><noinclude>{{Englishdoc}}</noinclude>

Текущая версия на 17:57, 24 октября 2022

Для получения подробной информации о данном шаблоне обратитесь к документации на английском языке.

Применение

Этот шаблон можно использовать путем ввода следующего на соответствующей странице:

{{FishLocationEntry}}

Результаты в ...

|- |colspan="2" style="background: #; text-align: ; line-height:16px;" |

| colspan="" style="background: #90CF53; text-align: center; line-height: 16px;"| | colspan="Ошибка выражения: - не хватает операнда" style="Ошибка выражения: неожидаемый оператор = background: #; text-align: center; line-height:16px;"|