Template:Str left/doc: Difference between revisions

(Created page with "{{Documentation subpage}} <!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: Wikipedia:Wikidata). --> == Usage ==...")
 
Line 52: Line 52:
Note also that the specified length will cause the input string to be padded by repeating it, if this length is larger than the input string length:
Note also that the specified length will cause the input string to be padded by repeating it, if this length is larger than the input string length:
:* <code><nowiki>{{</nowiki> {{BASEPAGENAME}} | Abc. | 10 <nowiki>}}</nowiki></code> &rarr; {{ {{BASEPAGENAME}} | Abc. | 10 }}
:* <code><nowiki>{{</nowiki> {{BASEPAGENAME}} | Abc. | 10 <nowiki>}}</nowiki></code> &rarr; {{ {{BASEPAGENAME}} | Abc. | 10 }}
== Template data ==
{{TemplateData header}}
<templatedata>
{
        "description": "A template to give the <count> substring of characters from the start of the trimmed string ",
        "params": {
                "1": {
                        "label": "String",
                        "description": "The string to be trimmed and counted",
                        "type": "string",
                        "required": true
                },
                "2": {
                        "label": "Count",
                        "description": "Gives the <count> substring of characters from the start of the trimmed string",
                        "type": "number",
                        "required": true
                }
        }
}
</templatedata>


== See also ==
== See also ==