Template:NoComp: Difference between revisions
Jump to navigation
Jump to search
("enhancement"(?)) |
mNo edit summary |
||
Line 1: | Line 1: | ||
[[{{{5|}}}{{{1}}}{{{3|}}} ({{{2}}})|{{{6|}}} | [[{{{5|}}}{{{1}}}{{{3|}}} ({{{2}}})|{{{6|}}}<it>{{{1}}}</it>{{{4|}}}]]<noinclude> | ||
{{DisplayBox|text= | {{DisplayBox|text= | ||
<h3>Usage:</h3> | <h3>Usage:</h3> | ||
Line 7: | Line 7: | ||
<pre>[[Title of work(Composer name)|''Title of work'']]</pre> | <pre>[[Title of work(Composer name)|''Title of work'']]</pre> | ||
and results in a great saving of effort and filesize on composer pages, which frequently use this construct. | and results in a great saving of effort and filesize on composer pages, which frequently use this construct. | ||
'''Complete form (with "enhancements"):''' | '''Complete form (with "enhancements"):''' | ||
<pre>{{NoComp|Middle|Composer|Tail|Alt-tail|Front|Alt-front}}</pre> | <pre>{{NoComp|Middle|Composer|Tail|Alt-tail|Front|Alt-front}}</pre> | ||
Which produces a link | Which produces a link to [[FrontMiddleTail (Composer)]] that displays as {{NoComp|Middle|Composer|Tail|Alt-tail|Front|Alt-front}} . | ||
'''Note:''' If italics and/or spaces are desired in the prepended Alt-front and/or appended Alt-tail, they must be ''explicitly'' supplied. For example: | |||
<pre>{{NoComp|Middle|Composer|Tail|{{sp}}Alt-tail|Front|''Alt-front ''}}</pre> | |||
which produces the same link as above, displayed as {{NoComp|Middle|Composer|Tail|{{sp}}Alt-tail|Front|''Alt-front ''}}. | |||
}} | }} | ||
[[Category:Templates|{{PAGENAME}}]] | [[Category:Templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revision as of 15:18, 12 December 2008
[[{{{1}}} ({{{2}}})|<it>{{{1}}}</it>]]
Usage:
Main form (without "enhancements"):
{{NoComp|Title of work|Composer name}}
creates a link to Title of work (Composer name) which displays as Title of work, ie. without the composer name. It is intended as a shortcut for having to type:
[[Title of work(Composer name)|''Title of work'']]
and results in a great saving of effort and filesize on composer pages, which frequently use this construct.
Complete form (with "enhancements"):
{{NoComp|Middle|Composer|Tail|Alt-tail|Front|Alt-front}}
Which produces a link to FrontMiddleTail (Composer) that displays as Alt-front<it>Middle</it>Alt-tail . Note: If italics and/or spaces are desired in the prepended Alt-front and/or appended Alt-tail, they must be explicitly supplied. For example:
{{NoComp|Middle|Composer|Tail|{{sp}}Alt-tail|Front|''Alt-front ''}}
which produces the same link as above, displayed as Alt-front <it>Middle</it> Alt-tail.