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

אין תקציר עריכה
אין תקציר עריכה
 
(7 גרסאות ביניים של 2 משתמשים אינן מוצגות)
שורה 1: שורה 1:
<noinclude>{{ניהול פרמטרים/תוכן}}</noinclude><includeonly>{{#invoke:ParamValidator|validateparams|module_options=יחידה:PV-options}}</includeonly><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}}
[[קטגוריה:תבניות לעיבוד מחרוזות]]
[[קטגוריה:תבניות לעיבוד מחרוזות]]
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"1": {},
"1": {
"2": {},
              "type": "string",
"required": true,
"label": "המחרוזת הנתונה"
},
"2": {
              "type": "number",
"required": true,
"label": "מרחק מההתחלה"
},
"nocategory": {}
"nocategory": {}
},
},