Templat:Navbar/doc: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
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:
:<
:<
:<
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 <
== Notes ==
Baris 58 ⟶ 59:
<!--- PLEASE ADD METADATA TO THE <includeonly> SECTION HERE --->
<includeonly>
[[
</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",
|