Template:Descr: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(Revised, added category)
(Add line-feed at end)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|'''Description:''' {{{1|}}}{{#if:{{{2|}}}|<br>{{{2|}}}}}}}</includeonly><noinclude>
<includeonly>{{#ifeq:{{{dis|Yes}}}|Yes|'''Description:'''&nbsp;}}{{{1|}}}
INCOMPLETE 2020-12-28
</includeonly><noinclude>{{Doc|1=
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 is intended eventually to be placed on all work pages, to include all descriptive material. There can be as many as ten parameters, corresponding to the first, second, third, and following lines of the description. These "lines" are not screen lines, but logical lines, delimited by a carriage-return, line-feed, or <nowiki><br></nowiki>.
<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> ".


[[Category:Experimental templates]]
<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]]
</noinclude>
</noinclude>

Latest revision as of 15:30, 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.