Template:LinkText: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
({{prot-temp}})
(upt to three texts)
Line 1: Line 1:
Original text and translations may be found at '''[[{{{1}}}|{{{3|}}}{{{1}}}{{{3|}}}]]'''{{{2|.}}}<noinclude>
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|.}}}
|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|.}}}
|'''{{{st|{{ptrap|{{{1}}}}}}}}[[{{{1}}}]]{{{st|{{ptrap|{{{1}}}}}}}}'''{{{2|{{{add1|.}}}}}}
}}<noinclude>
[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
{{prot-temp}}
{{prot-temp}}
Line 6: Line 10:
<center><big>'''Documentation'''</big><br></center>
<center><big>'''Documentation'''</big><br></center>


'''Syntax example:'''
'''Syntax examples:'''


<tt><nowiki>{{LinkText|Ave Maria}}</nowiki></tt>
<pre>{{LinkText|Ave Maria}}


which produces the text
{{LinkText|Psalm 131}}</pre>


Original text and translations may be found at '''[[Ave Maria]]'''.
produce the text:


'''And extended syntax example:'''
{{LinkText|Ave Maria}}


<tt><nowiki>{{LnkTxt|Psalm 114|:1-5.}}</nowiki></tt>
and


which produces the text
{{LinkText|Psalm 131}}


Original text and translations may be found at '''[[Psalm 114]]''':1-5.
'''An extended syntax example:'''
<pre>{{LinkText|Ave Maria|{{sp}}- ''Virgo serena''}}


Finally to put italics around the title (useful for Latin entries), one may type, for example:
{{LinkText|Psalm 114|:1-5.}}</pre>


produces the text


<tt><nowiki>{{LinkText|Ave Maria|3=''}}</nowiki></tt>
{{LinkText|Ave Maria|{{sp}}- ''Virgo serena''}}


which produces the text
and


Original text and translations may be found at '''''[[Ave Maria]]'''''.
{{LinkText|Psalm 114|:1-5.}}


'''More than one text:'''
<pre>{{LinkText|3|O magnum mysterium|Ave Maria|Christe redemptoris}}</pre>
produces
{{LinkText|3|O magnum mysterium|Ave Maria|Christe redemptoris}}


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

Revision as of 04:58, 25 January 2009

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


Documentation

Syntax examples:

{{LinkText|Ave Maria}}

{{LinkText|Psalm 131}}

produce the text:

Original text and translations may be found at Ave Maria.

and

Original text and translations may be found at Psalm 131.

An extended syntax example:

{{LinkText|Ave Maria|{{sp}}- ''Virgo serena''}}

{{LinkText|Psalm 114|:1-5.}}

produces the text

Original text and translations may be found at Ave Maria - Virgo serena

and

Original text and translations may be found at Psalm 114:1-5.

More than one text:

{{LinkText|3|O magnum mysterium|Ave Maria|Christe redemptoris}}

produces

Original text and translations may be found at O magnum mysterium, Ave Maria, and Christe redemptoris.