Template:Rpl: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Chris Day
No edit summary
Line 23: Line 23:




'''Example of use:'''
==Example of use==
<code><nowiki>{{rpl|Biology}}</nowiki></code> produces: {{rpl|Biology}}


<code><nowiki>{{rpl|Biology}}</nowiki></code>
==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.


produces:
If used on a redirect that does have a definition:


{{rpl|Biology}}
<code><nowiki>{{rpl|Supernova}}</nowiki></code> produces: {{rpl|Supernova}}
Notice that the template produces a space after the definition.


If used on an entry that is a redirect, or an article without a metadata template, the link will appear as a purple color. (e.g. [[Biological]])
Or for a redirect without a definition:


<code><nowiki>{{rpl|Biological}}</nowiki></code>
<code><nowiki>{{rpl|Biological}}</nowiki></code> produces: {{rpl|Biological}} .


produces:
==Name specificity==
<code><nowiki>{{rpl|Nova (astronomy)}}</nowiki></code> is seen as: {{rpl|Nova (astronomy)}}


{{rpl|Biological}} .
<code><nowiki>{{rpl|Nova (astronomy)|Nova}}</nowiki></code> is seen as: {{rpl|Nova (astronomy)|Nova}}


If used on an entry that does not exist (e.g. [[Foobar]]), 
==No article==
If used on an entry that does not exist but does have a definition:


<code><nowiki>{{rpl|Foobar}}</nowiki></code>
<code><nowiki>{{rpl|Botany}}</nowiki></code> produces: {{rpl|Botany}}


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


{{rpl|Foobar}} .
<code><nowiki>{{rpl|Foobar}}</nowiki></code> produces: {{rpl|Foobar}} .


Notice that there are ''three'' links in the above output:
Notice that there are ''three'' links in the above output:

Revision as of 15:34, 8 May 2008


This template is used on article lists like Natural Sciences Core Articles. It displays a pictorial representation of the article's status, the article's title (in blue if existent, otherwise in red), and a brief description that uses the rpl template.


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

{{rpl|Biology}} produces:

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:

{{rpl|Supernova}} produces:

  • Level2.jpg Supernova: An astronomical object exploding to a brightness similar to that of an entire galaxy. Caused by a catastrophic explosion of either a white dwarf system or an aged star about five times the size of the sun, which occurs when the star collapses; a neutron star or a black hole may be formed as a result, or the explosion results in no remaining compact object. [e]

Or for a redirect without a definition:

{{rpl|Biological}} produces:

Name specificity

{{rpl|Nova (astronomy)}} is seen as:

  • Level2.jpg Nova (astronomy): Variable star in the class of cataclysmic variable stars, which is normally very faint but occasionally erupts in an immense explosion, increasing its brightness a thousand to tens of millions of times; similar but unrelated to supernovae. [e]

{{rpl|Nova (astronomy)|Nova}} is seen as:

  • Level2.jpg Nova: Variable star in the class of cataclysmic variable stars, which is normally very faint but occasionally erupts in an immense explosion, increasing its brightness a thousand to tens of millions of times; similar but unrelated to supernovae. [e]

No article

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

{{rpl|Botany}} produces:

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

{{rpl|Foobar}} produces:

Notice that there are three links in the above output:

  • "Foobar" is a link to a blank article to be titled "Foobar".
  • "Add definition" is a link to 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 subpage for "Foobar". But this link will not disappear. (Again, see the "Biology" line above; you can click the blue "e" on that line and from there, edit the definition of "Biology").