Template:Title: Difference between revisions

From Pl@ntUse
Jump to navigation Jump to search
No edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="text-align:left; position:relative; top:2px; margin:2px 0 8px 0;">{{#if:{{{small|}}}|[[Image:{{{color|Blue}}}-bg rounded cropped.svg|link=|alt=]]|[[Image:{{{color|Blue}}}-bg rounded.svg|link=|alt=]]}}{{#if:{{{image|}}}|<div style="position:absolute; left:5px; top:-6px;">[[File:{{{image|}}}|38px|link=|alt=]]</div>}}<div style="position:absolute; left:40px; top:1px;"><h2 style="font-weight:bold; border-bottom:none; font-size:130%; padding:.15em .4em;">{{{text}}}</h2></div></div></includeonly><noinclude>__NOTOC__
<includeonly><div style=" position:relative; top:2px; margin:2px 0 8px -5px; padding-left:7px;" class="
{{#if:{{{small|}}}|{{{color|Blue}}}}_cropped|{{{color|Blue}}}}}
">{{#if:{{{image|}}}
|<div style="display:table-cell; left:3px; padding:5px 0 5px 0;">
[[File:{{{image|}}}|38px|link=|alt=]]</div>}}
<h2 style=" vertical-align:middle; display:table-cell; font-weight:bold; border-bottom:none; font-size:130%; padding:.15em .4em;">{{{text}}}</h2>
</div></includeonly><noinclude>__NOTOC__
== Documentation ==
== Documentation ==
Ce modèle permet d'obtenir un titre de section similaires à ceux de la [[http://fr.wikipedia.org/ page d'accueil]]. Il est normalement pris en compte dans la table des matières et intervient donc dans la numérotation des sections (comme c'est le cas sur cette page), sauf précision contraire par un paramètre <code>hors table=oui</code>.<br>
This template yields a section title similar to the [http://en.wikipedia.org/ Wikipedia Main Page].<br>
Page originale : http://fr.wikipedia.org/w/index.php?title=Mod%C3%A8le:Titre_section&action=edit en date du 9/05/2011 a 10H33(am) modifiée par nos soins pour répondre a nos besoins.
Original page: http://fr.wikipedia.org/w/index.php?title=Mod% C3% A8le: Titre_section & action = edit dated 5.9.2011 at 10:33 (am) modified by us to meet our needs.


=== Parameters ===
=== Parameters ===


* text defines the text to show
* text defines the text to show
* color defines the background color (not all colors are available))
* color defines the background color (not all colors are available)
* image adds an icon on the left
* image adds an icon on the left
* It is possible to get a smaller colored band by using <code>|small=yes</code>.
* It is possible to get a smaller colored band by using <code>|small=yes</code>.
Line 13: Line 19:
===Exemple ===
===Exemple ===


<nowiki>{{Title|couleur = pink |texte = le titre}}</nowiki> donnera :<br> {{Title|couleur = pink |texte = le titre}}
<pre><nowiki>{{Title|color = pink |text = The Title}}</nowiki></pre> gives :<br> {{Title|color = pink |text = The Title}}
 
<pre><nowiki>{{Title|color = green |text = The Title |small=yes}}</nowiki></pre> gives :<br> {{Title|color = green |text = The Title |small=yes}}
[[category:Template]]
[[category:Template]]


</noinclude>
</noinclude>

Latest revision as of 13:59, 12 May 2016

Documentation

This template yields a section title similar to the Wikipedia Main Page.
Original page: http://fr.wikipedia.org/w/index.php?title=Mod% C3% A8le: Titre_section & action = edit dated 5.9.2011 at 10:33 (am) modified by us to meet our needs.

Parameters

  • text defines the text to show
  • color defines the background color (not all colors are available)
  • image adds an icon on the left
  • It is possible to get a smaller colored band by using |small=yes.

Exemple

{{Title|color = pink |text = The Title}}

gives :

The Title

{{Title|color = green |text = The Title |small=yes}}

gives :

The Title