قالب:Codifiednavbar/doc

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