תבנית:Str right: הבדלים בין גרסאות בדף

יצירת דף עם התוכן "<includeonly>{{{{{|safesubst:}}}#ifexpr: {{{2|0}}} < 0 |{{{1}}} |{{{{{|safesubst:}}}#ifexpr: {{{2|0}}}+1 > {{{{{|safesubst:}}}#invoke:String|len|s={{{1}}}}} | |..."
 
אין תקציר עריכה
 
(8 גרסאות ביניים של 3 משתמשים אינן מוצגות)
שורה 1: שורה 1:
<includeonly>{{{{{|safesubst:}}}#ifexpr: {{{2|0}}} < 0
<includeonly>{{#invoke:ParamValidator|validateparams|module_options=יחידה:PV-options}}</includeonly><includeonly>{{{{{|safesubst:}}}#ifexpr: {{{2|0}}} < 0
|{{{1}}}  
|{{{1}}}  
|{{{{{|safesubst:}}}#ifexpr: {{{2|0}}}+1 > {{{{{|safesubst:}}}#invoke:String|len|s={{{1}}}}} | |
|{{{{{|safesubst:}}}#ifexpr: {{{2|0}}}+1 > {{{{{|safesubst:}}}#invoke:String|len|s={{{1}}}}} | |
{{{{{|safesubst:}}}#Invoke:String|sub|s={{{1}}}|{{{{{|safesubst:}}}#expr:{{{2|0}}}+1}}|nocategory={{{nocategory|}}}}} }}
{{{{{|safesubst:}}}#Invoke:String|sub|s={{{1}}}|{{{{{|safesubst:}}}#expr:{{{2|0}}}+1}}|nocategory={{{nocategory|}}}}} }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
יצירת תת-מחרוזת שהיא סופה של מחרוזת נתונה.
שימוש: <nowiki>{{Str right|מחרוזת|מרחק מההתחלה (על כמה תווים לדלג)}}</nowiki>.{{ש}}
דוגמה: <nowiki>{{Str right|הדג נחש|2}}</nowiki>{{ש}}
תוצאה: {{Str right|הדג נחש|2}}
[[קטגוריה:תבניות לעיבוד מחרוזות]]
[[קטגוריה:תבניות לעיבוד מחרוזות]]
</noinclude>
<templatedata>
{
"params": {
"1": {
              "type": "string",
"required": true,
"label": "המחרוזת הנתונה"
},
"2": {
              "type": "number",
"required": true,
"label": "מרחק מההתחלה"
},
"nocategory": {}
},
"format": "inline"
}
</templatedata></noinclude>