Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  Parameters  







2 TemplateData  





3 See also  














Template:Mono






Аԥсшәа
العربية

Asturianu
Авар
Azərbaycanca
Basa Bali

 / Bân-lâm-gú
Беларуская
Беларуская (тарашкевіца)


Bosanski
Буряад
Català
ChiTumbuka
Corsu
Dansk
الدارجة
Deutsch
Ελληνικά
Español
Esperanto
فارسی
Fiji Hindi
Føroyskt
Français

/Hak-kâ-ngî

Հայերեն
ि
Ilokano
Bahasa Indonesia
Interlingua
Íslenska
Italiano
Kurdî
Кыргызча
Ladin
Latina
Lëtzebuergesch
Magyar
ि
Македонски

Māori
مصرى
Bahasa Melayu
 / Mìng-dĕ̤ng-nḡ
Мокшень
Монгол

Nederlands

Norsk bokmål
ି
Oʻzbekcha / ўзбекча

Português
Română
Русский
Scots
Simple English
سنڌي
Slovenščina
Soomaaliga
کوردی
Српски / srpski
Sunda
Svenska
Tagalog
ி
Татарча / tatarça
 


Türkçe
Українська
اردو
Tiếng Vit


 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
MediaWiki
Meta-Wiki
Wikimedia Outreach
Multilingual Wikisource
Wikispecies
Wikibooks
Wikidata
Wikifunctions
Wikimania
Wikisource
Wikiversity
Wiktionary
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 

(Redirected from Template:Tt)

{{{1}}}

  • {{ttt}}
  • Usage

    {{mono|text to format here}}

    renders as:

    text to format here

    This template is for formatting short bits of content (the only parameter) as monospaced (nonproportional) text. It is simply a quick shorthand for the necessary CSS code. It is a replacement for <tt>...</tt>, which is an obsolete element under HTML5. (Non-conforming features)

    This template should be used where the content is being rendered in monospaced text for purely stylistic/display reasons, where this display has no particular semantic significance.

    Itshould not be used to indicate information with these semantics:

    Itcannot be used to mark up multiple paragraphs, sections or other block elements, as it uses <span>, which is an inline element. Use {{monodiv}} and {{pre}} for multiple blocks of text, or use multiple instances of {{Mono}} for each individual line.

    When the content ends with a single closing curly brace (}), the content should be followed by <nowiki/>, for example, to mark up {foo}, use {{mono|{foo}<nowiki/>}}or{{mono|<nowiki>{foo}</nowiki>}}.

    If the content contains pipe characters (|) not surrounded by <nowiki>...</nowiki>, they must be escaped with &#124;or{{!}}.

    This template should not be used in links as it can affect later transclusions.

    Parameters

    There are two parameters:

    |1= or unnamed
    The content to format as monospaced. If the content contains a = character, the parameter must be numbered or the template will break. (The parameter does not need to be numbered if the = character is surrounded by <nowiki>...</nowiki>, or if it is escaped as &#61;.) For backward compatibility with an old, merged-in template, this parameter can also be called |2=.
    |needs_review=yes
    Used (e.g. by botsorAWB scripts) to indicate replacement of now-obsolete <tt>...</tt> markup with {{mono|...}} markup. This template displays nothing and presently does no categorization, though a cleanup category can be created if necessary. It indicates that the markup may need to be changed to something more semantically meaningful, such as <code>...</code>, <samp>...</samp>, or <kbd>...</kbd>.

    TemplateData

    This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Mono in articles based on its TemplateData.

    TemplateData for Mono

    This template is for formatting short bits of content as monospaced text.
    Content1
    2

    The content to format as monospaced.

    Needs Review?needs_review

    Used (e.g. by botsorAWB scripts) to indicate replacement of now-obsolete <tt>...</tt> markup with {{mono|...}} markup. This template displays nothing and presently does no categorization, though a cleanup category can be created if necessary. It indicates that the markup may need to be changed to something more semantically meaningful, such as <code>...</code>, <samp>...</samp>, or <kbd>...</kbd>.

    Auto value
    yes

    See also


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Mono&oldid=920965783"

    Categories: 
    Templates using TemplateStyles
    Typing-aid templates
    Hidden categories: 
    Wikipedia template-protected templates
    Templates not safe for use in citation templates
    Templates using TemplateData
     



    This page was last edited on 13 October 2019, at 01:15 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki