Template:RD/doc

This template is used on CZ:Related Articles pages.

Examples of use
produces:

Two different links (r and e) are present between the brackets.
 * [r] links to the Related Articles subpage for the "basename". If no such page exists yet, the link will be red.
 * [e] links to the definition subpage for the "basename". You can click the "e" to edit the definition of "Biology".

Adjusting name (variable 2)
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).

is seen as:

is seen as:

Formatting (variable3)
The default formatting is a single non-numbered list element, but this can be overridden using a third variable, which contains a different style. Note that you don't have to give a second argument, to be able to specify the third - just set the second argument to blank, by typing "||", and the name shown will be the same as the link. Some examples include: Numbering could also be used:

In fact, any text you wish can be prepended to the line, using the third argument - or even nothing at all, if that's what you need:

Other features
This template uses color and pictogram indicators to convey other information about the basename that might be useful for an author wishing to know the state of the potential article or cluster. These are described in the following sections.

Ready for Approval
If an article is being recommended for approval this will be noted in the R template by the addition of a green approval logo at the start of the article name. For example, would look similar to the following if it was up for approval:


 * [[Image:Approval button.png|13px]] James Clerk Maxwell [r]: (1831 – 1879) Scottish physicist best known for his formulation of electromagnetic theory and the statistical theory of gases. [e]

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

produces:.

Notice that there are three links in the above output:
 * "Foobar" is a link to a blank article to be titled "Foobar".
 * The r link will preload a page formated to start a Related Articles subpage. To learn what to write there, please see CZ:Related Articles.
 * Add brief definition or description  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".

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

produces:

The red link gives the following preload text to allow the creation of a lemma article (see next section).

With a "definition only" the article link will be red, but by creating a lemma article (article with the preloaded text above) the link does exist and hence no red link. The article actually uses the same text as the definition (the lemma article transcludes text from the definition subpage), consequently, the article does not have to be developed beyond a glossary entry.

Only an article page and a definition exist
This is known as a lemma article, basically nothing more than a definition is expected to be written.

produces:

The black text link to the lemma article will remain as an indication to authors that a new article on that topic can/could/should be written if appropriate.

Redirects
If the R template is used on an entry that is a redirect, or a lemma article without a metadata template, the link will appear as black text.

If used on a redirect that does have a definition:
 * In this case:-
 * 1) the supernova article is a redirect as follows  #Redirect Nova (astronomy) :
 * 2) and a definition does exist at Supernova/Definition.

produces:

Or for a redirect without a definition:

produces:.

For such an example the normal blue link can be made to appear by using the second variable.

will give:

Or a different definition can be written if the terms are distinct enough, such as supernova above. In the latter case, the black text link style will remain as an indication to authors that a new article on that topic can/could/should be written.

On own Related Articles subpage
When this template is used for an article name and is placed on that article, or one of its subpages, it will not show hyperlinks or a definition but just show the term in plain text.

Ambiguous terms
If it is used on a term which is ambiguous (formally, there is a "{Basename} (disambiguation)" page), it instructs that one should not use that term, but pick one of the specific meanings to link to. For example:

gives

Thus, one would edit to a more precise link:

gives

R style1
|

To add the [r] link to the Related Articles subpage
}}

Rpl def1
[ e  ] }}

Rpl def3
[http://en.citizendium.org/wiki?action=edit&preload=Template%3ADef_preload&title= /Definition Add brief definition or description ]