Difference between revisions of "Template:FormatResourceTitle"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 12: Line 12:
 
  -->{{#vardefine: varEndChar|{{#sub:{{{title}}}|{{#var:varLength}}-1|1}} }}<!--
 
  -->{{#vardefine: varEndChar|{{#sub:{{{title}}}|{{#var:varLength}}-1|1}} }}<!--
 
  -->{{#switch: {{#var:varEndChar}} <!--
 
  -->{{#switch: {{#var:varEndChar}} <!--
   -->|&#33;<!--
+
   -->|.<!--
   -->|&#46;<!--
+
   -->|?<!--
   -->|&#63;={{{title}}}<!--
+
   -->|!={{{title}}}<!--
 
   -->|#default={{{title}}}&#46;<!--
 
   -->|#default={{{title}}}&#46;<!--
 
  -->}}<!-- switch
 
  -->}}<!-- switch

Revision as of 13:50, 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).