Template:String-handling templates: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Janezdrilc
m nonitalic text (much easier to read)
Ookami (talk | contribs)
m 104 revisions imported
 
(5 intermediate revisions by one other user not shown)
Line 31: Line 31:
       | {{tl|str sub new}}  | Select a substr based on starting and ending index.
       | {{tl|str sub new}}  | Select a substr based on starting and ending index.
       | {{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.
      | {{tl|Plain text}}, {{tl|Nowiki}}    | Strips wikicode from a string.
   }} }}
   }} }}


Line 57: Line 58:
     | {{Aligned table |style=padding-right:2.5em;
     | {{Aligned table |style=padding-right:2.5em;
       |col1style=width:12.5em;text-align:right;white-space:nowrap;padding-right:0.75em;
       |col1style=width:12.5em;text-align:right;white-space:nowrap;padding-right:0.75em;
       | {{tl|delink}}              | Removes wikilink brackets (wikicode).
       | {{tl|delink}}, {{tl|trim brackets}}              | Removes wikilink brackets (wikicode); ''all'' or ''outer only''.
       | {{tl|remove file prefix}}  | Removes "File:" (or "Image:") from filenames.
       | {{tl|remove file prefix}}  | Removes "File:" (or "Image:") from filenames.
       | {{tl|PAGENAMEBASE}}        | To trim off any parenthesis text at the end of a string (disambiguation).
       | {{tl|PAGENAMEBASE}}        | To trim off any parenthesis text at the end of a string (disambiguation).
Line 117: Line 118:
     | {{tl|ASCII code}}    | Returns the ASCII value of a single character.
     | {{tl|ASCII code}}    | Returns the ASCII value of a single character.
     | {{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.
    | {{tl|Isnumeric}}    | Returns number when true, blank when not numeric.
     |   |  
     |   |  
     | {{tl|Count on page}} | Counts how many times a string is used on a page  
     | {{tl|Count on page}} | Counts how many times a string is used on a page  
Line 122: Line 124:
     |   |  
     |   |  
     <!---(Technical)--->
     <!---(Technical)--->
    | [[Module:String]]    |
     | [[mw:Help:Magic words|...Magic words]] | {{noitalic|About <code><nowiki>{{padleft:&#124;}}</nowiki></code>.}}
     | [[mw:Help:Magic words|...Magic words]] | {{noitalic|About <code><nowiki>{{padleft:&#124;}}</nowiki></code>.}}
     | [[mw:Help:Extension:ParserFunctions|...ParserFunctions]] | {{noitalic|About <code><nowiki>{{#titleparts:&#124;}}, {{#expr:&#124;}}, {{#ifeq:&#124;}}, </nowiki></code> etc.}}
     | [[mw:Help:Extension:ParserFunctions|...ParserFunctions]] | {{noitalic|About <code><nowiki>{{#titleparts:&#124;}}, {{#expr:&#124;}}, {{#ifeq:&#124;}}, </nowiki></code> etc.}}
  }} }}
  }} }}
| group12 = Generic: [[:Module:String]]


<!--------------------- (disabled) ------------------------>
<!--------------------- (disabled) ------------------------>

Latest revision as of 14:49, 3 September 2020