Difference between revisions of "Template:FormatResourceTitle"
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
-->{{#vardefine: varEndChar|{{#sub:{{{title}}}|-1}} }}<!-- | -->{{#vardefine: varEndChar|{{#sub:{{{title}}}|-1}} }}<!-- | ||
-->{{#switch: {{#var:varEndChar}} <!-- | -->{{#switch: {{#var:varEndChar}} <!-- | ||
− | -->|! | + | -->|!<!-- |
− | -->|. | + | -->|.<!-- |
-->|?={{{title}}}<!-- | -->|?={{{title}}}<!-- | ||
-->|#default={{{title}}}.<!-- | -->|#default={{{title}}}.<!-- |
Latest revision as of 14:00, 13 April 2017
Use this template to properly format the title of the resource. If the resource title doesn't end with a period, question mark, or exclamation mark, a period is added to the title.
NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Parameters:
|title=
- the title of the resource, e.g. "The Laws of Scientific Change".