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  





2 Examples  





3 See also  














Template:Title disambig text: Difference between revisions






العربية
Español
Esperanto
فارسی
Føroyskt
Français
Gaeilge


Ilokano
Jawa
Latviešu
ि
Македонски



ି

Simple English
سنڌي
Slovenščina
کوردی
Српски / srpski
Taqbaylit
 
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  



Printable version
 




In other projects  



Wikimedia Commons
 
















Appearance
   

 





Help

Permanently protected template

From Wikipedia, the free encyclopedia
 


Browse history interactively
 Previous editNext edit 
Content deleted Content added
More nocategory
Lua version
Line 1: Line 1:

{{#invoke:String|match|{{{1}}}|%((.-)%)||-1|ignore_errors=true}}<noinclude>

{{Title_disambig_text/logic |nocategory={{{nocategory|}}}

|{{{1|}}}

|{{str_find |nocategory={{{nocategory|}}} |{{{1|}}}|(}}

|{{str_len |nocategory={{{nocategory|}}} |{{{1|}}} }}

}}<noinclude>

{{documentation}}

{{documentation}}

</noinclude>

</noinclude>


Revision as of 09:30, 26 February 2013

Usage

{{Title disambig text|Title (disambig)}}

If page title is of the form Title (disambig), this function will return disambig. If no parenthetical expression is present, returns an empty string.

Write this to use the current page as title:

{{Title disambig text|{{PAGENAME}}}}

Examples

See also


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

Categories: 
Templates based on the String Lua module
String manipulation templates
Text-specific formatting and function templates
Wikipedia article titles
Hidden category: 
Wikipedia template-protected templates
 



This page was last edited on 26 February 2013, at 09:30 (UTC).

This version of the page has been revised. Besides normal editing, the reason for revision may have been that this version contains factual inaccuracies, vandalism, or material not compatible with the Creative Commons Attribution-ShareAlike License.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki