Template:Navbar/doc: Difference between revisions
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) Created page with "{{documentation subpage}} {{#ifeq:{{BASEPAGENAME}}|Navbar|{{high-use|all-pages = yes}} {{used in system}}}} {{lua|Module:Navbar}} {{tlx|Navbar}} provides a small "view '..." |
Caleb Cooper (talk | contribs) m Text replacement - "[[HTML" to "[[Wikipedia:HTML" |
||
| (3 intermediate revisions by the same user not shown) | |||
Line 1:
{{documentation subpage}}
{{#ifeq:{{BASEPAGENAME}}|Navbar|{{high-use|all-pages = yes}} {{used in system}}}}
{{Commons Import}}{{lua|Module:Navbar}}
{{tlx|Navbar}} provides a small "view '''·''' talk '''·''' edit" navigation bar. It is primarily used for content-heavy templates and other transcluded content blocks, so that the content inside the template or block is more easily editable {{lang|la|in situ}} where it was found, without having track it down through examining transclusion code. {{tnull|Navbar}}'s extremely high use rate and consequent protection level are because it is integrated as a feature into numerous [[Wikipedia:WP:NAVBOX|navigation box]] and [[Wikipedia:WP:INFOBOX|infobox]] templates used in millions of articles. It is also a regular feature of many internal-use templates and tables of the Wikipedia, Help, and Template [[Wikipedia:WP:NAMESPACE|namespaces]].
==Usage==
Line 12:
:<code><nowiki>{{navbar|{{subst:PAGENAME}}|fontstyle=color: green; font-style: italic;}}</nowiki></code>
The <code><nowiki>{{subst:PAGENAME}}</nowiki></code> will be [[Wikipedia:WP:SUBST|substituted]] with the page name of the real location of the content when parsed by the servers. For example, <code><nowiki>{{navbar|Navbar/doc}}</nowiki></code> gives:<br />{{navbar|Navbar/doc}}
When used in content that is selectively transcluded but which is also used as-is in its original location, this template should be wrapped in {{xtag|includeonly|p}} markup, so that it only appears when transcluded.
Line 68:
==Notes==
Navbar is contained within a {{tag|div}} in order to accommodate a horizontal unnumbered list. This means it cannot be placed inside a {{tag|span}} or other inline element, because the [[Wikipedia:HTML Tidy]] extension will 'fix' situations where it finds block elements inside inline elements.
==Prepackaged==
| |||