Template:NoComp: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
mNo edit summary
("enhancement"(?))
Line 1: Line 1:
[[{{{1}}} ({{{2}}})|''{{{1}}}'']]<noinclude>
[[{{{5|}}}{{{1}}}{{{3|}}} ({{{2}}})|{{{6|}}}''{{{1}}}''{{{4|}}}]]<noinclude>
{{DisplayBox|text=
{{DisplayBox|text=
<h3>Usage:</h3>
'''Main form (without "enhancements"):'''
<pre>{{NoComp|Title of work|Composer name}}</pre>
<pre>{{NoComp|Title of work|Composer name}}</pre>
creates a link to <font color=blue>Title of work (Composer name)</font> which displays as ''<font color=blue>Title of work</font>'', ie. without the composer name.  It is intended as a shortcut for having to type:
creates a link to <font color=blue>Title of work (Composer name)</font> which displays as ''<font color=blue>Title of work</font>'', ie. without the composer name.  It is intended as a shortcut for having to type:
<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"):'''
<pre>{{NoComp|Middle|Composer|Tail|Alt-tail|Front|Alt-front}}</pre>
Which produces a link of the form {{NoComp|Middle|Composer|Tail|Alt-tail|Front|Alt-front}} to [[FrontMiddleTail]].
}}
}}
[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 15:11, 12 December 2008

[[{{{1}}} ({{{2}}})|{{{1}}}]]

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 of the form Alt-frontMiddleAlt-tail to FrontMiddleTail.