"틀:Weather inline"의 두 판 사이의 차이

Stardew Valley Wiki
둘러보기로 가기 검색하러 가기
잔글 (+synonym)
잔글 (sync with english template)
26번째 줄: 26번째 줄:
 
-->{{#arraydefine:$wlink_text|{{ParseInputValues|code=weather|@weather@|translate=true}}}}<!--
 
-->{{#arraydefine:$wlink_text|{{ParseInputValues|code=weather|@weather@|translate=true}}}}<!--
  
// On first entry, add sort-key if requested. On other entries, add space and bullet.
+
// Wrap a sort-key span around all items if requested. On other entries, add {{{space}}} or bullet.
 
-->{{#ifexpr:{{#arraysearch:$wweather|@weather@}}>0
 
-->{{#ifexpr:{{#arraysearch:$wweather|@weather@}}>0
     |&#32;•&#32;
+
     |{{{space|&#32;•&#32;}}}
     |{{#if:{{{sortkey|}}}|
+
     |{{#ifexpr:{{#if:{{{sortkey|}}}|1|0}} or {{#ifeq:{{{sortkey}}}||1|0}}
         <span class="sortkey" style="display:none;">{{#if:{{#arrayprint:$wlink_text}}
+
         |<span data-sort-value="{{#ifeq:{{{sortkey}}}|||{{#ifeq:{{{sortkey|true}}}|true
  |{{#expr:{{ParseInputValues|code=weather|@weather@|translate=index}}+1}}
+
          |{{#expr:{{#if:{{#arrayprint:$wlink_text}}
  |0}}</span>
+
            |({{ParseInputValues|code=weather|@weather@|translate=index}}+1)
 +
    |0}}}}
 +
          |{{{sortkey|}}}}}}}">
 
   }}}}<span style="display:inline; margin-right:0; white-space: nowrap"><!--
 
   }}}}<span style="display:inline; margin-right:0; white-space: nowrap"><!--
  
49번째 줄: 51번째 줄:
 
// Add link
 
// Add link
 
-->[[{{#arrayprint:$lang_weatherlink}}|{{#arrayprint:$wlink_text}}]]<!--
 
-->[[{{#arrayprint:$lang_weatherlink}}|{{#arrayprint:$wlink_text}}]]<!--
-->}}}}</span>}}}}</includeonly><noinclude>{{Englishdoc}}{{#ifexist:{{FULLPAGENAME}}/doc |<nowiki/>
+
-->}}}}</span>}}<!--
 +
-->{{#ifexpr:{{#if:{{{sortkey|}}}|1|0}} or {{#ifeq:{{{sortkey}}}||1|0}}|</span>}}
 +
}}</includeonly><noinclude>{{Englishdoc}}{{#ifexist:{{FULLPAGENAME}}/doc |<nowiki/>
 
{{{{FULLPAGENAME}}/doc}} }}</noinclude>
 
{{{{FULLPAGENAME}}/doc}} }}</noinclude>

2020년 10월 31일 (토) 02:47 판

이 틀 대한 자세한 내용은 영어 설명서 페이지를 참조하십시오.

용도

이 틀은 관련된 페이지에 다음과 같이 입력하여 사용할 수 있습니다:

{{Weather inline}}

결과... 틀:ParseInputValues[[File:틀:ParseInputValues.png|

      | link=날씨| alt=]] [[날씨|틀:ParseInputValues]]