Difference between revisions of "Template:Entry"

From Free Software Directory
Jump to: navigation, search
m (+subproperty for GNU packages)
 
(102 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the 'Entry' template.
+
[[Category:Template]]
It should be called in the following format:
+
</noinclude>
<pre>
+
<includeonly>{{Show}}
{{Entry
+
__NOTITLE__
|Name=
+
__NOTOC__
|Short description=
+
__NOEDITSECTION__
|Full description=
+
<!-- Everything below this line should not appear to the user. It
|User level=
+
exists solely for the purpose of setting semantic annotations for this
|Component programs=
+
software programs entry in the Directory. -->
|Homepage URL=
 
|VCS checkout command=
 
|Computer languages=
 
|Documentation note=
 
|Paid Support= 
 
|IRC help=
 
|IRC general=
 
|IRC development=
 
|Related projects=
 
|Software categories=
 
|Keywords=
 
|Is GNU=
 
|Last review by=
 
|Last review date=
 
|Submitted by=
 
|Submitted date=
 
|Version identifier=
 
|Version date=
 
|Version status=
 
|Version download=
 
|Version comment=
 
}}
 
</pre>
 
Edit the page to see the template text.
 
  
[[Category:Template]]
+
<div style="display:none">
</noinclude><includeonly>__NOTOC__
+
[[Page has default form::Entry]]
{{#if:{{{Keywords}}}
 
  |{{#arraymap:{{{Keywords}}}|,|x|{{#set:Keywords=x}}|}}
 
  |<nowiki/>
 
}}
 
{{#if:{{{Related projects}}}
 
  |{{#arraymap:{{{Related projects}}}|,|x|{{#set:Related projects=x}}|}}
 
  |<nowiki/>
 
}}
 
 
{{#if:{{{Name|}}}
 
{{#if:{{{Name|}}}
 
   |{{#set:Name={{{Name}}} }}
 
   |{{#set:Name={{{Name}}} }}
Line 54: Line 22:
 
{{#if:{{{Full description|}}}
 
{{#if:{{{Full description|}}}
 
   |{{#set:Full description={{{Full description}}} }}
 
   |{{#set:Full description={{{Full description}}} }}
  |<nowiki/>
 
}}
 
{{#if:{{{User level|}}}
 
  |{{#set:User level={{{User level}}} }}
 
  |<nowiki/>
 
}}
 
{{#if:{{{Component programs|}}}
 
  |{{#set:Component programs={{{Component programs}}} }}
 
 
   |<nowiki/>  
 
   |<nowiki/>  
 
}}
 
}}
 
{{#if:{{{Homepage URL|}}}
 
{{#if:{{{Homepage URL|}}}
 
   |{{#set:Homepage URL={{{Homepage URL}}} }}
 
   |{{#set:Homepage URL={{{Homepage URL}}} }}
  |<nowiki/>
 
}}
 
{{#if:{{{VCS checkout command|}}}
 
  |{{#set:VCS checkout command={{{VCS checkout command}}} }}
 
  |<nowiki/>
 
}}
 
{{#if:{{{Computer languages|}}}
 
  |{{#set:Computer languages={{{Computer languages}}} }}
 
  |<nowiki/>
 
}}
 
{{#if:{{{Documentation note|}}}
 
  |{{#set:Documentation note={{{Documentation note}}} }}
 
  |<nowiki/>
 
}}
 
{{#if:{{{Paid support|}}}
 
  |{{#set:Paid support={{{Paid support}}} }}
 
  |<nowiki/>
 
}}
 
{{#if:{{{Is GNU|}}}
 
  |{{#set:Is GNU={{{Is GNU}}} }}
 
  |<nowiki/>
 
}}
 
{{#if:{{{IRC help|}}}
 
  |{{#set:IRC help={{{IRC help}}} }}
 
  |<nowiki/>
 
}}
 
{{#if:{{{IRC general|}}}
 
  |{{#set:IRC general={{{IRC general}}} }}
 
  |<nowiki/>
 
}}
 
{{#if:{{{IRC development|}}}
 
  |{{#set:IRC development={{{IRC development}}} }}
 
  |<nowiki/>
 
}}
 
{{#if:{{{Last review by|}}}
 
  |{{#set:Last review by={{{Last review by}}} }}
 
  |<nowiki/>
 
}}
 
{{#if:{{{Last review date|}}}
 
  |{{#set:Last review date={{{Last review date}}} }}
 
  |<nowiki/>
 
}}
 
{{#if:{{REVISIONUSER}}|{{#set:Submitted by={{{Submitted by}}} }}
 
  |<nowiki/>
 
}}
 
{{#if:{{#time:c}}|{{#set:Submitted date={{{Submitted date}}} }}
 
  |<nowiki/>
 
}}
 
{{#if:{{{Version identifier|}}}
 
  |{{#set:Version identifier={{{Version identifier}}} }}
 
  |<nowiki/>
 
}}
 
{{#if:{{{Version date|}}}
 
  |{{#set:Version date={{{Version date}}} }}
 
  |<nowiki/>
 
}}
 
{{#if:{{{Version status|}}}
 
  |{{#set:Version status={{{Version status}}} }}
 
 
   |<nowiki/>  
 
   |<nowiki/>  
 
}}
 
}}
Line 130: Line 32:
 
   |<nowiki/>  
 
   |<nowiki/>  
 
}}
 
}}
{{#if:{{{Version comment|}}}
+
{{#switch:{{{Is High Priority Project|}}}
  |{{#set:Version comment={{{Version comment}}} }}
+
|true
  |<nowiki/>
+
|True
}}
+
|yes
{{Revision info}}
+
|Yes
<div style="float:left;width:470px;margin-left:10px;">
+
|y
== {{{Name|}}} ==
+
|Y={{#set:Is High Priority Project=Yes}}
{{#if:{{{Homepage URL}}}
+
|false
  |{{{Homepage URL}}}
+
|False
  |</nowiki>
+
|no
}}
+
|No
 
+
|n
{{{Full description|}}}
+
|N
{{#if:{{{Documentation note}}}
+
|0={{#set:Is High Priority Project=No}}
  |<br/><br/><em>{{{Documentation note}}}</em><br/>
+
|#default={{#set:Is High Priority Project=No}}
  |<nowiki/>
 
}}
 
 
 
{{#if:{{{Related projects}}}
 
  |<h2 width="100%" style="background:#d4cfcb; padding:4px;">Related Projects</h2>
 
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3;margin:0px 0px 10px 10px;">
 
<ul>
 
{{#arraymap:{{{Related projects}}}
 
  |,
 
  |x
 
  |<li>[[x]]</li>
 
  |
 
}}
 
</ul>
 
</div>
 
  |<nowiki/>
 
 
}}
 
}}
</div>
+
{{#switch:{{{Is GNU|}}}
{{Entry table intro}}
+
|true
{{Entry table row}}
+
|True
{{#ifeq:{{{Is GNU}}}
+
|yes
  |y
+
|Yes
  |{{GNU Head}} '''This is a GNU Project'''<br/>
+
|y
  |<nowiki/>
+
|Y={{#set:Is GNU=Yes}}
}}
+
|false
{{#if:{{{Version download}}}
+
|False
  |[{{{Version download}}} Download<sup>↷</sup>]
+
|no
  |<nowiki/>
+
|No
}}
+
|n
{{#if:{{{Version identifier}}}
+
|N
  |version {{{Version identifier}}}
+
|0={{#set:Is GNU=No}}
  |<nowiki/>
+
|#default={{#set:Is GNU=No}}
}}
 
{{#if:{{{Version status}}}
 
  | ({{{Version status}}})
 
  |<nowiki/>
 
}}
 
{{#if:{{{Version date}}}
 
  |
 
released on {{{Version date}}}
 
  |<nowiki/>
 
}}
 
{{#if:{{{IRC help}}}{{{IRC general}}}{{{IRC development}}}
 
  |
 
 
 
{{Entry table row}}
 
  |<nowiki/>
 
}}
 
{{#if:{{{IRC help}}}
 
  |IRC help: {{{IRC help}}}
 
  |<nowiki/>
 
}}
 
{{#if:{{{IRC general}}}
 
  |IRC general: {{{IRC help}}}
 
  |<nowiki/>
 
 
}}
 
}}
{{#if:{{{IRC development}}}
+
{{#if:{{{GNU package identifier|}}}
   |IRC development: {{{IRC development}}}
+
   |{{#set:GNU package identifier={{{GNU package identifier|}}}}}
 
   |<nowiki/>
 
   |<nowiki/>
 
}}
 
}}
{{Entry table outro}}
+
{{Revision info}}[[Category:Entry]]</div></includeonly>
</includeonly>
 

Latest revision as of 15:39, 12 March 2021




Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.