Template:FirstLine: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>'''First Line:''' {{{1}}}<br></includeonly><noinclude><!--
<includeonly>{{#ifeq:{{{2}}}||'''First Line:''' {{{1}}}<br>|'''First Line:''' {{{1}}}, {{{2}}} }}<br></includeonly><noinclude><!--
-->
-->
This template copies the text in the first parameter.
This template copies the text in the first parameter, followed by the second parameter if it is not blank.


'''Syntax:'''
'''Syntax:'''
:<tt><nowiki>{{FirstLine|<text>}}</nowiki></tt> &nbsp; &nbsp; Result: '''First Line''': <text>,
:<tt><nowiki>{{FirstLine|<text>}}</nowiki></tt> &nbsp; &nbsp; Result: <tt>'''First Line''': <text></tt> followed by a line break.
::followed by a line break.
:: OR
:<tt><nowiki>{{FirstLine|<text>|<optional>}}</nowiki></tt> &nbsp; &nbsp; Result: <tt>'''First Line''': <text>, <optional></tt> followed by a line break.
 
'''Examples:'''
:<tt><nowiki>{{FirstLine|O for a sweet inspiring ray}}</nowiki></tt> gives {{FirstLine|O for a sweet inspiring ray}}
:<tt><nowiki>{{FirstLine|Sweet is the day of sacred rest|(Watts)}}</nowiki></tt> gives {{FirstLine|Sweet is the day of sacred rest|(Watts)}}




[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 22:40, 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, {{{2}}}
{{FirstLine|Sweet is the day of sacred rest|(Watts)}} gives First Line: Sweet is the day of sacred rest, (Watts)