Template:Short
From FollowTheScore
This is not finished yet.
The template
{{#ifexpr:{{#len: {{{string|}}} }} > {{#expr:{{{count|25}}}+5}}|{{#sub:{{{string|}}}|0|{{{count|25}}}}}{{{suffix|}}}|{{{string|}}}}}
Usage
This shortens strings. This can be used to shorten URLs or included text.
- Usage
{{Short |string = |count = |suffix = }}
*count: Optional / Default: 25
- The number of displayed characters. It uses a tolerance of 5. So if you define count=10 the string will not be shortened if it is between 1 and 15 characters long.
- suffix: optional / no default for because of wiki markup for URLs
- Example URL