Template:R: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
(Tux will now behave same way as all articles with a disambiguation page)
imported>Chris Day
No edit summary
Line 19: Line 19:
                   |[http://en.citizendium.org/wiki?action=edit&preload=Template%3ADef_preload&title={{urlencode:{{{1}}}}}/Definition  ''<font color=#666666>Add definition</font>'']}} }}</includeonly><noinclude>
                   |[http://en.citizendium.org/wiki?action=edit&preload=Template%3ADef_preload&title={{urlencode:{{{1}}}}}/Definition  ''<font color=#666666>Add definition</font>'']}} }}</includeonly><noinclude>


This template is used on [[CZ:Related Articles]] pages.
This template is used on [[CZ:Related Articles]] pages. For full documentation see [[Template:R/Doc]]</noinclude>
 
==Example of use==
<code><nowiki>{{r|Biology}}</nowiki></code> produces: {{r|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>{{r|Cell (biology)}}</nowiki></code> is seen as: {{r|Cell (biology)}}
 
<code><nowiki>{{r|Cell (biology)|Cell}}</nowiki></code> is seen as: {{r|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>{{r|Foobar}}</nowiki></code> produces: {{r|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".
* "r" is a link to the Related Articles page for "Foobar".  If no such page exists yet, the link will be red.
 
==No article but has a definition==
If used on an entry that does not exist but does have a definition:
 
<code><nowiki>{{r|Botany}}</nowiki></code> produces: {{r|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>{{r|Supernova}}</nowiki></code> produces: {{r|Supernova}}
 
Or for a redirect without a definition:
 
<code><nowiki>{{r|fMRI}}</nowiki></code> produces: {{r|fMRI}} .
 
</noinclude>

Revision as of 12:34, 16 May 2008


This template is used on CZ:Related Articles pages. For full documentation see Template:R/Doc