Template:Title disambig text: Difference between revisions
Jump to navigation
Jump to search
(add attribution (via JWB)) |
TheOnlyZac (talk | contribs) m (1 revision imported from templatewiki:Template:Title_disambig_text) |
(No difference)
|
Latest revision as of 02:34, 24 July 2022
This template uses Lua: |
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
- {{Title disambig text|Title (whatever)}} → whatever
- {{Title disambig text|[[Title (whatever)]]}} → whatever
See also
This template uses material from the Wikipedia template Template:Title disambig text, which is released under the Creative Commons Attribution-ShareAlike 3.0 Unported license (view authors). |