Changes

From SME Server
Jump to navigationJump to search
m
Protected "Template:Infobox contribs" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
Line 1: Line 1:  
<noinclude>
 
<noinclude>
 
== Example ==
 
== Example ==
</noinclude><includeonly><html>
+
</noinclude><includeonly>
<style type="text/css">
  −
.information th, .information td { vertical-align: top; text-align:left; }
  −
.information ul, .information ol { margin-top: 0px; }
  −
.information table { border-spacing: 3px; }
  −
@media (min-width:720px)
  −
{
  −
  .information { float: right; margin:0.5em 0 0.5em 1em; }
  −
  .information table { width: 22em !important; }
  −
}
  −
</style></html>
   
{{#if:{{{image|}}}|{{#set:|Image={{{image}}}}}|}}{{#if:{{{description_image|}}}|{{#set:|Description_image={{{description_image}}}}}|}}{{#if:{{{video|}}}|{{#set:|Video={{{video}}}}}|}}
 
{{#if:{{{image|}}}|{{#set:|Image={{{image}}}}}|}}{{#if:{{{description_image|}}}|{{#set:|Description_image={{{description_image}}}}}|}}{{#if:{{{video|}}}|{{#set:|Video={{{video}}}}}|}}
 
{{Box
 
{{Box
|classe= contrib info
+
|classe= information
 
|style= font-size: 88%; line-height: 1.5em;
 
|style= font-size: 88%; line-height: 1.5em;
|content=
+
|content=<table>
<table>
   
   <caption class="nomobile" style="display: table-caption; font-size: 125%; font-weight: bold;">{{{name|Contrib name}}} {{#if:{{{classe|}}}|<br/><span style="font-size: 75%">({{{classe}}})</span>|}}</caption>
 
   <caption class="nomobile" style="display: table-caption; font-size: 125%; font-weight: bold;">{{{name|Contrib name}}} {{#if:{{{classe|}}}|<br/><span style="font-size: 75%">({{{classe}}})</span>|}}</caption>
   {{#if:{{{image|}}}|<tr><td colspan="2" style="text-align:center">{{#ifexist: File:{{{image}}}|[[File:{{#setmainimage:{{{image}}}}}|300px]]|[[File:Besoin d'une image.svg|300px|link=Wikimedica:Importation de fichiers]]}}</td></tr>|}}
+
   {{#if:{{{image|}}}|<tr><td colspan="2" style="text-align:center">{{#ifexist: File:{{{image}}}|[[File:{{{image}}}|300px]]|[[File:NeedImage.svg|300px|link=SME_Server:Upload]]}}</td></tr>|}}
 
   {{#if:{{{description_image|}}}|<tr><td colspan="2" style="text-align:center; font-size: 90%">{{{description_image}}}</td></tr>|}}
 
   {{#if:{{{description_image|}}}|<tr><td colspan="2" style="text-align:center; font-size: 90%">{{{description_image}}}</td></tr>|}}
   {{#if: {{{vidéo|}}}|<tr><th>Vidéo</th><td>[{{{vidéo}}}]</td></tr>|}}{{#if: {{{son|}}}|<tr><th>Son</th><td>[[Fichier:{{{son}}}]]</td></tr>|}}
+
   {{#if: {{{vidéo|}}}|<tr><th>Video</th><td>[{{{vidéo}}}]</td></tr>|}}
 +
  {{#if: {{{maintainer|}}}|<tr><th>Maintainer</th><td>[[user:{{{maintainer}}}|{{{maintainer}}}]]</td></tr>|}}
 +
  {{#if: {{{url|}}}|<tr><th>Url</th><td>{{{url}}}</td></tr>|}}
 +
  {{#if: {{{licence|}}}|<tr><th>Licence</th><td>{{{licence}}}</td></tr>|}}
 +
  {{#if: {{{category|}}}|<tr><th>Category</th><td>[[:Category:{{{category}}}]]</td></tr>|}}
 +
  {{#if: {{{tags|}}}| <tr><th>Tags</th><td> {{#arraydefine:tagsarray|{{{tags|}}} }}{{
 +
#loop: i
 +
| 0                      <!-- loops start value for {{ #var:i }} -->
 +
| {{ #arraysize:tagsarray }} <!-- number of loops -->
 +
|{{#arraydefine: val | {{ #arrayindex:tagsarray | {{ #var:i }} }} | ;}} [[Contrib function::{{ #arrayindex: val | 0 }}]]{{#ifexpr: {{ #var:i }}+1 < {{#arraysize:tagsarray}}|,&nbsp;|}}  }}</td></tr>|}}
 
   <table style="font-size:88%; line-height: 1em;">
 
   <table style="font-size:88%; line-height: 1em;">
 
   </table>
 
   </table>
Line 33: Line 31:  
|category=Filesystem
 
|category=Filesystem
 
|tags=file,sharing,linux,network,lan
 
|tags=file,sharing,linux,network,lan
 +
|maintainer=Unnilennium
 +
|url=https://en.wikipedia.org/wiki/Network_File_System
 
}}
 
}}
 
{{Lorem|paragraphs=5}}
 
{{Lorem|paragraphs=5}}
Line 81: Line 81:  
"type": "string",
 
"type": "string",
 
"suggested": true
 
"suggested": true
 +
},
 +
"classe": {},
 +
"vidéo": {
 +
"description": "url to video with a demo of the software",
 +
"type": "url"
 +
},
 +
"maintainer": {
 +
"description": "username of the current maintainer",
 +
"type": "string"
 +
},
 +
"url": {
 +
"description": "url to the vendor website",
 +
"type": "url"
 +
},
 +
"licence": {
 +
"type": "string"
 
}
 
}
 
},
 
},
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,221

edits

Navigation menu