Modèle:Projet : Différence entre versions

De fablabo
Aller à : navigation, rechercher
Ligne 1 : Ligne 1 :
 
<includeonly>
 
<includeonly>
 +
 +
<script>
 +
 +
function updateCartoucheSize() {
 +
 +
var cartouchePadding = 30;
 +
var infosHeight = document.getElementById('infos').offsetHeight;
 +
var infosTop = document.getElementById('infos').offsetTop;
 +
 +
var sommaireHeight = document.getElementById('sommaire').offsetHeight;
 +
 +
var sommaireTop = document.getElementById('sommaire').offsetTop;
 +
 +
var cartoucheHeight = document.getElementById('cartouche').offsetHeight
 +
 +
if (cartoucheHeight < (sommaireTop - infosTop + sommaireHeight))
 +
{
 +
document.getElementById('cartouche').style.height = (sommaireTop - infosTop + sommaireHeight + cartouchePadding + cartouchePadding) + 'px';
 +
}
 +
else
 +
{
 +
document.getElementById('cartouche').style.height = infosHeight + cartouchePadding + 'px';
 +
}
 +
}
 +
 +
window.onresize = function(event) {
 +
    updateCartoucheSize();
 +
};
 +
 +
window.onload = function(event) {
 +
    updateCartoucheSize();
 +
};
 +
 +
</script>
 +
 
{{#widget:if|a={{{status|Unknown}}}|b=Inconnu|then=<style>.Cartouche{border-color:#CCCCCC;}</style>}}
 
{{#widget:if|a={{{status|Unknown}}}|b=Inconnu|then=<style>.Cartouche{border-color:#CCCCCC;}</style>}}
 
{{#widget:if|a={{{status|Unknown}}}|b=Abandonné|then=<style>.Cartouche{border-color:#000000;}</style>}}
 
{{#widget:if|a={{{status|Unknown}}}|b=Abandonné|then=<style>.Cartouche{border-color:#000000;}</style>}}

Version du 11 décembre 2014 à 10:14






Documentation du modèle

Un Boite d'infos pour résumer un projet

Paramètres

en-tête

  • titre (requis)
  • status (requis)
Status Type Theme Color
inconnu #CCCCCC
concept #FF9933
experimental #00B
fonctionne #00920
obsolete #CCCCCC
prototype #2B60DE
abandoné #000000

Image

  • image (requis)

General

  • description (requis)
  • license (requis)
  • contributeur(s) (requis)
  • reprap (requirs)
  • categories (requis)
  • cadModel (required)
  • url (required)

Usage

{{Development
<!--Header-->
|status = abandoned
<!--Image-->
|image = rustygears.jpeg
<!--General-->
|description = This is an example of the Development infobox template.
|license = GPL
|author = Example_User
|reprap = 
|categories = 
|cadModel = 
|url = 
}}
Modèle:Development


Todo

  • Change "Author" to "Contributors"
  • Change "Based On" to "Related", otherwise sui-generis stuff looks funny
  • Add "required" or "sub assemblies"? (need to think about this)


Influences/Design

The Goal of this page is to provide a template to categorize and organize RepRap development in a similar way that MediaWiki categorizes it's extensions (see the extension template in use here). Unfortunately for the time being we do not have a recent enough version of MediaWiki to do some of the cooler auto-categorization things that template does. This is what the extension template looks like:

{{Extension|templatemode =
|name        = Add Metas
|status      = experimental
|type1       = example
|type2       =
|hook1       =
|hook2       =
|username    =
|author      = Luis Diaz
|description =This extension enables you to add meta tags on all the pages like meta keywords.
|image       =
|imagesize   =
|version     =0.1
|update      =
|mediawiki   =Tested on 1.10.0
|license     =
|download    =[http://www.buntulug.com.ar/wiki/Add_Metas buntulug.com.ar]
|readme      =
|changelog   =
|parameters  =
|rights      =
|example     =
}}

See Also