Template:Title disambig text
From The Kodiak Republic Wiki
Template documentation (for the above template, sometimes hidden or invisible)
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
Visit Template:Title disambig text/doc to edit this text! (How does this work?)