Template:LinkText: Difference between revisions
(returning to <pre> for more clarity) |
(forgot to add an optional sort key) |
||
Line 1: | Line 1: | ||
Original text and translations may be found at {{#switch: {{{1|}}} | Original text and translations may be found at {{#switch: {{{1|}}} | ||
|2='''{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}[[{{{2}}}]]{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}'''{{{add1|}}} and '''{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}[[{{{3}}}]]{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}'''{{{add2|.}}}{{Cat2|{{{2}}}|{{{3}}}|sort= {{LastNameFirst|{{CompFromWorkTitle}}}}}} | |2='''{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}[[{{{2}}}]]{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}'''{{{add1|}}} and '''{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}[[{{{3}}}]]{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}'''{{{add2|.}}}{{Cat2|{{{2}}}|{{{3}}}|sort= {{{sort|{{LastNameFirst|{{CompFromWorkTitle}}}}}}}}} | ||
|3='''{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}[[{{{2}}}]]{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}'''{{{add1|}}}, '''{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}[[{{{3}}}]]{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}'''{{{add2|}}}, and '''{{{st3|{{{st|{{ptrap|{{{4}}}}}}}}}}}[[{{{4}}}]]{{{st3|{{{st|{{ptrap|{{{4}}}}}}}}}}}'''{{{add3|.}}}{{Cat2|{{{2}}}|{{{3}}}|{{{4}}}|sort= {{LastNameFirst|{{CompFromWorkTitle}}}}}} | |3='''{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}[[{{{2}}}]]{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}'''{{{add1|}}}, '''{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}[[{{{3}}}]]{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}'''{{{add2|}}}, and '''{{{st3|{{{st|{{ptrap|{{{4}}}}}}}}}}}[[{{{4}}}]]{{{st3|{{{st|{{ptrap|{{{4}}}}}}}}}}}'''{{{add3|.}}}{{Cat2|{{{2}}}|{{{3}}}|{{{4}}}|sort= {{{sort|{{LastNameFirst|{{CompFromWorkTitle}}}}}}}}} | ||
|4='''{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}[[{{{2}}}]]{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}'''{{{add1|}}}, '''{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}[[{{{3}}}]]{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}'''{{{add2|}}}, '''{{{st3|{{{st|{{ptrap|{{{4}}}}}}}}}}}[[{{{4}}}]]{{{st3|{{{st|{{ptrap|{{{4}}}}}}}}}}}'''{{{add3|}}}, and '''{{{st4|{{{st|{{ptrap|{{{5}}}}}}}}}}}[[{{{5}}}]]{{{st4|{{{st|{{ptrap|{{{5}}}}}}}}}}}'''{{{add4|.}}}{{Cat2|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|sort= {{LastNameFirst|{{CompFromWorkTitle}}}}}} | |4='''{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}[[{{{2}}}]]{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}'''{{{add1|}}}, '''{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}[[{{{3}}}]]{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}'''{{{add2|}}}, '''{{{st3|{{{st|{{ptrap|{{{4}}}}}}}}}}}[[{{{4}}}]]{{{st3|{{{st|{{ptrap|{{{4}}}}}}}}}}}'''{{{add3|}}}, and '''{{{st4|{{{st|{{ptrap|{{{5}}}}}}}}}}}[[{{{5}}}]]{{{st4|{{{st|{{ptrap|{{{5}}}}}}}}}}}'''{{{add4|.}}}{{Cat2|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|sort= {{{sort|{{LastNameFirst|{{CompFromWorkTitle}}}}}}}}} | ||
|5='''{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}[[{{{2}}}]]{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}'''{{{add1|}}}, '''{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}[[{{{3}}}]]{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}'''{{{add2|}}}, '''{{{st3|{{{st|{{ptrap|{{{4}}}}}}}}}}}[[{{{4}}}]]{{{st3|{{{st|{{ptrap|{{{4}}}}}}}}}}}'''{{{add3|}}}, '''{{{st4|{{{st|{{ptrap|{{{5}}}}}}}}}}}[[{{{5}}}]]{{{st4|{{{st|{{ptrap|{{{5}}}}}}}}}}}'''{{{add4|}}}, and '''{{{st5|{{{st|{{ptrap|{{{6}}}}}}}}}}}[[{{{6}}}]]{{{st5|{{{st|{{ptrap|{{{6}}}}}}}}}}}'''{{{add5|.}}}{{Cat2|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|sort= {{LastNameFirst|{{CompFromWorkTitle}}}}}} | |5='''{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}[[{{{2}}}]]{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}'''{{{add1|}}}, '''{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}[[{{{3}}}]]{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}'''{{{add2|}}}, '''{{{st3|{{{st|{{ptrap|{{{4}}}}}}}}}}}[[{{{4}}}]]{{{st3|{{{st|{{ptrap|{{{4}}}}}}}}}}}'''{{{add3|}}}, '''{{{st4|{{{st|{{ptrap|{{{5}}}}}}}}}}}[[{{{5}}}]]{{{st4|{{{st|{{ptrap|{{{5}}}}}}}}}}}'''{{{add4|}}}, and '''{{{st5|{{{st|{{ptrap|{{{6}}}}}}}}}}}[[{{{6}}}]]{{{st5|{{{st|{{ptrap|{{{6}}}}}}}}}}}'''{{{add5|.}}}{{Cat2|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|sort= {{{sort|{{LastNameFirst|{{CompFromWorkTitle}}}}}}}}} | ||
|6='''{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}[[{{{2}}}]]{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}'''{{{add1|}}}, '''{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}[[{{{3}}}]]{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}'''{{{add2|}}}, '''{{{st3|{{{st|{{ptrap|{{{4}}}}}}}}}}}[[{{{4}}}]]{{{st3|{{{st|{{ptrap|{{{4}}}}}}}}}}}'''{{{add3|}}}, '''{{{st4|{{{st|{{ptrap|{{{5}}}}}}}}}}}[[{{{5}}}]]{{{st4|{{{st|{{ptrap|{{{5}}}}}}}}}}}'''{{{add4|}}}, '''{{{st5|{{{st|{{ptrap|{{{6}}}}}}}}}}}[[{{{6}}}]]{{{st5|{{{st|{{ptrap|{{{6}}}}}}}}}}}'''{{{add5|}}}, and '''{{{st6|{{{st|{{ptrap|{{{7}}}}}}}}}}}[[{{{7}}}]]{{{st6|{{{st|{{ptrap|{{{7}}}}}}}}}}}'''{{{add6|.}}}{{Cat2|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|sort= {{LastNameFirst|{{CompFromWorkTitle}}}}}} | |6='''{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}[[{{{2}}}]]{{{st1|{{{st|{{ptrap|{{{2}}}}}}}}}}}'''{{{add1|}}}, '''{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}[[{{{3}}}]]{{{st2|{{{st|{{ptrap|{{{3}}}}}}}}}}}'''{{{add2|}}}, '''{{{st3|{{{st|{{ptrap|{{{4}}}}}}}}}}}[[{{{4}}}]]{{{st3|{{{st|{{ptrap|{{{4}}}}}}}}}}}'''{{{add3|}}}, '''{{{st4|{{{st|{{ptrap|{{{5}}}}}}}}}}}[[{{{5}}}]]{{{st4|{{{st|{{ptrap|{{{5}}}}}}}}}}}'''{{{add4|}}}, '''{{{st5|{{{st|{{ptrap|{{{6}}}}}}}}}}}[[{{{6}}}]]{{{st5|{{{st|{{ptrap|{{{6}}}}}}}}}}}'''{{{add5|}}}, and '''{{{st6|{{{st|{{ptrap|{{{7}}}}}}}}}}}[[{{{7}}}]]{{{st6|{{{st|{{ptrap|{{{7}}}}}}}}}}}'''{{{add6|.}}}{{Cat2|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|sort= {{{sort|{{LastNameFirst|{{CompFromWorkTitle}}}}}}}}} | ||
|#default='''{{{st|{{ptrap|{{{1}}}}}}}}[[{{{1}}}]]{{{st|{{ptrap|{{{1}}}}}}}}'''{{{2|{{{add1|.}}}}}}{{Cat2|{{{1}}}|sort= {{LastNameFirst|{{CompFromWorkTitle}}}}}} | |#default='''{{{st|{{ptrap|{{{1}}}}}}}}[[{{{1}}}]]{{{st|{{ptrap|{{{1}}}}}}}}'''{{{2|{{{add1|.}}}}}}{{Cat2|{{{1}}}|sort= {{{sort|{{LastNameFirst|{{CompFromWorkTitle}}}}}}}}} | ||
}}<noinclude> | }}<noinclude> | ||
{{prot-temp}} | {{prot-temp}} |
Revision as of 01:55, 22 April 2013
Original text and translations may be found at [[{{{1}}}]].[[Category:{{{1}}}| LinkTex]]
This high-risk template has been protected from editing to prevent vandalism. Please use the talk page to ask an administrator about making an edit to change this template. |
Default behavior
This template provides links for up to three text pages. Its default behavior is to italicize all links except those that begin with Psalm as in:
{{LinkText|Ave verum corpus}}
producing
- Original text and translations may be found at Ave verum corpus.
{{LinkText|2|Psalm 131|Wachet auf, ruft uns die Stimme}}
producing (for two pages)
- Original text and translations may be found at Psalm 131 and Wachet auf, ruft uns die Stimme.
and
{{LinkText|3|O magnum mysterium|Ave Maria|Psalm 150}}
producing (for three pages)
- Original text and translations may be found at O magnum mysterium, Ave Maria, and Psalm 150.
Specifying italics or plain display explicitly
However, one may override this default behavior by setting the parameter |st=
(for no italics) or |st=''
(for italics) as in the following example:
{{LinkText|Messiah|st=}}
producing (the preferred)
- Original text and translations may be found at Messiah.
When linking to more than one text, the parameter |st=
applies to each link display, and this can produce undesired results, such as:
{{LinkText|3|Messiah|Pie Jesu|Psalm 118|st=''}}
producing (not good)
{{LinkText|3|Messiah|Pie Jesu|Psalm 118|st=}}
producing (not good)
For linking to 2 or 3 text pages: Instead of using the "blanket" parameter |st=
, one can specify whether to italicize or not with the parameters |st1=
(for the first parameter), |st2=
(for the second parameter), and |st3=
(for the third parameter). For example,
{{LinkText|3|Hallelujah|Lamentations of Jeremiah|Paulus|st1=''|st2=|st3=''}}
produces
- Original text and translations may be found at Hallelujah, Lamentations of Jeremiah, and Paulus.
The same result could be obtained with
{{LinkText|3|Hallelujah|Lamentations of Jeremiah|Paulus|st2=}}
since "Hallelujah" and "Paulus" would be italicized by default.
Extended syntax examples
To add more information after a link, when there is just one link, use the following scheme:
{{LinkText|Ave Maria|{{sp}}- ''Virgo serena''}}
produces
- Original text and translations may be found at Ave Maria - Virgo serena.
and
{{LinkText|Lamentations of Jeremiah|{{sp}}'''1:1-5'''.|st=}}
(note the default italics have been overridden with "|st=
") produces
- Original text and translations may be found at Lamentations of Jeremiah 1:1-5.
For 2 or 3 links, use the following example:
{{LinkText|3|Psalm 126|Lamentations of Jeremiah|Psalm 95|st2=|add1=:1-9|add2={{sp}}'''1:1-5'''|add3=:3-6.}}
produces
- Original text and translations may be found at Psalm 126:1-9, Lamentations of Jeremiah 1:1-5, and Psalm 95:3-6.