Difference between revisions of "Template:Descr"

From ChoralWiki
Jump to navigation Jump to search
(New code 2020-04-14)
Line 1: Line 1:
'''Description:''' {{{1|}}}
+
<includeonly>{{#ifeq:{{{dis|Yes}}}|Yes|'''Description:'''&nbsp;}}{{{1|}}}</includeonly><noinclude>{{Doc|1=
<noinclude>
 
 
This template includes descriptive information relevant to a work page, as well as comments that don't fit within other work page templates.
 
This template includes descriptive information relevant to a work page, as well as comments that don't fit within other work page templates.
 +
 +
<u>'''Parameters'''</u>
 +
# Text – if the text contains an URL with an equal sign ( '''=''' ), or HTML tags (within '''<nowiki>< ></nowiki>''' symbols) it will be necessary to add "<tt><nowiki>1=<nowiki /></nowiki></tt>" at the beginning. For this reason, it is recommended that editors avoid the use of special characters in this text field, and move external web references to the #ExtWeb: parser function.
 +
:<tt>dis=</tt> Display – One word, either " <tt>Yes</tt> " or " <tt>No</tt> ", whether the header '''Description:''' is to be displayed or not; if this parameter is missing or null, defaults to " <tt>Yes</tt> ".
 +
 +
<u>'''Examples'''</u>
 +
 +
1.
 +
<tt><nowiki>{{Descr|This page contains text and references.}}</nowiki></tt><br>
 +
''yields''<br>
 +
{{Descr|This page contains text and references.}}
 +
 +
2.
 +
<tt><nowiki>{{Descr|For more information, see [http://mistaken.com?text=Whattext this page].}}</nowiki></tt><br>
 +
''yields''<br>
 +
{{Descr|For more information, see [http://mistaken.com?text=Whattext this page].}}
 +
 +
3. <tt><nowiki>{{Descr|1=<nowiki />For more information, see [http://mistaken.com?text=Whattext this page].}}</nowiki></tt><br>
 +
''yields''<br>
 +
{{Descr|1=<nowiki />For more information, see [http://mistaken.com?text=Whattext this page].}}
 +
 +
4. <tt><nowiki>{{Descr|1=<nowiki /></nowiki><br>
 +
<nowiki>==The Second Service==</nowiki><br>
 +
<nowiki>The Second Service was composed in 1659, after considerable work.|dis=No}}</nowiki></tt><br>
 +
''yields''<br>
 +
{{Descr|1=<nowiki />
 +
==The Second Service==
 +
The Second Service was composed in 1659, after considerable work.|dis=No}}
 +
 +
}}
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 15:00, 14 April 2021

Documentation

This template includes descriptive information relevant to a work page, as well as comments that don't fit within other work page templates.

Parameters

  1. Text – if the text contains an URL with an equal sign ( = ), or HTML tags (within < > symbols) it will be necessary to add "1=<nowiki />" at the beginning. For this reason, it is recommended that editors avoid the use of special characters in this text field, and move external web references to the #ExtWeb: parser function.
dis= Display – One word, either " Yes " or " No ", whether the header Description: is to be displayed or not; if this parameter is missing or null, defaults to " Yes ".

Examples

1. {{Descr|This page contains text and references.}}
yields
Description: This page contains text and references.

2. {{Descr|For more information, see [http://mistaken.com?text=Whattext this page].}}
yields
Description: 

3. {{Descr|1=<nowiki />For more information, see [http://mistaken.com?text=Whattext this page].}}
yields
Description: For more information, see this page.

4. {{Descr|1=<nowiki />
==The Second Service==
The Second Service was composed in 1659, after considerable work.|dis=No}}

yields

The Second Service

The Second Service was composed in 1659, after considerable work.