Template:FirstLine: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{2}}}|'''First Line:''' {{{1}}} {{{2}}}<br>|'''First Line:''' {{{1}}}<br>}}</includeonly><noinclude><!-- | <includeonly>{{#if:{{{2|}}}|'''First Line:''' {{{1}}} {{{2}}}<br>|'''First Line:''' {{{1}}}<br>}}</includeonly><noinclude><!-- | ||
--> | --> | ||
This template copies the text in the first parameter, followed by the second parameter if it is not blank. | This template copies the text in the first parameter, followed by the second parameter if it is not blank. |
Revision as of 22:47, 22 March 2017
This template copies the text in the first parameter, followed by the second parameter if it is not blank.
Syntax:
- {{FirstLine|<text>}} Result: First Line: <text> followed by a line break.
- OR
- {{FirstLine|<text>|<optional>}} Result: First Line: <text>, <optional> followed by a line break.
Examples:
- {{FirstLine|O for a sweet inspiring ray}} gives First Line: O for a sweet inspiring ray
- {{FirstLine|Sweet is the day of sacred rest|(Watts)}} gives First Line: Sweet is the day of sacred rest (Watts)