Template:LinkText: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
m (add bold text to template)
(extension of template and documentation)
Line 1: Line 1:
Please refer to the '''[[{{{1}}}]]''' page for texts and translations
Original text and translations may be found at '''[[{{{1}}}|{{{3|}}}{{{1}}}{{{3|}}}]]'''{{{2|.}}}]]<noinclude>
[[Category:Templates|{{PAGENAME}}]]
<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>
 
'''Syntax example:'''
 
<tt><nowiki>{{LinkText|Ave Maria}}</nowiki></tt>
 
which produces the text
 
Original text and translations may be found at '''[[Ave Maria]]'''.
 
'''And extended syntax example:'''
 
<tt><nowiki>{{LnkTxt|Psalm 114|:1-5.}}</nowiki></tt>
 
which produces the text
 
Original text and translations may be found at '''[[Psalm 114]]''':1-5.
 
Finally to put italics around the title (useful for Latin entries), one may type, for example:
 
 
<tt><nowiki>{{LinkText|Ave Maria|3=''}}</nowiki></tt>
 
which produces the text
 
Original text and translations may be found at '''''[[Ave Maria]]'''''.
 
 
</div>
</noinclude>

Revision as of 09:18, 13 April 2008

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

Documentation

Syntax example:

{{LinkText|Ave Maria}}

which produces the text

Original text and translations may be found at Ave Maria.

And extended syntax example:

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

which produces the text

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

Finally to put italics around the title (useful for Latin entries), one may type, for example:


{{LinkText|Ave Maria|3=''}}

which produces the text

Original text and translations may be found at Ave Maria.