Template:Navbar-header: Difference between revisions
meta>Netscott m +bgcolor |
meta>Netscott m →Usage: mini->header |
||
| Line 1: | Line 1: | ||
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="{{{bgcolor}}}"><tr bgcolor="{{{bgcolor}}}"><td width="20%" bgcolor="{{{bgcolor}}}"> </td><td align="center" bgcolor="{{{bgcolor}}}">{{{1}}}</td><td align="right" width="20%" bgcolor="{{{bgcolor}}}"><div class="noprint plainlinksneverexpand" id="Tnavbar-mini-header" style="background-color: transparent; padding: 0; font-size:xx-small; color:#000000;">[{{fullurl:Template:{{{2}}}}} <span style="color:#002bb8;" title="View this template.">v</span>]·[{{fullurl:Template_talk:{{{2}}}}} <span style="color:#002bb8;" title="Discussion about this template.">d</span>]·[{{fullurl:Template:{{{2}}}|action=edit}} <span style="color:#002bb8;" title="You can edit this template. Please use the preview button before saving.">e</span>] </span></div></td></tr></table><noinclude> | <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="{{{bgcolor}}}"><tr bgcolor="{{{bgcolor}}}"><td width="20%" bgcolor="{{{bgcolor}}}"> </td><td align="center" bgcolor="{{{bgcolor}}}">{{{1}}}</td><td align="right" width="20%" bgcolor="{{{bgcolor}}}"><div class="noprint plainlinksneverexpand" id="Tnavbar-mini-header" style="background-color: transparent; padding: 0; font-size:xx-small; color:#000000;">[{{fullurl:Template:{{{2}}}}} <span style="color:#002bb8;" title="View this template.">v</span>]·[{{fullurl:Template_talk:{{{2}}}}} <span style="color:#002bb8;" title="Discussion about this template.">d</span>]·[{{fullurl:Template:{{{2}}}|action=edit}} <span style="color:#002bb8;" title="You can edit this template. Please use the preview button before saving.">e</span>] </span></div></td></tr></table><noinclude> | ||
==Usage== | ==Usage== | ||
Simply place '''<nowiki>{{</nowiki>'''Tnavbar- | Simply place '''<nowiki>{{</nowiki>'''Tnavbar-header|Heading|Name of Template|bgcolor=#html color code'''<nowiki>}}</nowiki>''' inside a given [[Wikipedia:Navigational templates|template]] to add a centred heading with '''v''' · '''d''' · '''e''' navigational functionality. | ||
==Note to editors== | ==Note to editors== | ||
Revision as of 16:29, 19 June 2006
| {{{1}}} |
Usage
Simply place {{Tnavbar-header|Heading|Name of Template|bgcolor=#html color code}} inside a given template to add a centred heading with v · d · e navigational functionality.
Note to editors
This template is likely represented across hundreds of pages (if not thousands); please tread lightly when editing here.
Examples / See also
| Template | This... | Produces... | ||
|---|---|---|---|---|
| {{Tnavbar}} | → | Divides into a separate section: {{Tnavbar|Tnavbar}} like so. | → | Divides into a separate section: Template:Tnavbar like so. |
| This template | → | Divides into a separate section: {{Tnavbar-mini|Tnavbar}} like so. | → | Divides into a separate section: Template:Tnavbar-mini like so. |
| {{Tnavbar-plain}} | → | Divides into a separate section: {{Tnavbar-plain|Tnavbar}} like so. | → | Divides into a separate section: Template:Tnavbar-plain like so. |
| {{Tnavbar-nodiv}} | → | Good for "blending" into text. {{Tnavbar-nodiv|Tnavbar}} | → | Good for "blending" into text. Template:Tnavbar-nodiv |
| {{Tnavbar-mini-nodiv}} | → | Good for "blending" {{Tnavbar-mini-nodiv|Tnavbar}} into text. | → | Good for "blending" Template:Tnavbar-mini-nodiv into text. |
| {{Tnavbar-plain-nodiv}} | → | {{Tnavbar-plain-nodiv|Tnavbar}} Good for "blending" into text. | → | Template:Tnavbar-plain-nodiv Good for "blending" into text. |
Navbar-header |
Best-edited articles in the "Navbar-header" categoryExtension:DynamicPageList4 (DPL4), version 4.0.0: Error: MediaWiki\Extension\DynamicPageList4\Query::buildAndSelect - Template:Navbar-header: The DynamicPageList4 extension (version 4.0.0) produced a SQL statement which led to a Database error.<br/>The reason may be an internal error of DynamicPageList4 or an error that you made; especially when using parameters like 'categoryregexp' or 'titleregexp'. Usage of non-greedy <code>*?</code> matching patterns are not supported.<br/>The error message was:<br/><code>Error 1054: Unknown column 'cl1.cl_to' in 'ON' Function: MediaWiki\Extension\DynamicPageList4\Query::buildAndSelect - Template:Navbar-header Query: SET STATEMENT max_statement_time=10 FOR SELECT DISTINCT p.page_namespace AS `page_namespace`,p.page_id AS `page_id`,p.page_title AS `page_title` FROM `page` `p` JOIN `categorylinks` `cl1` ON (((p.page_id = cl1.cl_from) AND (cl1.cl_to = 'Navbar-header'))) JOIN `categorylinks` `cl2` ON (((p.page_id = cl2.cl_from) AND ((cl2.cl_to = 'Cover_story_articles') OR (cl2.cl_to = 'Silver-level_articles')))) WHERE p.page_is_redirect = 0 LIMIT 500 </code>
|