Template:NoComp: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
mNo edit summary
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[{{{5|}}}{{{1}}}{{{3|}}} ({{{2}}})|{{{6|}}}<it>{{{1}}}</it>{{{4|}}}]]<noinclude>
[[{{{5|}}}{{{1}}}{{{3|}}} ({{#if:{{{2|}}}|{{{2}}}|{{PAGENAME}}}})|{{{6|}}}''{{{1}}}''{{{4|}}}]]<noinclude>
{{DisplayBox|text=
{{DisplayBox|title=Usage|text=
<h3>Usage:</h3>
 
'''Main form (without "enhancements"):'''
'''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 [[Title of work (Composer name)]] which displays as {{NoComp|Title of work|Composer name}}, i.e. 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.
Line 11: Line 11:
<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 to [[FrontMiddleTail (Composer)]] that displays as {{NoComp|Middle|Composer|Tail|Alt-tail|Front|Alt-front}} .
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:
'''Note:''' If italics and/or spaces are desired in the prepended Alt-front and/or appended Alt-tail, they must be ''explicitly'' supplied.  Moreover, to obtain a '''space''' one must type <tt><nowiki>{{sp}}</nowiki></tt>. For example:
<pre>{{NoComp|Middle|Composer|Tail|{{sp}}Alt-tail|Front|''Alt-front ''}}</pre>
<pre>{{NoComp|Middle|Composer|Tail|{{sp}}Alt-tail|Front|''Alt-front''{{sp}}}}</pre>
which produces the same link as above, displayed as {{NoComp|Middle|Composer|Tail|{{sp}}Alt-tail|Front|''Alt-front ''}}.
which produces the same link as above, displayed as {{NoComp|Middle|Composer|Tail|{{sp}}Alt-tail|Front|''Alt-front''{{sp}}}} (in this example, only the Alt-front is italicized).
}}
}}
[[Category:Templates|{{PAGENAME}}]]
[[Category:Internal link templates]]
</noinclude>
</noinclude>

Revision as of 00:36, 25 May 2014

[[{{{1}}} (NoComp)|{{{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, i.e. 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-frontMiddleAlt-tail . Note: If italics and/or spaces are desired in the prepended Alt-front and/or appended Alt-tail, they must be explicitly supplied. Moreover, to obtain a space one must type {{sp}}. For example:

{{NoComp|Middle|Composer|Tail|{{sp}}Alt-tail|Front|''Alt-front''{{sp}}}}

which produces the same link as above, displayed as Alt-front Middle Alt-tail (in this example, only the Alt-front is italicized).