Template:Pl: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
(try using three colours that are supposed to be good for colourblind and have high contrast. carnation pink (#FF99CC), violet (#9933FF), and navy blue (#000066).)
imported>Chris Day
No edit summary
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq: {{Template:{{{1|}}}/Metadata|info=status}}|0
<includeonly>{{#ifexist: Image:Level{{Template:{{{1|}}}/Metadata|info=status}}.jpg
|{{#if: {{{2|}}} | [[{{{1|}}}|<font color="#000066">{{{2|}}}</font>]]&nbsp;[[Image:Level0.jpg|10px]] |[[{{{1|}}}|<font color="#006400">{{{1|}}}</font>]]&nbsp;[[Image:Level0.jpg|10px]]}}
          |{{#if: {{{2|}}}  
|{{#ifeq: {{Template:{{{1|}}}/Metadata|info=status}}|1
                |[[Image:Level{{Template:{{{1|}}}/Metadata|info=status}}.jpg|10px|{{#ifeq: 0 | {{{{{1|}}}/Metadata|info=status}}|Approved Article|}}{{#ifeq: 1 | {{{{{1|}}}/Metadata|info=status}}|Developed Article|}}{{#ifeq: 2 | {{{{{1|}}}/Metadata|info=status}}|Developing Article|}}{{#ifeq: 3 | {{{{{1|}}}/Metadata|info=status}}|Stub|}}{{#ifeq: 4 | {{{{{1|}}}/Metadata|info=status}}|External Article|}}]]&nbsp;[[{{{1|}}}|{{{2|}}}]]
|{{#if: {{{2|}}} | [[{{{1|}}}|<font color="#000066">{{{2|}}}</font>]]&nbsp;[[Image:Level1.jpg|10px]] |[[{{{1|}}}|<font color="#006400">{{{1|}}}</font>]]&nbsp;[[Image:Level1.jpg|10px]]}}
                |[[Image:Level{{Template:{{{1|}}}/Metadata|info=status}}.jpg|10px|{{#ifeq: 0 | {{{{{1|}}}/Metadata|info=status}}|Approved Article|}}{{#ifeq: 1 | {{{{{1|}}}/Metadata|info=status}}|Developed Article|}}{{#ifeq: 2 | {{{{{1|}}}/Metadata|info=status}}|Developing Article|}}{{#ifeq: 3 | {{{{{1|}}}/Metadata|info=status}}|Stub|}}{{#ifeq: 4 | {{{{{1|}}}/Metadata|info=status}}|External Article|}}]]&nbsp;[[{{{1|}}}|{{{1|}}}]]}} {{ {{#if:{{Template:{{{1|}}}/Metadata|info=ToA editor}}|Approval button|x0}} }}
|{{#ifeq: {{Template:{{{1|}}}/Metadata|info=status}}|2
          |{{#ifexist:{{{1|}}}
|{{#if: {{{2|}}} | [[{{{1|}}}|<font color="#9933FF">{{{2|}}}</font>]]&nbsp;[[Image:Level2.jpg|10px]] |[[{{{1|}}}|<font color="#DAA520">{{{1|}}}</font>]]&nbsp;[[Image:Level2.jpg|10px]]}}
                |{{#if: {{{2|}}}  
|{{#ifeq: {{Template:{{{1|}}}/Metadata|info=status}}|3
                      |[[{{{1|}}}|<font color="#B200B2">{{{2|}}}</font>]]  
|{{#if: {{{2|}}} | [[{{{1|}}}|<font color="#9933FF">{{{2|}}}</font>]]&nbsp;[[Image:Level3.jpg|10px]] |[[{{{1|}}}|<font color="#DAA520">{{{1|}}}</font>]]&nbsp;[[Image:Level3.jpg|10px]]}}
                      |[[{{{1|}}}|<font color="#B200B2">{{{1|}}}</font>]]}}
|{{#ifeq: {{Template:{{{1|}}}/Metadata|info=status}}|4
                |{{#if: {{{2|}}}  
|{{#if: {{{2|}}} | [[{{{1|}}}|<font color="#FF99CC">{{{2|}}}</font>]] |[[{{{1|}}}|<font color="#FF99CC">{{{1|}}}</font>]]}}
                      |[[{{{1|}}}|{{{2|}}}]]  
|{{#if: {{{2|}}} | [[{{{1|}}}|{{{2|}}}]] |[[{{{1|}}}]]}}
                      |[[{{{1|}}}]] }} }} }}</includeonly><noinclude>{{TlDoc}}</noinclude>
}}}}}}}}}}

Latest revision as of 11:28, 27 February 2009

This documentation is transcluded from Template:Pl/doc (edit | history)

This template can be used on workgroup pages or user pages as a tool to track the status of any article. It displays a pictorial representation of the article's status, the article's title (in blue if existent, otherwise in red).


The possible depictions are Level3.jpg, Level2.jpg, Level1.jpg and Level0.jpg, with the status of the article increasing from stubby (left) to approved (right). An external article that has been imported into citizendium with no changes is indicated by an empty status image (Level4.jpg).

Example of use

{{pl|Biology}} produces: Approved Article Biology

The name does not have to be identical to the article's name. This might be useful when the context of the word is not in doubt.

{{pl|Cell (biology)}} is seen as: Developing Article Cell (biology)

{{pl|Cell (biology)|Cell}} is seen as: Developing Article Cell

Up for approval

If an article has been nominated for approval or reapproval the approval icon will appear at the end of the articles name. It will appear as below:

Approved Article Biology Approval button.png

Developing Article Cell Approval button.png

No article

If used on an entry that does not exist (e.g. Foobar),

{{pl|Foobar}} produces: Foobar

Redirects

If used on an entry that is a redirect, or an article without a metadata template, the link will appear as a purple color.

{{pl|Supernova}} produces: Developing Article Supernova