Difference between revisions of "Template:String-handling templates"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
m (Sardanaphalus moved page Template:Navbox string handling templates to Template:Navbox string-handling templates: Missing hyphen (compound adjective))
(name/title update following move, state extension and typo correction, group11 name)
Line 1: Line 1:
{{navbox
+
{{Navbox
| title= String handling templates
+
| name = Navbox string-handling templates
| name=Template:Navbox string handling templates
+
| title = String-handling templates
| state={{{state}|}}}
+
| state = {{{state|{{{1|}}}}}}
| tracking = no <!-- keep all these string templates (by /doc pages) out of the tracking category -->
+
| tracking = no <!--(keep all these string templates (by /doc pages) out of the tracking category)-->
 +
 
 
| group1 = [[Trim (programming)|Trim]] by counting
 
| group1 = [[Trim (programming)|Trim]] by counting
| list1=
+
| list1 =
 
* {{tl|Str mid}} – To return a substring, specified by its position and length.
 
* {{tl|Str mid}} – To return a substring, specified by its position and length.
 
* {{tl|Trunc}} – To trim down to a specified number of characters.
 
* {{tl|Trunc}} – To trim down to a specified number of characters.
Line 18: Line 19:
 
* {{tl|Str index}} – Returns a given character from a string, but not accented letters.
 
* {{tl|Str index}} – Returns a given character from a string, but not accented letters.
  
| group2=Trim by checking
+
| group2 = Trim by checking
| list2=
+
| list2 =
 
* {{tl|Trim}} – To trim any leading or trailing whitespace ({{tl|Strip whitespace}} does so too, but is less effective)
 
* {{tl|Trim}} – To trim any leading or trailing whitespace ({{tl|Strip whitespace}} does so too, but is less effective)
 
* {{tl|First word}} – To trim down to the first space.
 
* {{tl|First word}} – To trim down to the first space.
Line 26: Line 27:
 
* {{tl|Str number/trim}} – To trim down to the beginning numbers.
 
* {{tl|Str number/trim}} – To trim down to the beginning numbers.
  
| group3= Insert strings
+
| group3 = Insert strings
|list3=
+
| list3 =
 
* {{tl|Loop}} – Repeat character string n times
 
* {{tl|Loop}} – Repeat character string n times
 
* {{tl|Replace}} – Returns the string, after replacing ''all'' occurrences of a specified string with another string.
 
* {{tl|Replace}} – Returns the string, after replacing ''all'' occurrences of a specified string with another string.
Line 34: Line 35:
 
* {{tl|Str rep|Str rep}} – Returns the string, after replacing the first occurrence of a specified string with another string.
 
* {{tl|Str rep|Str rep}} – Returns the string, after replacing the first occurrence of a specified string with another string.
  
|group4= Length
+
| group4 = Length
|list4=
+
| list4 =
 
* {{tl|Str len}} – Returns a string's length.
 
* {{tl|Str len}} – Returns a string's length.
 
* {{tl|iflenge}} – IF LENgth Greater than or Equal to.
 
* {{tl|iflenge}} – IF LENgth Greater than or Equal to.
Line 43: Line 44:
 
* {{tl|Str ≤ ≥ len}} – To check if a string is "shorter", "equal", or "longer" than a given length.
 
* {{tl|Str ≤ ≥ len}} – To check if a string is "shorter", "equal", or "longer" than a given length.
  
| group5=Analyse string
+
| group5 = Analyse string
| list5=
+
| list5 =
 
* {{tl|Str endswith}} – To check if a string ends with a given string.
 
* {{tl|Str endswith}} – To check if a string ends with a given string.
 
* {{tl|Str find}} – Returns the numerical location of a given string in a string.
 
* {{tl|Str find}} – Returns the numerical location of a given string in a string.
Line 56: Line 57:
 
* {{tl|a or an}} – Takes a noun and produces the appropriate indefinite article, based on whether the first letter is a vowel.
 
* {{tl|a or an}} – Takes a noun and produces the appropriate indefinite article, based on whether the first letter is a vowel.
  
| group6=Trim, dedicated
+
| group6 = Trim, dedicated
| list6=
+
| list6 =
 
* {{tl|WikiProjectbasename}} - Removes "WikiProject" from a pagename
 
* {{tl|WikiProjectbasename}} - Removes "WikiProject" from a pagename
 
* {{tl|Remove unranked}} - Removes the string "unranked_" from the left of a string (taxonomy).
 
* {{tl|Remove unranked}} - Removes the string "unranked_" from the left of a string (taxonomy).
Line 66: Line 67:
 
* {{tl|Remove file prefix}}—Removes "File:" or "Image:" from filenames.
 
* {{tl|Remove file prefix}}—Removes "File:" or "Image:" from filenames.
  
|group11=Technical developments
+
| group11 = Technical
|list11=
+
| list11 =
 
* [[Module:String]]
 
* [[Module:String]]
 
* [[mw:Help:Magic words]] – About <code><nowiki>{{padleft:|}}</nowiki></code>.
 
* [[mw:Help:Magic words]] – About <code><nowiki>{{padleft:|}}</nowiki></code>.
 
* [[mw:Help:Extension:ParserFunctions]] – About <code><nowiki>{{#titleparts:|}}, {{#expr:|}}, {{#ifeq:|}}, </nowiki></code> etc.
 
* [[mw:Help:Extension:ParserFunctions]] – About <code><nowiki>{{#titleparts:|}}, {{#expr:|}}, {{#ifeq:|}}, </nowiki></code> etc.
  
|group12=Feature requests
+
| group12 = Feature requests
|list12
+
| list12 <!-- = -->
 
* [[bugzilla:6455]] – Set $wgPFEnableStringFunctions = true on WMF wikis
 
* [[bugzilla:6455]] – Set $wgPFEnableStringFunctions = true on WMF wikis
 
* [[bugzilla:26092]] – Enable or install string parsing wikimarkup functionality on WMF wikis
 
* [[bugzilla:26092]] – Enable or install string parsing wikimarkup functionality on WMF wikis
  
<!-- not in a navbox
+
<!----Not in a navbox:
|group13=[[Wikipedia:Template sandbox and test cases|Sandboxes and test cases]]:
+
| group13 = [[Wikipedia:Template sandbox and test cases|Sandboxes, testcases]]
|list13=
+
| list13 =
 
 
 
* {{tl|Str find/sandbox}}
 
* {{tl|Str find/sandbox}}
 
* {{tl|Str index/getchar/sandbox}}
 
* {{tl|Str index/getchar/sandbox}}
Line 95: Line 95:
 
* {{tl|Str ≠ len/sandbox}}
 
* {{tl|Str ≠ len/sandbox}}
 
* {{tl|Str ≠ len/testcases}}
 
* {{tl|Str ≠ len/testcases}}
-->
+
----->
| below=  
+
 
 +
| belowclass = hlist
 +
| below =
 
* [[:Category:String manipulation templates]]
 
* [[:Category:String manipulation templates]]
 
* [[m:Category:String templates]]
 
* [[m:Category:String templates]]
 
* [[:commons:Category:String manipulation templates]]
 
* [[:commons:Category:String manipulation templates]]
| belowclass=hlist
 
}}<noinclude>
 
  
{{documentation}}
+
}}<noinclude>{{Documentation}}</noinclude>
</noinclude>
 

Revision as of 06:36, 7 July 2014

Documentation icon Template documentation[create]