Template:PAGENAMEBASE/doc
From Club Penguin Fanon Wiki
| 40x40px | This template is used on 725,000+ pages. To avoid large-scale disruption and unnecessary server load, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please consider discussing any changes on the talk page before implementing them. |
Usage[edit]
This template returns the current Template:Tld minus (text in parentheses) or the final set of parentheses where more than one set exist.
e.g. {{PAGENAMEBASE}} on page Chiton (genus) returns {{safesubst:#Invoke:String|replace|Chiton (genus)|%s+%b()$||1|false}}
- on Sweet Dreams (Are Made of This) (album) returns {{safesubst:#Invoke:String|replace|Sweet Dreams (Are Made of This) (album)|%s+%b()$||1|false}}
- on Sweet Dreams (Are Made of This) returns {{safesubst:#Invoke:String|replace|Sweet Dreams (Are Made of This)|%s+%b()$||1|false}}
- on Stadion der Freundschaft (Frankfurt (Oder)) returns {{safesubst:#Invoke:String|replace|Stadion der Freundschaft (Frankfurt (Oder))|%s+%b()$||1|false}}
Can also pass an optional page parameter:
- Template:Tlc → "{{safesubst:#Invoke:String|replace|foo (bar)|%s+%b()$||1|false}}"
- Template:Tlc → "{{safesubst:#Invoke:String|replace|foo bar|%s+%b()$||1|false}}"
See also[edit]