Difference between revisions of "Template:Navbar-header"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(more simple fixes, updated example)
m (94 revisions from wikipedia:Template:Navbar-header)
 
(34 intermediate revisions by 19 users not shown)
Line 1: Line 1:
{|border="0" cellspacing="0" cellpadding="0" style="width: 100%; background: transparent;"
+
<div style="text-align:center; position:relative; white-space:nowrap; {{#if:{{{fontcolor|}}}| color:{{{fontcolor}}};}}">{{{1}}}<!--
|- valign="middle"
 
|width="10%"|<!-- -->
 
|align="center"|{{#if:{{{fontcolor|}}} |<span style="color:{{{fontcolor|}}} !important;">{{{1}}}</span>|{{{1}}}}}
 
|align="right" width="10%"|{{Tnavbar|{{{2|{{PAGENAME}}}}}|mini=1|nodiv=1}}
 
|}<noinclude>
 
  
 +
-->{{Navbar
 +
  | 1 = {{{2<noinclude>|Navbar-header</noinclude>}}}
 +
  | {{#ifeq: {{{plain|}}}
 +
      |<!--equals:-->1
 +
      |<!--then:-->plain
 +
      |<!--else:-->mini
 +
    }} = 1
 +
  | style = position:absolute; right:0; top:0; margin:0 5px;
 +
  | {{#if: {{{fontcolor|}}}
 +
      | fontstyle | NULL }} = color:{{{fontcolor}}};
 +
}}<!--
  
==Usage==
+
--></div><noinclude>
Simply place '''<nowiki>{{</nowiki>'''Tnavbar-header|Heading|Name of Template'''<nowiki>}}</nowiki>''' in the header area of a given [[Wikipedia:Navigational templates|template]] to add a centred heading with right justified <span style="font-size:xx-small;">'''v'''&middot;'''d'''&middot;'''e'''&middot;'''h'''</span> navigational functionality. If there is need for a font color other than black, use '''<nowiki>{{</nowiki>'''Tnavbar-header|Heading|Name of Template|fontcolor=#[[Web colors|html color code]]'''<nowiki>}}</nowiki>''' instead.
+
{{documentation}}
==Note to editors==
+
<!-- Add cats and interwikis to the /doc subpage, not here! -->
This template is likely represented across <span class="plainlinks">[http://en.wikipedia.org/w/index.php?title=Special:Whatlinkshere/Template:Tnavbar-header&limit=2000&from=0 hundreds of pages (if not thousands)]</span>; please tread lightly when editing here.
 
 
 
==Examples / See also==
 
<pre><nowiki>
 
{{Tnavbar-header|Header Text}}
 
{{Tnavbar-header|[[redlink|Linked Text]], Unlinked Text|Template Name|fontcolor=Gray}}
 
</nowiki></pre>
 
 
 
Yields:
 
{{Tnavbar-header|Header Text}}
 
 
 
 
 
 
 
{{Tnavbar-header|[[redlink|Linked Text]], Unlinked Text|Template Name|fontcolor=Gray}}
 
 
 
 
 
[[Category:Internal link templates|{{PAGENAME}}]]
 
 
 
[[hu:Sablon:Navifejléc]]
 
[[sl:Predloga:Prednavmeni-naslov]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 00:49, 8 March 2016

{{{1}}}
Documentation icon Template documentation[create]