Difference between revisions of "Template:FormatResourceTitle"
Jump to navigation
Jump to search
(Created page with "<noinclude> 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 ad...") |
|||
Line 8: | Line 8: | ||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
− | -->{{#if: {{{title|}}}| | + | -->{{#if: {{{title|}}}|<!-- |
-->{{#vardefine: varLength|{{#len:{{{title}}}}} }}<!-- | -->{{#vardefine: varLength|{{#len:{{{title}}}}} }}<!-- | ||
-->{{#vardefine: varEndChar|{{#sub:{{{title}}}|{{#var:varLength}}-1|1}} }}<!-- | -->{{#vardefine: varEndChar|{{#sub:{{{title}}}|{{#var:varLength}}-1|1}} }}<!-- |
Revision as of 13:49, 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 resource, e.g. Sebastien (2016).