Template:FirstLine: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<!--<includeonly>{{cat|First Lines (English)| {{{1|}}} }}</includeonly>--> | <!--<includeonly>{{#if:{{{1|}}}|<span style="display:none">{{cat|First Lines (English)| {{{1|}}}}}</span>}}</includeonly>--> | ||
<onlyinclude>{{#if:{{{3|}}}|{{#if:{{{2|}}}| | <onlyinclude>{{#if:{{{3|}}}|{{#if:{{{2|}}}|{{cat|First Lines (English)| {{{1|}}}}}{{{2}}}|{{cat|First Lines (English)| {{{1|}}}}}}}|{{#if:{{{2|}}}|'''First Line:''' {{cat|First Lines (English)| {{{1|}}} }}{{{2}}}<br>|'''First Line:''' {{cat|First Lines (English)| {{{1|}}}}}<br>}}}}</onlyinclude> | ||
<noinclude><!-- | <noinclude><!-- | ||
--> | --> |
Latest revision as of 15:37, 9 January 2024
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 We lie in shadows of the night