« Modèle:Navbar » : différence entre les versions

De wiki-spl
Aller à la navigation Aller à la recherche
test0>Baris6161TURK
(Adding translate tags and remove unneeded deprecated information.)
test0>Shirayuki
(wrong markup)
Ligne 38 : Ligne 38 :
: {{tlx|Navbar|Navbar|fontstyle{{=}}color:green}}
: {{tlx|Navbar|Navbar|fontstyle{{=}}color:green}}


<translate>
<translate>The <tvar|1><code>{{<nowiki/>subst:PAGENAME}}</code></> will be substituted with the template's name when parsed by the servers.</translate>
The <tvar|1><code>{{<nowiki/>subst:PAGENAME}}</code></> will be substituted with the template's name when parsed by the servers.</translate>
<translate>For example, <tvar|1>{{tlx|Navbar|navbar/doc}}</> gives:</translate>
<translate>For example, <tvar|1>{{tlx|Navbar|navbar/doc}}</> gives:
</translate>


{{Navbar|navbar/doc}}
{{Navbar|navbar/doc}}
Ligne 47 : Ligne 45 :
<translate>
<translate>
=== Font-size ===
=== Font-size ===
</translate>
<translate>Font-size is <tvar|1><code>88%</code></> when used in a navbar, and <tvar|2><code>100%</code></> when nested in a navbox.</translate>
<translate>In the navbar, the weight is "<tvar|1><code>normal</code></>"; when nested in navbox, it takes on the outer setting.</translate>
<translate>The middot is bold.</translate>


Font-size is <tvar|1><code>88%</code></> when used in a navbar, and <tvar|2><code>100%</code></> when nested in a navbox.
</translate>
<translate>
In the navbar, the weight is "<tvar|1><code>normal</code></>"; when nested in navbox, it takes on the outer setting.
</translate>
<translate>
<translate>
The middot is bold.
== Examples ==
== Examples ==


Ligne 85 : Ligne 80 :
<translate>
<translate>
== Notes ==
== Notes ==
Navbar is contained within a <tvar|1>{{tag|div}}</> in order to accommodate a horizontal unnumbered list.
</translate>
<translate>
This means it cannot be placed inside a <tvar|1>{{tag|span}}</> or other inline element, because Tidy will 'fix' situations where it finds block elements inside inline elements.
</translate>
</translate>
<translate>Navbar is contained within a <tvar|1>{{tag|div}}</> in order to accommodate a horizontal unnumbered list.</translate>
<translate>This means it cannot be placed inside a <tvar|1>{{tag|span}}</> or other inline element, because Tidy will 'fix' situations where it finds block elements inside inline elements.</translate>


<!--- PLEASE ADD METADATA TO THE <includeonly> SECTION HERE --->
<!--- PLEASE ADD METADATA TO THE <includeonly> SECTION HERE --->

Version du 6 mars 2021 à 00:10

<languages/> {{#if:||{{#if:|{{{text}}}|<translate> This box:</translate>}} }}{{#if:|[}}[[Modèle:{{{1}}}|<span style="" title="<translate nowrap> View this template</translate>">{{#if:|<translate> v</translate>|<translate> view</translate>}}]] · [{{fullurl:Discussion modèle:{{{1}}}}} <span style="" title="<translate nowrap> Discuss this template</translate>">{{#if:|<translate> d</translate>|<translate> talk</translate>}}]{{#if:|| · [{{fullurl:Modèle:{{{1}}}|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>">{{#if:|<translate> e</translate>|<translate> edit</translate>}}]}}{{#if:|]}} {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}{{#if:<translate>

Usage

General

When one of the following examples is placed inside a given [[<tvar|1>Special:MyLanguage/Help:Templates</>|template]], it adds navbar navigational functionality: </translate>

Modèle:Tlx
Modèle:Tlx
Modèle:Tlx

<translate>The <tvar| [[Category:Template documentation pages{{#translation:}}]] }}