Difference between revisions of "Template:LnkTxt"

From ChoralWiki
Jump to navigation Jump to search
(testing use of param3)
(updating)
 
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|''}}}[[{{{1}}}]]{{{4|''}}}'''{{{3|.}}}{{#if:{{{3|}}}|[[category:good-bad]]}}<includeonly>[[Category:{{{1}}}| {{{sort|{{{2|}}}}}}]]</includeonly><noinclude>
 
Original text and translations may be found at '''{{{4|''}}}[[{{{1}}}]]{{{4|''}}}'''{{{3|.}}}{{#if:{{{3|}}}|[[category:good-bad]]}}<includeonly>[[Category:{{{1}}}| {{{sort|{{{2|}}}}}}]]</includeonly><noinclude>
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
+
{{ambox
<center><big>'''Documentation'''</big><br></center>
+
|type = content
 +
|text = This template is obsolete. It is advisable that you use the template '''{{tl|LinkText}}''' instead.
 +
}}<br>
 +
{{DisplayBox|title=Documentation|text=
  
 
;Syntax example:  
 
;Syntax example:  
*<tt><nowiki>{{LnkTxt|O salutaris hostia|Beethoven, Ludwig van}}</nowiki></tt>
+
*{{tl|LnkTxt|O salutaris hostia|Beethoven, Ludwig van}}
  
 
which produces the text
 
which produces the text
Line 12: Line 15:
  
 
;Syntax example (which removes ''italics'' around the link):  
 
;Syntax example (which removes ''italics'' around the link):  
*<tt><nowiki>{{LnkTxt|Lamentations of Jeremiah|Tallis, Thomas|4=}}</nowiki></tt>
+
*{{tl|LnkTxt|Lamentations of Jeremiah|Tallis, Thomas|4{{=}}}}
  
 
which produces the text
 
which produces the text
Line 21: Line 24:
  
 
;And extended syntax example:  
 
;And extended syntax example:  
*<tt><nowiki>{{LnkTxt|Lamentations of Jeremiah|Tallis, Thomas| 5:1|4=}}</nowiki></tt>
+
*{{tl|LnkTxt|Lamentations of Jeremiah|Tallis, Thomas| 5:1|4{{=}}}}
  
 
which produces the text
 
which produces the text
Line 28: Line 31:
  
 
The page is categorized in [[:Category:Lamentations of Jeremiah]], with the sort key (preceded by a space): Tallis, Thomas.
 
The page is categorized in [[:Category:Lamentations of Jeremiah]], with the sort key (preceded by a space): Tallis, Thomas.
</div>
+
}}
[[Category:Templates|{{PAGENAME}}]]
+
[[Category:Obsolete templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 21:26, 20 April 2013

Original text and translations may be found at [[{{{1}}}]].


Documentation
Syntax example
  • {{LnkTxt|O salutaris hostia|Beethoven, Ludwig van}}

which produces the text

Original text and translations may be found at O salutaris hostia.

Syntax example (which removes italics around the link)
  • {{LnkTxt|Lamentations of Jeremiah|Tallis, Thomas|4=}}

which produces the text

Original text and translations may be found at Lamentations of Jeremiah.

The page is categorized under Category:Lamentations of Jeremiah with the sort key (preceded by a space): Tallis, Thomas.

And extended syntax example
  • {{LnkTxt|Lamentations of Jeremiah|Tallis, Thomas| 5:1|4=}}

which produces the text

Original text and translations may be found at Lamentations of Jeremiah 5:1

The page is categorized in Category:Lamentations of Jeremiah, with the sort key (preceded by a space): Tallis, Thomas.