틀:Str rightc: 두 판 사이의 차이

잔글 (판 1개를 가져왔습니다)
편집 요약 없음
 
4번째 줄: 4번째 줄:
--skip complex processing & return {3}-->{{{3|}}}<!--
--skip complex processing & return {3}-->{{{3|}}}<!--
-->}}<!--endif param. 1 not empty--></includeonly><noinclude>
-->}}<!--endif param. 1 not empty--></includeonly><noinclude>
[[Category:文字列処理テンプレート]]
{{documentation}}
</noinclude>
</noinclude>

2020년 11월 29일 (일) 23:28 기준 최신판

틀 설명문서 [편집] [역사] [새로 고침]

사용법

{{str rightc|<string>|<count>}}
{{str rightc|<string>|<count>|<result if empty>}}

<count>의 개수에 맞는 글자를 오른쪽에서부터 세서 반환합니다.

예시

  • {{str rightc |죽는 날까지 하늘을 우러러 한점 부끄럼이 없기를|10}} → 점 부끄럼이 없기를
  • {{str rightc |죽는 날까지 하늘을 우러러 한점 부끄럼이 없기를|1}} → 를
  • {{str rightc |죽는 날까지 하늘을 우러러 한점 부끄럼이 없기를|0}}
  • {{str rightc | |1 |빈 스트링}} → 빈 스트링
  • {{str rightc |123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.1 |99}} → 3456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.1