Difference between revisions of "Template:Codifiednavbar"

From Chevy Wiki
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision)
 
Line 1: Line 1:
{{convert/{{#if:{{{4|}}}|s}}{{#if:{{{3|}}}|p}}round|{{{1}}}|{{{2}}}/{{{b}}}|{{{3}}}|{{{4}}}|{{{j}}}}}&nbsp;{{{u}}}<noinclude>
<includeonly><!--
[[Category:Subtemplates of Template Convert]]{{pp-template|small=yes}}
-->{{#if:{{{nodiv|}}}
    |<span class="noprint plainlinksneverexpand" style="white-space:nowrap; font-weight:normal; font-size:xx-small; {{{fontstyle|}}}; {{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}} {{{style|}}}">
    |<div class="noprint plainlinksneverexpand" style="background-color:transparent; padding:0; white-space:nowrap; font-weight:normal; font-size:xx-small; {{{fontstyle|}}}; {{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}} {{{style|}}}">
  }}<!-- end nodiv
-->{{#if:{{{nohead|}}}{{{mini|}}}{{{miniv|}}}{{{plain|}}}{{{viewplain|}}}
      |
      |{{#if:{{{text|}}}
            |{{ucfirst:{{{text}}}}}:&nbsp;
            |This codified information:&nbsp;
        }}
  }}<!--
-->{{#if:{{{viewonly|}}}{{{miniv|}}}{{{viewplain|}}}
    |[[Template:{{{1}}}|<span title="View {{#if:{{{text|}}}|{{{text}}}|this codified information}}" style="{{{fontstyle|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}">{{#if:{{{mini|}}}{{{miniv|}}}|v|view}}</span>]]
    |[[Template:{{{1}}}|<span title="View {{#if:{{{text|}}}|{{{text}}}|this codified information}}" style="{{{fontstyle|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}">{{#if:{{{mini|}}}|v|view}}</span>]]<!--
-->&nbsp;<span style="font-size:80%;">•</span>&nbsp;[[Template talk:{{{1}}}|<span style="color:#002bb8;{{{fontstyle|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}" title="Discussion about {{#if:{{{text|}}}|{{{text}}}|this codified information}}">{{#if:{{{mini|}}}|d|talk}}</span>]]<!--
-->&nbsp;<span style="font-size:80%;">•</span>&nbsp;[{{fullurl:{{ns:10}}:{{{1}}}|action=edit}} <span style="color:#002bb8;{{{fontstyle|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}" title="Edit {{#if:{{{text|}}}|{{{text}}}|this codified information}}.">{{#if:{{{mini|}}}|e|edit}}</span>]
  }}<!--
-->{{#if:{{{notail|}}}{{{mini|}}}{{{miniv|}}}{{{plain|}}}{{{viewplain|}}}
      |
      |{{#if:{{{text|}}}
            |&nbsp;{{{text}}}.
            |&nbsp;this codified information.
        }}
  }}<!--
-->{{#if:{{{nodiv|}}}
    |</span>
    |</div><!--
-->}}<!-- end nodiv --></includeonly><noinclude>
{{documentation}}  
</noinclude>
</noinclude>

Latest revision as of 14:55, 3 February 2009

[edit] Template-info.svg Template documentation

Function

Purpose

Codifiednavbar (Codified data in a template navigation bar) is a template to allow access to the shared location of standardised, possibly encyclopedic, content used by multiple articles and other pages in Wikipedia.

The template will display text with links to view, edit, and discuss the codified data.

Behaviours

No wrap

The text displayed by the template will no text wrap on white space.

Compatability with Tnavbar

This template is mostly backwards compatible with {{Tnavbar}}.

Deficiencies

Default options

The default setting with no options parameters set is not really useful.

For example:

{{Codifiednavbar|Specialist lea type descr}}

Produces:

This codified information: view  talk  edit this codified information.

Parameter checking

The template does not check for mandatory parameters.

Usage

The following skeleton can be copied and edited into an article. For a description of each parameter, see Template parameters, below.

Skeleton

{{Codifiednavbar|codifieddatatemplatename
| nohead=
| notail=
| text=
| nodiv=
}}

Examples

Situation Wiki text Results in
Normal
Default Some text before. {{Codifiednavbar|Specialist lea type descr}} Some text afterwards. Some text before.
This codified information: view  talk  edit this codified information.
Some text afterwards.
No head Some text before. {{Codifiednavbar|Specialist lea type descr|nohead=1}} Some text afterwards. Some text before.
view  talk  edit this codified information.
Some text which afterwards.
No tail Some text before. {{Codifiednavbar|Specialist lea type descr|notail=1}} Some text afterwards. Some text before.
This codified information: view  talk  edit
Some text afterwards.
Different colour Some text before. {{Codifiednavbar|Specialist lea type descr|fontcolor=olive}} Some text afterwards. Some text before.
This codified information: view  talk  edit this codified information.
Some text afterwards.
Inline, and no head Some text before. {{Codifiednavbar|Specialist lea type descr|nohead=1|nodiv=1}} Some text afterwards. Some text before. view  talk  edit this codified information. Some text afterwards.
Inline, no head, and set text Some text before. {{Codifiednavbar|Specialist lea type descr|nohead=1|nodiv=1|text=text naming codified data}} Some text afterwards. Some text before. view  talk  edit text naming codified data. Some text afterwards.
Inline, no tail, and set text Some text before. {{Codifiednavbar|Specialist lea type descr|notail=1|nodiv=1|text=text naming codified data}} Some text afterwards. Some text before. Text naming codified data: view  talk  edit Some text afterwards.
No head, and no tail Some text before. {{Codifiednavbar|Specialist lea type descr|plain=1}} Some text afterwards. Some text before.
view  talk  edit
Some text afterwards.
Inline, no tail, and set text Some text before. {{Codifiednavbar|Specialist lea type descr|plain=1|nodiv=1|text=text naming codified data}} Some text afterwards. Some text before. view  talk  edit Some text afterwards.
Mini
Mini version Some text before. {{Codifiednavbar|Specialist lea type descr|mini=1}} Some text afterwards. Some text before.
v  d  e
Some text afterwards.
Mini version inline Some text before. {{Codifiednavbar|Specialist lea type descr|mini=1|nodiv=1}} Some text afterwards. Some text before. v  d  e Some text afterwards.
View only
No head, no tail, view only Some text before. {{Codifiednavbar|Specialist lea type descr|viewplain=1}} Some text afterwards. Some text before. Some text afterwards.
Inline, no head, no tail, view only Some text before. {{Codifiednavbar|Specialist lea type descr|viewplain=1|nodiv=1}} Some text afterwards. Some text before. view Some text afterwards.
Mini, view only Some text before. {{Codifiednavbar|Specialist lea type descr|miniv=1}} Some text afterwards. Some text before. Some text afterwards.

Template Parameters

Parameter Required Description
1 yes Name of the template containing the codified data.
nohead no Set if head text not to be displayed.
notail no Set if tail text not to be displayed.
text no Text to be displayed as head text, tail text, and tool tip text. Defaults to 'this codified information. Head text is automatically given a leading capital. Tail text is automatically suffixed with a stop.
nodiv no If set does not divide the displayed text into a separate paragraph.
plain no If set is equivalent to setting both nohead and notail.
viewonly no Set to not display talk and edit links. Only view link is displayed.
mini no Set to reduce words for links view, talk, edit to the letters v, d, e. Also has the effect of setting plain or setting both nohead and notail.
minv no If set is equivalent to setting both mini and viewonly.
viewplain no If set is equivalent to setting both viewonly and plain.
fontcolor no Sets the font color of the displayed text to the value provided.

See also