Vorlage:Navbar/Doku: Unterschied zwischen den Versionen

K
274 Versionen von wikivoyage:Vorlage:Navbar/Doku importiert
K (259 Versionen)
K (274 Versionen von wikivoyage:Vorlage:Navbar/Doku importiert)
 
(14 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
{{documentation subpage}}
{{Dokumentation Unterseite}}
{{high-risk|7,180,000+}}
{{high-risk}}
<!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE--->
{{Lua|Modul:Navbar}}
{{Benutzt Templatestyles|Module:Navbar/styles.css}}
<!-- Kategorien bitte an das Ende der Seite, Interwiki-Links bitte nach Wikidata. Danke! -->


== Usage ==
== Usage ==
===General===
===General===
When one of the following examples is placed inside a given [[Wikipedia:Navigation templates|template]], it adds navbar navigational functionality:
When one of the following examples is placed inside a given [[w:en:Wikipedia:Navigation templates|template]], it adds navbar navigational functionality:
:<tt><nowiki>{{navbar|{{subst:PAGENAME}}|mini=1}}</nowiki></tt>
:<code><nowiki>{{navbar|{{subst:PAGENAME}}|mini=1}}</nowiki></code>
:<tt><nowiki>{{navbar|{{subst:PAGENAME}}|plain=1}}</nowiki></tt>
:<code><nowiki>{{navbar|{{subst:PAGENAME}}|plain=1}}</nowiki></code>
:<tt><nowiki>{{navbar|{{subst:PAGENAME}}|fontstyle=color:green}}</nowiki></tt>
:<code><nowiki>{{navbar|{{subst:PAGENAME}}|fontstyle=color:green}}</nowiki></code>


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}}
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}}
Zeile 42: Zeile 44:


===Deprecated parameters===
===Deprecated parameters===
The <tt>miniv=1</tt>, <tt>viewplain=1</tt>, <tt>nodiv=1</tt> and <tt>fontcolor=</tt> parameters have been deprecated. To implement the view-only version, use the {{tlx|v}} or {{tlx|view}} templates instead.
The <code>miniv=1</code>, <code>viewplain=1</code>, <code>nodiv=1</code> and <code>fontcolor=</code> parameters have been deprecated. To implement the view-only version, use the {{tlx|v}} or {{tlx|view}} templates instead.


== Notes ==
== Notes ==
Zeile 49: Zeile 51:
== Prepackaged ==
== Prepackaged ==
;{{tl|Navbar-header}}: Positions {{navbar|navbar/doc|mini=1}} on the right edge of the line, often used in non-collapsible navbox heading.
;{{tl|Navbar-header}}: Positions {{navbar|navbar/doc|mini=1}} on the right edge of the line, often used in non-collapsible navbox heading.
;{{tl|Tnavbar-navframe}}: For use in conjunction with [[Wikipedia:NavFrame|Navframe div]]s, positions {{navbar|navbar/doc|mini=1}} opposite of the [hide]/[show] feature.
;{{tl|Navbar-collapsible}}: For use in conjunction with [[Wikipedia: NavFrame#Collapsible tables|Collapsible tables]], floats {{navbar|navbar/doc|mini=1}} opposite of the [hide]/[show] feature.


== See also ==
== See also ==
{{Edit templates}}
{{Edit templates}}
{{Navigational templates}}
{{Navigation templates}}


<!--- PLEASE ADD METADATA TO THE <includeonly> SECTION HERE --->
<includeonly>
<includeonly>
[[Category:Internal link templates]]
<!-- Kategorien bitte hier, Interwiki-Links bitte nach Wikidata. Danke! -->
 
[[Kategorie:Vorlagen:Formatierungshilfe]]
</includeonly>
</includeonly>
<templatedata>
<templatedata>
Zeile 118: Zeile 119:
}
}
</templatedata>
</templatedata>
<includeonly><!-- Kategorien bitte hier, Interwiki-Links bitte nach Wikidata -->
{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}|
[[Kategorie:Vorlagen:Naviboxen|Navbar]]
}}</includeonly>