Templat:Navbar/doc: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Farras (bicara | kontrib)
kTidak ada ringkasan suntingan
k Fix mistake in TemplateData documentation
 
(3 revisi perantara oleh 3 pengguna tidak ditampilkan)
Baris 1:
{{documentation subpage}}
{{high-risk|240.000+}}
{{lua|Modul:Navbar}}{{#ifeq:{{BASEPAGENAME}}|VTE|{{tsh|V}}}}
<!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE--->
 
== Usage ==
=== General ===
When one of the following examples is placed inside a given [[Wikipedia:Navigation templates|template]], it adds navbar navigational functionality:
:<ttcode><nowiki>{{navbar|{{subst:PAGENAME}}|mini=1}}</nowiki></ttcode>
:<ttcode><nowiki>{{navbar|{{subst:PAGENAME}}|plain=1}}</nowiki></ttcode>
:<ttcode><nowiki>{{navbar|{{subst:PAGENAME}}|fontstyle=color:green}}</nowiki></ttcode>
 
The <code><nowiki>{{subst:PAGENAME}}</nowiki></code> will be substituted with the template's name when parsed by the servers. For example, <code><nowiki>{{navbar|navbar/doc}}</nowiki></code> gives:<br> {{navbar|navbar/doc}}
 
=== Font-size ===
Font-size is 88% when used in a navbar, and 100% when nested in a navbox.
In the navbar, the weight is "normal"; when nested in navbox, it takes on the outer setting. The middot is bold.
 
== Examples ==
=== Required parameters ===
*<code><nowiki>{{navbar|Template Name}}</nowiki></code> – the template name is required.
 
=== Optional parameters ===
{| class="wikitable"
! Options !! Parameters !! Produces...
Baris 41 ⟶ 42:
|}
 
=== Deprecated parameters ===
The <ttcode>miniv=1</ttcode>, <ttcode>viewplain=1</ttcode>, <ttcode>nodiv=1</ttcode> and <ttcode>fontcolor=</ttcode> parameters have been deprecated. To implement the view-only version, use the {{tlx|v}} or {{tlx|view}} templates instead.
 
== Notes ==
Baris 58 ⟶ 59:
<!--- PLEASE ADD METADATA TO THE <includeonly> SECTION HERE --->
<includeonly>
[[CategoryKategori:Internal link templates]]
</includeonly>
<templatedata>
Baris 64 ⟶ 65:
"description": "When placed inside a given template, it adds navbar navigational functionality",
"params": {
"1": {
"label": "Template Name",
"description": "The name of the template, so links work correctly",