Template:LnkTxt: Difference between revisions
mNo edit summary |
(add space before sort key (don't need first letters of last names to appear in relatively short lists)) |
||
Line 1: | Line 1: | ||
<!-- Test replacement for LinkText which links a score page to a Category page for text and categorizes the work there. It has two required parameters: (1) <text title>, (2) <composer_last_name,_composer_first_name(s)> (as a sort key for the setting), and an optional third parameter (3) to add additional information in place of the final period (.) --> | <!-- Test replacement for LinkText which links a score page to a Category page for text and categorizes the work there. It has two required parameters: (1) <text title>, (2) <composer_last_name,_composer_first_name(s)> (as a sort key for the setting), and an optional third parameter (3) to add additional information in place of the final period (.) --> | ||
Original text and translations may be found at '''{{{4|}}}{{CiteCat|{{{1}}}}}{{{4|}}}'''{{{3|.}}}<includeonly>[[Category:{{{1}}}|{{{2}}}]]</includeonly><noinclude> | Original text and translations may be found at '''{{{4|}}}{{CiteCat|{{{1}}}}}{{{4|}}}'''{{{3|.}}}<includeonly>[[Category:{{{1}}}| {{{2}}}]]</includeonly><noinclude> | ||
[[Category:Templates|{{PAGENAME}}]] | [[Category:Templates|{{PAGENAME}}]] | ||
<div><div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd"> | <div><div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd"> | ||
Line 22: | Line 22: | ||
Original text and translations may be found at '''{{CiteCat|O salutaris hostia}}''', but ignore this. | Original text and translations may be found at '''{{CiteCat|O salutaris hostia}}''', but ignore this. | ||
In both cases, the page is categorized in [[:Category:O salutaris hostia]], with the sort key: Beethoven, Ludwig van. | In both cases, the page is categorized in [[:Category:O salutaris hostia]], with the sort key(preceded by a space): Beethoven, Ludwig van. | ||
There is an optional 4th parameter (mainly for Latin text titles) which may be used as follows: | There is an optional 4th parameter (mainly for Latin text titles) which may be used as follows: |
Revision as of 21:39, 13 April 2008
Original text and translations may be found at [[:Category:{{{1}}}|{{{1}}}]].
This is a test template
Syntax example:
{{LnkTxt|O salutaris hostia|Beethoven, Ludwig van}}
which produces the text
Original text and translations may be found at O salutaris hostia.
And extended syntax example:
{{LnkTxt|O salutaris hostia|Beethoven, Ludwig van|, but ignore this.}}
which produces the text
Original text and translations may be found at O salutaris hostia, but ignore this.
In both cases, the page is categorized in Category:O salutaris hostia, with the sort key(preceded by a space): Beethoven, Ludwig van.
There is an optional 4th parameter (mainly for Latin text titles) which may be used as follows:
{{LnkTxt|O salutaris hostia|Beethoven, Ludwig van|4=''}}
which produces the text
Original text and translations may be found at O salutaris hostia.