Template:Pl: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
(How is this? Better or worse for the pages it is used on?)
imported>Chris Day
No edit summary
Line 1: Line 1:
{{#ifexist: Image:Level{{Template:{{{1|}}}/Metadata|info=status}}.jpg
<includeonly>{{#ifexist: Image:Level{{Template:{{{1|}}}/Metadata|info=status}}.jpg
           |{{#if: {{{2|}}}  
           |{{#if: {{{2|}}}  
                 |[[Image:Level{{Template:{{{1|}}}/Metadata|info=status}}.jpg|10px]]&nbsp;[[{{{1|}}}|{{{2|}}}]]  
                 |[[Image:Level{{Template:{{{1|}}}/Metadata|info=status}}.jpg|10px]]&nbsp;[[{{{1|}}}|{{{2|}}}]]  
Line 9: Line 9:
                 |{{#if: {{{2|}}}  
                 |{{#if: {{{2|}}}  
                       |[[{{{1|}}}|{{{2|}}}]]  
                       |[[{{{1|}}}|{{{2|}}}]]  
                       |[[{{{1|}}}]] }} }} }}
                       |[[{{{1|}}}]] }} }} }}</includeonly><noinclude>
 
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 [[Image:Level3.jpg|20px]], [[Image:Level2.jpg|20px]], [[Image:Level1.jpg|20px]] and [[Image:Level0.jpg|20px]], 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 ([[Image:Level4.jpg|20px]]).
 
==Example of use==
<code><nowiki>{{pl|Biology}}</nowiki></code> produces: {{pl|Biology}}
 
The name does not have to be identical to the articles name. This might be useful when the context of the word is not in doubt. For example, on the [[Biology/Related Articles]] page it would be better to use the word [[Cell]] rather than [[Cell (biology)]].
 
<code><nowiki>{{pl|Cell (biology)}}</nowiki></code> is seen as: {{pl|Cell (biology)}}
 
<code><nowiki>{{pl|Cell (biology)|Cell}}</nowiki></code> is seen as: {{pl|Cell (biology)|Cell}}
 
==No article or definition==
If used on an entry that does not exist or have a definition (e.g. [[Foobar]]), 
 
<code><nowiki>{{pl|Foobar}}</nowiki></code> produces: {{pl|Foobar}} .
 
Notice that there are ''four'' links in the above output:
* "Foobar" is a link to a blank article to be titled "Foobar".
*  ''<font color=#666666>Add definition</font>'' is a link to start a definition subpage for "Foobar".  You would click on that link and write a definition, and save it, and then it would appear here.  To learn what to write there, please see [[CZ:Definitions]].  Once you have written a definition, this link will disappear and the definition will appear in its place, as you can see above with the definition of "Biology".
* "e" is ''another'' link to a (blank) definition page for "Foobar".  But this link will not disappear.  (See the "Biology" line above again; you can click the blue "e" on that line and from there, edit the definition of "Biology".
 
==No article but has a definition==
If used on an entry that does not exist but does have a definition:
 
<code><nowiki>{{pl|Botany}}</nowiki></code> produces: {{pl|Botany}}
 
==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.
 
If used on a redirect that does have a definition:
 
<code><nowiki>{{pl|Supernova}}</nowiki></code> produces: {{pl|Supernova}}
 
Or for a redirect without a definition:
 
<code><nowiki>{{pl|fMRI}}</nowiki></code> produces: {{pl|fMRI}} .
 
</noinclude>

Revision as of 15:32, 12 May 2008


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: Level0.jpg Biology

The name does not have to be identical to the articles name. This might be useful when the context of the word is not in doubt. For example, on the Biology/Related Articles page it would be better to use the word Cell rather than Cell (biology).

{{pl|Cell (biology)}} is seen as: Level2.jpg Cell (biology)

{{pl|Cell (biology)|Cell}} is seen as: Level2.jpg Cell

No article or definition

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

{{pl|Foobar}} produces: Foobar .

Notice that there are four links in the above output:

  • "Foobar" is a link to a blank article to be titled "Foobar".
  • Add definition is a link to start a definition subpage for "Foobar". You would click on that link and write a definition, and save it, and then it would appear here. To learn what to write there, please see CZ:Definitions. Once you have written a definition, this link will disappear and the definition will appear in its place, as you can see above with the definition of "Biology".
  • "e" is another link to a (blank) definition page for "Foobar". But this link will not disappear. (See the "Biology" line above again; you can click the blue "e" on that line and from there, edit the definition of "Biology".

No article but has a definition

If used on an entry that does not exist but does have a definition:

{{pl|Botany}} produces: Level3.jpg Botany

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.

If used on a redirect that does have a definition:

{{pl|Supernova}} produces: Level2.jpg Supernova

Or for a redirect without a definition:

{{pl|fMRI}} produces: fMRI .