Vorlage:Navbar/Doku: Unterschied zwischen den Versionen
update after move
imported>Jurema Oliveira KKeine Bearbeitungszusammenfassung |
imported>Happy-melon (update after move) |
||
| Zeile 5: | Zeile 5: | ||
== Usage == | == Usage == | ||
Copyable examples when inside a given [[Wikipedia:Navigational templates|template]] adds | Copyable examples when inside a given [[Wikipedia:Navigational templates|template]] adds navbar navigational functionality: | ||
:<tt><nowiki>{{ | :<tt><nowiki>{{navbar|{{subst:PAGENAME}}|mini=1}}</nowiki></tt> | ||
:<tt><nowiki>{{ | :<tt><nowiki>{{navbar|{{subst:PAGENAME}}|plain=1}}</nowiki></tt> | ||
:<tt><nowiki>{{ | :<tt><nowiki>{{navbar|{{subst:PAGENAME}}|mini=1|nodiv=1}}</nowiki></tt> | ||
:<tt><nowiki>{{ | :<tt><nowiki>{{navbar|{{subst:PAGENAME}}|plain=1|nodiv=1}}</nowiki></tt> | ||
:<tt><nowiki>{{ | :<tt><nowiki>{{navbar|{{subst:PAGENAME}}|fontstyle=color:green}}</nowiki></tt> | ||
:The <code><nowiki>{{subst:PAGENAME}}</nowiki></code> will be substituted with the template's name when parsed by the servers. | :The <code><nowiki>{{subst:PAGENAME}}</nowiki></code> will be substituted with the template's name when parsed by the servers. | ||
:<nowiki>{{ | :<nowiki>{{navbar|navbar/doc}}</nowiki> gives: {{navbar|navbar/doc}} | ||
=== Deprecated parameters === | === Deprecated parameters === | ||
The <tt>miniv=1</tt>, <tt>viewplain=1</tt> and <tt>fontcolor=</tt> parameters have been deprecated. To use the view-only version, use the {{tlx|v}} or {{tlx|view}} templates instead. | The <tt>miniv=1</tt>, <tt>viewplain=1</tt> and <tt>fontcolor=</tt> parameters have been deprecated. To use the view-only version, use the {{tlx|v}} or {{tlx|view}} templates instead. | ||
:<tt><nowiki>{{ | :<tt><nowiki>{{navbar|{{subst:PAGENAME}}|miniv=1}}</nowiki></tt> | ||
:<tt><nowiki>{{ | :<tt><nowiki>{{navbar|{{subst:PAGENAME}}|viewplain=1}}</nowiki></tt> | ||
:<tt><nowiki>{{ | :<tt><nowiki>{{navbar|{{subst:PAGENAME}}|miniv=1|nodiv=1}}</nowiki></tt> | ||
:<tt><nowiki>{{ | :<tt><nowiki>{{navbar|{{subst:PAGENAME}}|viewplain=1|nodiv=1}}</nowiki></tt> | ||
:<tt><nowiki>{{ | :<tt><nowiki>{{navbar|{{subst:PAGENAME}}|fontcolor=green}}</nowiki></tt> | ||
== Note to editors with edit access to this template == | == Note to editors with edit access to this template == | ||
This template is represented across [[Special:MostLinkedTemplates|hundreds of thousands of pages]], so please tread lightly when editing here. Conducting sufficient [[Template:Template sandbox|sandbox testing]] ([[Template: | This template is represented across [[Special:MostLinkedTemplates|hundreds of thousands of pages]], so please tread lightly when editing here. Conducting sufficient [[Template:Template sandbox|sandbox testing]] ([[Template:navbar/Sandbox|navbar specific]]) to establish the validity of edits relative to navbar is '''strongly''' encouraged prior to attempting to integrate changes. | ||
== Examples == | == Examples == | ||
===Required parameters=== | ===Required parameters=== | ||
*<code><nowiki>{{ | *<code><nowiki>{{navbar|Name of Template}}</nowiki></code> the template name is required. | ||
===Optional parameters=== | ===Optional parameters=== | ||
| Zeile 39: | Zeile 39: | ||
!colspan="3"| Normal | !colspan="3"| Normal | ||
|- | |- | ||
| Normal || <code><nowiki>{{ | | Normal || <code><nowiki>{{navbar|Template Name}}</nowiki></code> || {{navbar|navbar/doc}} | ||
|- | |- | ||
| No "This box:" text. || <code><nowiki>{{ | | No "This box:" text. || <code><nowiki>{{navbar|Template Name|plain=1}}</nowiki></code> || {{navbar|navbar/doc|plain=1}} | ||
|- | |- | ||
| Good for "blending" into text. || <code><nowiki>{{ | | Good for "blending" into text. || <code><nowiki>{{navbar|Template Name|nodiv=1}}</nowiki></code> || Lorem {{navbar|navbar/doc|nodiv=1}} Ipsum | ||
|- | |- | ||
|Blended no "This box:" text. || <code><nowiki>{{ | |Blended no "This box:" text. || <code><nowiki>{{navbar|Template Name|plain=1|nodiv=1}}</nowiki></code> || Lorem {{navbar|navbar/doc|plain=1|nodiv=1}} Ipsum | ||
|- | |- | ||
| For a color option. || <code><nowiki>{{ | | For a color option. || <code><nowiki>{{navbar|Template Name|fontstyle=color:green}}</nowiki></code> || {{navbar|navbar/doc|fontstyle=color:green}} | ||
|} | |} | ||