Template:FirstLine: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(Created page with "<includeonly>'''First Line:''' {{{1}}}<br></includeonly><onlyinclude>{{{1}}}</onlyinclude><noinclude><!-- -->{{Doc|1= This template copies the text i...")
 
No edit summary
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>'''First Line:''' {{{1}}}<br></includeonly><onlyinclude>[[First Lines (English)|{{{1}}}]]</onlyinclude><noinclude><!--
<!--<includeonly>{{cat|First Lines (English)| {{{1|}}} }}</includeonly>-->
-->{{Doc|1=
<onlyinclude>{{#if:{{{3|}}}|{{#if:{{{2|}}}|'''First Line:''' {{{1}}} {{{2}}}|'''First Line:''' {{{1}}}}}|{{#if:{{{2|}}}|'''First Line:''' {{{1}}} {{{2}}}<br>|'''First Line:''' {{cat|First Lines (English)| {{{1|}}}}}<br>}}}}</onlyinclude>
This template copies the text in the first parameter, and links it to  "Category:First Lines (English)". The page is simultaneously included in that category.
<noinclude><!--
-->
This template copies the text in the first parameter, followed by the second parameter if it is not blank. A line break is added unless the third parameter has content.


'''Syntax:'''
'''Syntax:'''
:<tt>{{tl|FirstLine|<text>}}</tt>
:<tt><nowiki>{{FirstLine|<text>}}</nowiki></tt> &nbsp; &nbsp; Result: <tt>'''First Line''': <text></tt> 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.
:: OR
:<tt><nowiki>{{FirstLine|<text>||No}}</nowiki></tt> &nbsp; &nbsp; Result: <tt>'''First Line''': <text>, <optional></tt> with no line break.
 
'''Examples:'''
:<tt><nowiki>{{FirstLine|O for a sweet inspiring ray}}</nowiki></tt> gives {{FirstLine|O for a sweet inspiring ray}}<br>
:<tt><nowiki>{{FirstLine|Sweet is the day of sacred rest|(Watts)}}</nowiki></tt> gives {{FirstLine|Sweet is the day of sacred rest|(Watts)}}<br>
:<tt><nowiki>{{FirstLine|We lie in shadows of the night||NoBreak}}</nowiki></tt> gives {{FirstLine|We lie in shadows of the night||No}}


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

Revision as of 17:49, 28 November 2018

First Line:

This template copies the text in the first parameter, followed by the second parameter if it is not blank. A line break is added unless the third parameter has content.

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.
OR
{{FirstLine|<text>||No}}     Result: First Line: <text>, <optional> with no 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)

{{FirstLine|We lie in shadows of the night||NoBreak}} gives First Line: We lie in shadows of the night