Template:R: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Chris Day
No edit summary
Line 19: Line 19:
This template is used on [[CZ:Related Articles]] pages.
This template is used on [[CZ:Related Articles]] pages.


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


<code><nowiki>{{r|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:


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


'''For proper use,''' [[Template:R]] template requires a definition in a certain template.  For an example, see below.
Or for a redirect without a definition:


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


produces:
==Name specificity==
<code><nowiki>{{r|Nova (astronomy)}}</nowiki></code> is seen as: {{r|Nova (astronomy)}}
 
<code><nowiki>{{r|Nova (astronomy)|Nova}}</nowiki></code> is seen as: {{r|Nova (astronomy)|Nova}}
 
==No article==
If used on an entry that does not exist but does have a definition:
 
<code><nowiki>{{r|Botany}}</nowiki></code> produces: {{r|Botany}}
 
If used on an entry that does not exist (e.g. [[Foobar]]), 
 
<code><nowiki>{{r|Foobar}}</nowiki></code> produces: {{r|Foobar}} .


{{r|Foobar}}
Notice that there are ''four'' links in the above output:
Notice that there are ''four'' links in the above output:
* "Foobar" is a link to a blank article to be titled "Foobar".
* "Foobar" is a link to a blank article to be titled "Foobar".

Revision as of 14:35, 8 May 2008


This template is used on CZ:Related Articles pages.

Example of use

{{r|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:

{{r|Supernova}} produces:

  • 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] [r]

Or for a redirect without a definition:

{{r|Biological}} produces:

Name specificity

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

  • 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] [r]

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

  • 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] [r]

No article

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

{{r|Botany}} produces:

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

{{r|Foobar}} produces:

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".
  • "r" is a link to the Related Articles page for "Foobar". If no such page exists yet, the link will be red.