• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Textfix

  • Template
  • Talk
  • Language
  • Watch
  • Edit
Template documentation[view] [edit] [history] [purge]

The {{tf}} or {{textfix}} template corrects the inputted value into acceptable Wikipedia formatting (i.e., capitalized first letter of first word with lower case for all further letters and words).

Usage

edit

The primary use of this template is as a meta-template, called within another template to ensure that a user's inputted value is outputted in the proper format. This template should not be used in instances where the inputted value might be a name of a person or place, as it will not capitalize any words other than the first.

{{tf | parameter 1 | parameter 2 | parameter 3 }}

If only parameter 1 is inputted, then parameter 1 is text fixed. Otherwise, write either w or wiki into parameter 1 which will cause the final result to be a wikilink — either parameter 2 as the destination link and shown result or parameter 2 as the destination link with parameter 3 as the shown result.

Please note: The wikilink function will only be applied if the article in question exists. Otherwise, the template will solely return the shown result.

Examples

edit

Input
{{tf | horror fiction }}
{{tf | w | horror fiction }}
{{tf | wiki | horror fiction }}
{{tf | w | horror fiction | horror }}
{{tf | wiki | horror fiction | horror }}

Output
Horror fiction
Horror fiction
Horror fiction
Horror
Horror

The above documentation is transcluded from Template:Textfix/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Textfix&oldid=262350456"
Last edited on 6 January 2009, at 18:34

Languages

    • भोजपुरी
    • Bahasa Melayu
    • Simple English
    • Српски / srpski
    • Tiếng Việt
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 6 January 2009, at 18:34 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop