Difference between revisions of "Template:Fixcaps"

From blackwiki
Jump to navigation Jump to search
imported>Wikid77
(removed extra spaces in 24 {Str case title word|..}, etc.)
imported>Frietjes
 
(13 intermediate revisions by 5 users not shown)
Line 3: Line 3:
 
-  Template:Fixcaps - Sets lowercase/capitalized words in slashed title
 
-  Template:Fixcaps - Sets lowercase/capitalized words in slashed title
 
-========================================================================
 
-========================================================================
-                             (see NOTES at bottom)
+
-                               (see NOTES at bottom)
 
--></noinclude>{{
 
--></noinclude>{{
   {{{|safesubst:}}}#switch:{{padleft:|1|{{{1|wORd}}} }}
+
   {{{|safesubst:}}}#switch:{{ {{{|safesubst:}}}padleft:|1|{{{1|wORd}}} }}
   | " = {{ {{{|safesubst:}}}#ifeq:{{#titleparts:{{{1}}}|1|1}}|"|"<noinclude><!--
+
   | " = {{ {{{|safesubst:}}}#ifeq:{{ {{{
     else--></noinclude>|{{ {{{|safesubst:}}}lc:{{#titleparts:{{{1}}}|1|1}} }}&#32;}}
+
      |safesubst:}}}#titleparts:{{{1}}}|1|1}}|"|"<noinclude><!--
 +
     else--></noinclude>|{{ {{{|safesubst:}}}lc:{{ {{{
 +
      |safesubst:}}}#titleparts:{{{1}}}|1|1}} }}&#32;}}
 
   | ^ = {{ {{{|safesubst:}}}str right
 
   | ^ = {{ {{{|safesubst:}}}str right
 
     |{{ {{{|safesubst:}}}#titleparts:{{{1}}}|1|1}}|1}}&#32;
 
     |{{ {{{|safesubst:}}}#titleparts:{{{1}}}|1|1}}|1}}&#32;
   | + = {{ {{{|safesubst:}}}lc:{{ {{{|safesubst:}}}str right|{{#titleparts:{{{1}}}|1|1}}|1}}}}&#32;
+
   | + = {{ {{{|safesubst:}}}lc:{{ {{{|safesubst:}}}str right
 +
    |{{ {{{|safesubst:}}}#titleparts:{{{1}}}|1|1}}|1}}}}&#32;
 
   | #default = {{
 
   | #default = {{
 
   {{{|safesubst:}}}ucfirst:{{
 
   {{{|safesubst:}}}ucfirst:{{
   {{{|safesubst:}}}lc:{{
+
   {{{|safesubst:}}}lc:{{ {{{
  {{{|safesubst:}}}#titleparts:{{{1}}}|1|1}} }} }}&#32;
+
    |safesubst:}}}#titleparts:{{{1}}}|1|1}}}}}}&#32;
 
}}<noinclude><!--endswitch (padleft for 1)--
 
}}<noinclude><!--endswitch (padleft for 1)--
 
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 
--></noinclude>{{ {{{|safesubst:}}}Str case title word
Line 63: Line 66:
 
   |{{ {{{|safesubst:}}}#titleparts:{{{1}}}|1|24}}}}<noinclude><!--
 
   |{{ {{{|safesubst:}}}#titleparts:{{{1}}}|1|24}}}}<noinclude><!--
 
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 
--></noinclude>{{ {{{|safesubst:}}}Str case title word
   |{{ {{{|safesubst:}}}#titleparts:{{{1}}}|1|25}}}}<noinclude>
+
   |{{ {{{|safesubst:}}}#titleparts:{{{1}}}|1|25}}}}<noinclude><!--
 
+
------------------------------------------------------------- Parameter 2
<br>The '''[[Template:Fixcaps]]''' sets the lowercase or capital-letter format of each word (or phrase) in a slash-encoded title, as with a book or film title.
+
--></noinclude>{{
: '''Usage:''' <nowiki>{{Fixcaps|GOnE wiTH tHE /winD}}</nowiki> &rarr; {{Fixcaps|GOnE wiTH tHE /winD}}
+
{{{|safesubst:}}}#switch:{{ {{{|safesubst:}}}padleft:|1|{{{2|}}} }}
::: &nbsp; {&#123;fixcaps|JOHN/DOE,/"/PROPER/PUNCTUATION/OF/TITLES"}} &rarr; {{fixcaps|JOHN/DOE,/"/PROPER/PUNCTUATION/OF/TITLES"}}
+
| =
Most words will be displayed with a capital-letter, followed by all lowercase letters, while a [[preposition]] or article (a/an/the) will be shown in lowercase letters. A leading "+" forces lowercase. A leading [[caret]] symbol ("^") will cause the text to display unchanged, so "^woRDs" would show "woRDs". Prepositions include: ''about, above, after, at, before, by, for, in, of, on, with'' and ''without''. Each word to capitalize must be preceded by a slash ("/"), but all spaces could be slashes, and prepositions would still display in lowercase letters. Only 25 slashes are allowed, or about 40-45 words (2 lines of text), and no wikilinks inside (see below: [[#Limitations|Limitations]]). The resulting title, with capital letters, can be copy-pasted back into the text, using the template as an editing gadget.
+
| [ = {{{2|[[Testing 2]]}}}&#32;
 
+
| ] = {{{2|]] Testing 2b}}}&#32;
An extra space is added at the end of each slashed part except after a single quotation mark, left parenthesis, [[em dash]], or apostrophes (<nowiki>'''</nowiki>).
+
| #default = {{
 
+
  {{{|safesubst:}}}#switch:{{ {{{|safesubst:}}}padleft:|1|{{{2|wORd}}} }}
== Examples ==
+
  | " = {{ {{{|safesubst:}}}#ifeq:{{ {{{
The following are some other examples:
+
      |safesubst:}}}#titleparts:{{{2}}}|1|1}}|"|"<noinclude><!--
:* <nowiki>{{fixcaps|A./EINSTEIN. ''/oUT OF/mY/lATEr/YEaRS''}}</nowiki> &rarr; {{fixcaps|A./EINSTEIN. ''/oUT OF/mY/lATEr/YEaRS''}}
+
    else--></noinclude>|{{ {{{|safesubst:}}}lc:{{ {{{
 
+
      |safesubst:}}}#titleparts:{{{2}}}|1|1}} }}&#32;}}
:* <nowiki>{{fixcaps|W./MOZART. ''/eiNE KLEINE /nachTMUSIK'' (ORCHESTRAL COMPOSITION)}}</nowiki> &rarr; {{fixcaps|W./MOZART. ''/eiNE KLEINE /nachTMUSIK'' (ORCHESTRAL COMPOSITION)}}
+
  | ^ = {{ {{{|safesubst:}}}str right
 
+
    |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|1}}|1}}&#32;
:* <nowiki>{{fixcaps|+WHEN THE/^UN/ORGANIZATION BEGAN IN 1946.}}</nowiki> &rarr; {{fixcaps|+WHEN THE/^UN/ ORGANIZATION BEGAN IN 1946.}}
+
  | + = {{ {{{|safesubst:}}}lc:{{ {{{|safesubst:}}}str right
 
+
    |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|1}}|1}}}}&#32;
A major use for the template would be in reformatting long lists of book titles entered as ALL-CAPS text, while inserting formatting codes for italics, footnotes or bolded volume numbers. Occasionally, entire sections or paragraphs of an article might contain ALL UPPERCASE TEXT, and the template can be used to more easily downcase all the improperly formatted text.
+
  | #default = {{
:* <nowiki>{{fixcaps|THE ''/TIMES OF /INDIA'' REPORTED MANY CASES OF UNREST IN BOTH EARLY AND LATE YEARS OF THE /BRITISH /RAJ, INTO THE 20TH CENTURY.}}</nowiki> &rarr;<br>{{fixcaps|THE ''/TIMES OF /INDIA'' REPORTED MANY CASES OF UNREST IN BOTH EARLY AND LATE YEARS OF THE /BRITISH /RAJ, INTO THE 20TH CENTURY.''}}
+
  {{{|safesubst:}}}ucfirst:{{
 
+
  {{{|safesubst:}}}lc:{{ {{{
Just inserting a few slashes into the text, such as at the start of sentences and town names, can easily salvage a whole paragraph of caps-only text, within 1 minute. Wikilinks are NOT allowed within the text.
+
    |safesubst:}}}#titleparts:{{{2}}}|1|1}}}}}}&#32;
 
+
}}<noinclude><!--endswitch (padleft for 1)--
== Limitations ==
+
--></noinclude>{{ {{{|safesubst:}}}Str case title word
Fixcaps is limited by restrictions set in the [[MediaWiki]] software, version {{CURRENTVERSION}}, of about 40-45 words (255 characters, or about 2 lines of text). Wikilinks are NOT allowed within the text, so start another {&#123;fixcaps}} after a wikilink. The encoding of the text is limited to 25 slashes, and the enclosed text cannot display slashes, except using a slash-backslash ("/\/") to display a forward slash. For larger sections, use multiple {&#123;fixcaps}} to handle 26 to 50 or more slashes, or for each 2 lines to text.
+
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|2}}}}<noinclude><!--
 
+
--></noinclude>{{ {{{|safesubst:}}}Str case title word
Special conditions:
+
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|3}}}}<noinclude><!--
:* forcing lowercase letters - put "+" after slash ("/+LOWER") to force text as "lower"
+
--></noinclude>{{ {{{|safesubst:}}}Str case title word
:* forcing uppercase letters - put "^" after slash ("/^eXacT") to force as exact case "eXacT"
+
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|4}}}}<noinclude><!--
Any other character after the slash will cause the words to be all lowercase letters.
+
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 
+
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|5}}}}<noinclude><!--
== See also ==
+
--></noinclude>{{ {{{|safesubst:}}}Str case title word
* [[Template:Strfind short]] - quickly finds a string in a line of text
+
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|6}}}}<noinclude><!--
* [[Template:String_templates_see_also_text|String templates see also text]]
+
--></noinclude>{{ {{{|safesubst:}}}Str case title word
* [[WP:substitution]] and [[Template:Subst]] - explain how to use subst: (<nowiki>{{subst:Fixcaps|(string)}</nowiki>} will permanently fix a block of text)
+
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|7}}}}<noinclude><!--
<!--
+
--></noinclude>{{ {{{|safesubst:}}}Str case title word
-----------------------------------------------------------------------
+
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|8}}}}<noinclude><!--
--NOTES
+
--></noinclude>{{ {{{|safesubst:}}}Str case title word
--
+
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|9}}}}<noinclude><!--
-- NOTE A1: Each word can be a punctuation mark, as well as a string
+
--></noinclude>{{ {{{|safesubst:}}}Str case title word
--      of letters. When separated, apostrophes, quotemarks, left
+
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|10}}}}<noinclude><!--
--      parentheses or dashes are repeated without a trailing space.
+
--></noinclude>{{ {{{|safesubst:}}}Str case title word
--      Other words or characters are followed by a space.
+
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|11}}}}<noinclude><!--
--
+
--></noinclude>{{ {{{|safesubst:}}}Str case title word
-----------------------------------------------------------------------
+
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|12}}}}<noinclude><!--
--HISTORY:
+
--></noinclude>{{ {{{|safesubst:}}}Str case title word
--12May2012 Created to support Template:Fixcaps.
+
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|13}}}}<noinclude><!--
--13May2012 Changed to ignore an empty word (not append a space).
+
--></noinclude>{{ {{{|safesubst:}}}Str case title word
--13May2012 Changed to append a space after words.
+
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|14}}}}<noinclude><!--
--13May2012 Prepositions: after/before, into/onto, over/under, without.
+
--></noinclude>{{ {{{|safesubst:}}}Str case title word
--16May2012 Added NOTES comments to explain template operation.
+
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|15}}}}<noinclude><!--
--16May2012 Added HISTORY comments to log major changes (not typos).
+
--></noinclude>{{ {{{|safesubst:}}}Str case title word
--16May2012 Changed to allow lead caret "^" to show text unchanged.
+
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|16}}}}<noinclude><!--
--16May2012 Changed to allow lead caret "+" to force lowercase.
+
--></noinclude>{{ {{{|safesubst:}}}Str case title word
--16May2012 Added doctext to use "&#32;" to force all lowercase text.
+
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|17}}}}<noinclude><!--
--17May2012 Noted limit 40-45 words (255 characters, or 2 text lines).
+
--></noinclude>{{ {{{|safesubst:}}}Str case title word
--17May2012 Rewrote to use {|safesubst:} everywhere, for [[WP:Subst]].
+
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|18}}}}<noinclude><!--
 
+
--></noinclude>{{ {{{|safesubst:}}}Str case title word
[[Category:Wikipedia formatting and function templates|Str case title word]]
+
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|19}}}}<noinclude><!--
[[Category:Templates with minimum expansion depth]]
+
--></noinclude>{{ {{{|safesubst:}}}Str case title word
</noinclude>
+
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|20}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|21}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|22}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|23}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|24}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{2}}}|1|25}}}}
 +
}}<noinclude><!--endswitch {2} passed --
 +
------------------------------------------------------------- Parameter 3
 +
--></noinclude>{{
 +
{{{|safesubst:}}}#switch:{{ {{{|safesubst:}}}padleft:|1|{{{3|}}} }}
 +
| =
 +
| [ = {{{3|[[Testing 3]]}}}&#32;
 +
| ] = {{{3|]] Testing 3b}}}&#32;
 +
| #default = {{
 +
  {{{|safesubst:}}}#switch:{{ {{{|safesubst:}}}padleft:|1|{{{3|wORd}}} }}
 +
  | " = {{ {{{|safesubst:}}}#ifeq:{{ {{{
 +
      |safesubst:}}}#titleparts:{{{3}}}|1|1}}|"|"<noinclude><!--
 +
    else--></noinclude>|{{ {{{|safesubst:}}}lc:{{ {{{
 +
      |safesubst:}}}#titleparts:{{{3}}}|1|1}} }}&#32;}}
 +
  | ^ = {{ {{{|safesubst:}}}str right
 +
    |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|1}}|1}}&#32;
 +
  | + = {{ {{{|safesubst:}}}lc:{{ {{{|safesubst:}}}str right
 +
    |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|1}}|1}}}}&#32;
 +
  | #default = {{
 +
  {{{|safesubst:}}}ucfirst:{{
 +
  {{{|safesubst:}}}lc:{{ {{{
 +
    |safesubst:}}}#titleparts:{{{3}}}|1|1}}}}}}&#32;
 +
}}<noinclude><!--endswitch (padleft for 1)--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|2}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|3}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|4}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|5}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|6}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|7}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|8}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|9}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|10}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|11}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|12}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|13}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|14}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|15}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|16}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|17}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|18}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|19}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|20}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|21}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|22}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|23}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|24}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{3}}}|1|25}}}}
 +
}}<noinclude><!--endswitch {3} passed --
 +
------------------------------------------------------------- Parameter 4
 +
--></noinclude>{{
 +
{{{|safesubst:}}}#switch:{{ {{{|safesubst:}}}padleft:|1|{{{4|}}} }}
 +
| =
 +
| [ = {{{4|[[Testing 4]]}}}&#32;
 +
| ] = {{{4|]] Testing 4b}}}&#32;
 +
| #default = {{
 +
  {{{|safesubst:}}}#switch:{{ {{{|safesubst:}}}padleft:|1|{{{4|wORd}}} }}
 +
  | " = {{ {{{|safesubst:}}}#ifeq:{{ {{{
 +
      |safesubst:}}}#titleparts:{{{4}}}|1|1}}|"|"<noinclude><!--
 +
    else--></noinclude>|{{ {{{|safesubst:}}}lc:{{ {{{
 +
      |safesubst:}}}#titleparts:{{{4}}}|1|1}} }}&#32;}}
 +
  | ^ = {{ {{{|safesubst:}}}str right
 +
    |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|1}}|1}}&#32;
 +
  | + = {{ {{{|safesubst:}}}lc:{{ {{{|safesubst:}}}str right
 +
    |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|1}}|1}}}}&#32;
 +
  | #default = {{
 +
  {{{|safesubst:}}}ucfirst:{{
 +
  {{{|safesubst:}}}lc:{{ {{{
 +
    |safesubst:}}}#titleparts:{{{4}}}|1|1}}}}}}&#32;
 +
}}<noinclude><!--endswitch (padleft for 1)--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|2}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|3}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|4}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|5}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|6}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|7}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|8}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|9}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|10}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|11}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|12}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|13}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|14}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|15}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|16}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|17}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|18}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|19}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|20}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|21}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|22}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|23}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|24}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{4}}}|1|25}}}}
 +
}}<noinclude><!--endswitch {4} passed --
 +
------------------------------------------------------------- Parameter 5
 +
--></noinclude>{{
 +
{{{|safesubst:}}}#switch:{{ {{{|safesubst:}}}padleft:|1|{{{5|}}} }}
 +
| =
 +
| [ = {{{5|[[Testing 5]]}}}&#32;
 +
| ] = {{{5|]] Testing 5b}}}&#32;
 +
| #default = {{
 +
  {{{|safesubst:}}}#switch:{{ {{{|safesubst:}}}padleft:|1|{{{5|wORd}}} }}
 +
  | " = {{ {{{|safesubst:}}}#ifeq:{{ {{{
 +
      |safesubst:}}}#titleparts:{{{5}}}|1|1}}|"|"<noinclude><!--
 +
    else--></noinclude>|{{ {{{|safesubst:}}}lc:{{ {{{
 +
      |safesubst:}}}#titleparts:{{{5}}}|1|1}} }}&#32;}}
 +
  | ^ = {{ {{{|safesubst:}}}str right
 +
    |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|1}}|1}}&#32;
 +
  | + = {{ {{{|safesubst:}}}lc:{{ {{{|safesubst:}}}str right
 +
    |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|1}}|1}}}}&#32;
 +
  | #default = {{
 +
  {{{|safesubst:}}}ucfirst:{{
 +
  {{{|safesubst:}}}lc:{{ {{{
 +
    |safesubst:}}}#titleparts:{{{5}}}|1|1}}}}}}&#32;
 +
}}<noinclude><!--endswitch (padleft for 1)--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|2}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|3}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|4}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|5}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|6}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|7}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|8}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|9}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|10}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|11}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|12}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|13}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|14}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|15}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|16}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|17}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|18}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|19}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|20}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|21}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|22}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|23}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|24}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{5}}}|1|25}}}}
 +
}}<noinclude><!--endswitch {5} passed --
 +
------------------------------------------------------------- Parameter 6
 +
--></noinclude>{{
 +
{{{|safesubst:}}}#switch:{{ {{{|safesubst:}}}padleft:|1|{{{6|}}} }}
 +
| =
 +
| [ = {{{6|[[Testing 6]]}}}&#32;
 +
| ] = {{{6|]] Testing 6b}}}&#32;
 +
| #default = {{
 +
  {{{|safesubst:}}}#switch:{{ {{{|safesubst:}}}padleft:|1|{{{6|wORd}}} }}
 +
  | " = {{ {{{|safesubst:}}}#ifeq:{{ {{{
 +
      |safesubst:}}}#titleparts:{{{6}}}|1|1}}|"|"<noinclude><!--
 +
    else--></noinclude>|{{ {{{|safesubst:}}}lc:{{ {{{
 +
      |safesubst:}}}#titleparts:{{{6}}}|1|1}} }}&#32;}}
 +
  | ^ = {{ {{{|safesubst:}}}str right
 +
    |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|1}}|1}}&#32;
 +
  | + = {{ {{{|safesubst:}}}lc:{{ {{{|safesubst:}}}str right
 +
    |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|1}}|1}}}}&#32;
 +
  | #default = {{
 +
  {{{|safesubst:}}}ucfirst:{{
 +
  {{{|safesubst:}}}lc:{{ {{{
 +
    |safesubst:}}}#titleparts:{{{6}}}|1|1}}}}}}&#32;
 +
}}<noinclude><!--endswitch (padleft for 1)--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|2}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|3}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|4}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|5}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|6}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|7}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|8}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|9}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|10}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|11}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|12}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|13}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|14}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|15}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|16}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|17}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|18}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|19}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|20}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|21}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|22}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|23}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|24}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{6}}}|1|25}}}}
 +
}}<noinclude><!--endswitch {6} passed --
 +
------------------------------------------------------------- Parameter 7
 +
--></noinclude>{{
 +
{{{|safesubst:}}}#switch:{{ {{{|safesubst:}}}padleft:|1|{{{7|}}} }}
 +
| =
 +
| [ = {{{7|[[Testing 7]]}}}&#32;
 +
| ] = {{{7|]] Testing 7b}}}&#32;
 +
| #default = {{
 +
  {{{|safesubst:}}}#switch:{{ {{{|safesubst:}}}padleft:|1|{{{7|wORd}}} }}
 +
  | " = {{ {{{|safesubst:}}}#ifeq:{{ {{{
 +
      |safesubst:}}}#titleparts:{{{7}}}|1|1}}|"|"<noinclude><!--
 +
    else--></noinclude>|{{ {{{|safesubst:}}}lc:{{ {{{
 +
      |safesubst:}}}#titleparts:{{{7}}}|1|1}} }}&#32;}}
 +
  | ^ = {{ {{{|safesubst:}}}str right
 +
    |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|1}}|1}}&#32;
 +
  | + = {{ {{{|safesubst:}}}lc:{{ {{{|safesubst:}}}str right
 +
    |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|1}}|1}}}}&#32;
 +
  | #default = {{
 +
  {{{|safesubst:}}}ucfirst:{{
 +
  {{{|safesubst:}}}lc:{{ {{{
 +
    |safesubst:}}}#titleparts:{{{7}}}|1|1}}}}}}&#32;
 +
}}<noinclude><!--endswitch (padleft for 1)--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|2}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|3}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|4}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|5}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|6}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|7}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|8}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|9}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|10}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|11}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|12}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|13}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|14}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|15}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|16}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|17}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|18}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|19}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|20}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|21}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|22}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|23}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|24}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{7}}}|1|25}}}}
 +
}}<noinclude><!--endswitch {7} passed --
 +
------------------------------------------------------------- Parameter 8
 +
--></noinclude>{{
 +
{{{|safesubst:}}}#switch:{{ {{{|safesubst:}}}padleft:|1|{{{8|}}} }}
 +
| =
 +
| [ = {{{8|[[Testing 8]]}}}&#32;
 +
| ] = {{{8|]] Testing 8b}}}&#32;
 +
| #default = {{
 +
  {{{|safesubst:}}}#switch:{{ {{{|safesubst:}}}padleft:|1|{{{8|wORd}}} }}
 +
  | " = {{ {{{|safesubst:}}}#ifeq:{{ {{{
 +
      |safesubst:}}}#titleparts:{{{8}}}|1|1}}|"|"<noinclude><!--
 +
    else--></noinclude>|{{ {{{|safesubst:}}}lc:{{ {{{
 +
      |safesubst:}}}#titleparts:{{{8}}}|1|1}} }}&#32;}}
 +
  | ^ = {{ {{{|safesubst:}}}str right
 +
    |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|1}}|1}}&#32;
 +
  | + = {{ {{{|safesubst:}}}lc:{{ {{{|safesubst:}}}str right
 +
    |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|1}}|1}}}}&#32;
 +
  | #default = {{
 +
  {{{|safesubst:}}}ucfirst:{{
 +
  {{{|safesubst:}}}lc:{{ {{{
 +
    |safesubst:}}}#titleparts:{{{8}}}|1|1}}}}}}&#32;
 +
}}<noinclude><!--endswitch (padleft for 1)--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|2}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|3}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|4}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|5}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|6}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|7}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|8}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|9}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|10}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|11}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|12}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|13}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|14}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|15}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|16}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|17}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|18}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|19}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|20}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|21}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|22}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|23}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|24}}}}<noinclude><!--
 +
--></noinclude>{{ {{{|safesubst:}}}Str case title word
 +
  |{{ {{{|safesubst:}}}#titleparts:{{{8}}}|1|25}}}}
 +
}}<noinclude><!--endswitch {8} passed-->
 +
{{documentation}}</noinclude>

Latest revision as of 12:10, 12 December 2018

{{{1}}} Template:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title word

50px Template documentation[view] [edit] [history] [purge]

Template:Substituted

The Template:Fixcaps sets the lowercase or capital-letter format of each word (or phrase) in a slash-encoded title, as with a book or film title.

Usage: {{Fixcaps|GOnE wiTH tHE /winD}} → Gone with the Template:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title word
  {{fixcaps|JOHN/DOE,/"/PROPER/PUNCTUATION/OF/TITLES"}} → John Template:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title wordTemplate:Str case title word
  {{fixcaps|SHOW|[[wikilink]]ed|+TEXT.}} → Show [[wikilink]]ed text.
  {{subst:fixcaps|"/SAVE/INSIDE/PAGE"}} → "Save Inside Page"

Most words will be displayed with a capital-letter, followed by all lowercase letters, while a preposition or article (a/an/the) will be shown in lowercase letters. A leading "+" forces lowercase. A leading caret symbol ("^") will cause the text to display unchanged, so "^woRDs" would show "woRDs". Prepositions include: about, above, after, at, before, by, for, in, of, on, with and without. Each word to capitalize must be preceded by a slash ("/"), but all spaces could be slashes, and prepositions would still display in lowercase letters. Only 25 slashes are allowed in each parameter, or about 40-45 words (2 lines of text) per parameter, and a wikilink must be in a separate parameter, not embedded inside other text (see below: Limitations). A total of 8 parameters are allowed, or about 320-360 words.

An extra space is added at the end of each slashed part except after a single quotation mark, left parenthesis, em dash, or apostrophes (''').

This template should normally be substituted when used directly in an article. The text that results from this template, with mixed capital and lowercase letters, will be permanently inserted into the page when it is saved, if the template is substituted. This is desirable when repairing things like blocks of ALL-CAPS WRITING. The template can also be used temporarily in edit mode as a tool for generating the corrected text in preview mode, then copy-pasted back into the text being edited, over the improperly capitalized material.

Please familiarize yourself with Wikipedia:Manual of Style/Titles before using this template for titles of published works. There are multiple styles of title capitalization (high academic, mainstream, and journalistic), and Wikipedia uses the middle approach. The short version: use lowercase for a/an/the, for prepositions shorter than 5 letters, for and/but/or/nor, and for the to of infinitives. The preposition rule means "with" is lower case, "About" is mixed case. The preposition rule applies even when the preposition in question is capitalized when it is not used as a preposition.

Examples

The following are some other examples:

A major use for the template would be in reformatting long lists of book titles entered as ALL-CAPS text, while inserting formatting codes for italics, footnotes or bolded volume numbers. Occasionally, entire sections or paragraphs of an article might contain ALL UPPERCASE TEXT, and the template can be used to more easily downcase all the improperly formatted text.

Just inserting a few slashes into the text, such as at the start of sentences and town names, and putting wikilinks as separate lowercase parameters, can easily salvage a whole paragraph of caps-only text, within 1 minute. Wikilinks are NOT allowed embedded within the text, only as separate parameters (each in vertical bars "|[[link]] |").

Limitations

Fixcaps is limited by restrictions set in the MediaWiki software, version 1.34.2, of about 40-45 words (255 characters, or about 2 lines of text) in each of the 8 parameters. Wikilinks must be separate parameters in bars(|[[Link]]|), not embedded within the text, or else put between 2 {{fixcaps}} around a wikilink; otherwise, an embedded wikilink will repeat 25 times. The encoding of the text is limited to 25 slashes in each parameter, and the enclosed text cannot display slashes, except using a slash-backslash-slash ("/\/") to display a forward slash. A total of eight (8) parameters are allowed, to handle 320-360 words or about 16 lines. For larger sections, use multiple {{fixcaps}} to handle 700 or more words, or for each 16 lines of text.

Special conditions:

  • forcing lowercase letters - put "+" after slash ("/+LOWERS") to force text as "lowers"
  • forcing uppercase letters - put "^" after slash ("/^eXacT") to force as exact case "eXacT"
  • cannot split wikilinks       - invalid: "text|[[|LINKED TEXT|]]|+more"
  • 40-word parameters       - use multiple parameters for each 40 words
  • maximum 8 parameters - use multiple {{fixcaps}} for longer text
  • using WP:Subst   - use {{subst:fixcaps}} to store results upon SAVE of edit.
  • an extra space is added at the end of each slashed part except after a single quotation mark, left parenthesis, em dash, or apostrophes (''').

Any other character after the slash will cause the text to have all lowercase letters.

See also

External links

TitleCase.com— Convert text to title case, uppercase and lowercase