Template:LnkTxt: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(revise documentation somewhat)
m (fixed HTML)
Line 2: Line 2:
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 style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
<center><big>'''Documentation'''</big><br></center>
<center><big>'''Documentation'''</big><br></center>


Line 35: Line 35:
However, the same result is more easily obtained through [[Template:LnkLatTxt]]:
However, the same result is more easily obtained through [[Template:LnkLatTxt]]:


<tt><nowiki>{{LnkLatTxt|O salutaris hostia|Beethoven, Ludwig van}}</tt></nowiki>
<tt><nowiki>{{LnkLatTxt|O salutaris hostia|Beethoven, Ludwig van}}</nowiki></tt>


</div>
</div>
</noinclude>
</noinclude>

Revision as of 10:45, 2 May 2008

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

Documentation

Syntax example:

{{LnkTxt|Psalm 150|Franck, Cesar}}

which produces the text

Original text and translations may be found at Psalm 150.

The page is categorized under Category:Psalm 150 with the sort key (preceded by a space): Franck, Cesar.

And extended syntax example:

{{LnkTxt|Psalm 150|Clarke-Whitfield, John|: vv. 1, 2, 6.}}

which produces the text

Original text and translations may be found at Psalm 150: vv. 1, 2, 6.

The page is categorized in Category:Psalm 150, with the sort key(preceded by a space): Clarke-Whitfield, John.

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 (note that the title is italicized):

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

However, the same result is more easily obtained through Template:LnkLatTxt:

{{LnkLatTxt|O salutaris hostia|Beethoven, Ludwig van}}