"틀:Season"의 두 판 사이의 차이
둘러보기로 가기
검색하러 가기
Nebulous Maestress (토론 | 기여) 잔글 (sync with english template) |
Nebulous Maestress (토론 | 기여) 잔글 (sync with english template) |
||
29번째 줄: | 29번째 줄: | ||
-->{{#arraydefine:$slink_text|{{ParseInputValues|code=season|@season@|translate=true}}}}<!-- | -->{{#arraydefine:$slink_text|{{ParseInputValues|code=season|@season@|translate=true}}}}<!-- | ||
− | // | + | // Wrap a sort-key span around all items if requested. On other entries, add {{{space}}} or bullet. |
-->{{#ifexpr:{{#arraysearch:$sseason|@season@}}>0 | -->{{#ifexpr:{{#arraysearch:$sseason|@season@}}>0 | ||
− | | •  | + | |{{{space| • }}} |
− | |{{#if:{{{sortkey|}}}| | + | |{{#ifexpr:{{#if:{{{sortkey|}}}|1|0}} or {{#ifeq:{{{sortkey}}}||1|0}} |
− | <span | + | |<span data-sort-value="{{#ifeq:{{{sortkey}}}|||{{#ifeq:{{{sortkey|true}}}|true |
− | + | |{{#expr:{{#if:{{#arrayprint:$slink_text}} | |
|({{ParseInputValues|code=season|@season@|translate=index}}+1)*100 | |({{ParseInputValues|code=season|@season@|translate=index}}+1)*100 | ||
− | |0}} | + | |0}}{{#iferror:{{#expr:{{{2|0}}}>0}}|| + {{{2|0}}}}}}} |
− | + | |{{{sortkey|}}}}}}}"> | |
}}}}<span style="display:inline; margin-right:0; white-space: nowrap"><!-- | }}}}<span style="display:inline; margin-right:0; white-space: nowrap"><!-- | ||
61번째 줄: | 61번째 줄: | ||
|{{#if:{{{all|}}}|{{{all|}}}|{{#arrayprint:$lang_allseasons}}}} | |{{#if:{{{all|}}}|{{{all|}}}|{{#arrayprint:$lang_allseasons}}}} | ||
|{{#arrayprint:$slink_text}}}}]]<!-- | |{{#arrayprint:$slink_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:46 판
이 틀 대한 자세한 내용은 영어 설명서 페이지를 참조하십시오.
용도
이 틀은 관련된 페이지에 다음과 같이 입력하여 사용할 수 있습니다:
{{Season}}
결과... 틀:ParseInputValues[[File:틀:ParseInputValues.png|
24px | link=틀:ParseInputValues | alt=]] [[틀:ParseInputValues|틀:ParseInputValues]]