SigServer:SignatureMath: Difference between revisions

Line 287: Line 287:
  <nowiki>{{ truncate("Foobar", 4, "..") }} <!-- Returns "Fo.." --></nowiki>
  <nowiki>{{ truncate("Foobar", 4, "..") }} <!-- Returns "Fo.." --></nowiki>
  <nowiki>{{ truncate("Foob", 4, "..") }}  <!-- Returns "Foob" --></nowiki>
  <nowiki>{{ truncate("Foob", 4, "..") }}  <!-- Returns "Foob" --></nowiki>
==== truncatew ====
''string'' '''truncatew'''(''mixed'' string, ''number'' width[, ''string'' font[, ''number'' size[, ''string'' appendage]]])
Returns the string truncated to specified width in pixels. Default font is ''verdana''. Default size is ''12'' pixels. If ''appendage'' is set it will be appended when truncated.
Example:
<nowiki>{{ truncatew("Foobar", 60) }}                      <!-- Returns "Foobar" --></nowiki>
<nowiki>{{ truncatew("Foobar", 30) }}                      <!-- Returns "Foo" --></nowiki>
<nowiki>{{ truncatew("Foobar", 30, "comic", 10) }}        <!-- Returns "Foo" --></nowiki>
<nowiki>{{ truncatew("Foobar", 30, "comic", 10, "...") }}  <!-- Returns "Fo..." --></nowiki>


==== uc ====
==== uc ====
256

edits

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.