Template:R: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
(grey link rather than a red link)
imported>Chris Day
No edit summary
Line 1: Line 1:
* [[{{{1}}}]]: {{#ifexist: Template:Def {{{1}}}
<includeonly>* [[{{{1}}}]]: {{#ifexist: Template:Def {{{1}}}
|{{#ifexist: {{{1}}}/Definition
|{{#ifexist: {{{1}}}/Definition
         |{{:{{{1}}}/Definition}} <font size=1>[<nowiki></nowiki>[[{{{1}}}/Definition|e]]<nowiki></nowiki>]</font>
         |{{:{{{1}}}/Definition}} <font size=1>[<nowiki></nowiki>[[{{{1}}}/Definition|e]]<nowiki></nowiki>]</font>
Line 5: Line 5:
|{{#ifexist: {{{1}}}/Definition
|{{#ifexist: {{{1}}}/Definition
         |{{:{{{1}}}/Definition}} <font size=1>[<nowiki></nowiki>[[{{{1}}}/Definition|e]]<nowiki></nowiki>]</font>
         |{{:{{{1}}}/Definition}} <font size=1>[<nowiki></nowiki>[[{{{1}}}/Definition|e]]<nowiki></nowiki>]</font>
         |[http://en.citizendium.org/wiki?action=edit&preload=Template%3ADef_preload&title={{anchorencode:{{{1}}}}}/Definition  ''<font color=#666666>Add definition</font>''] <font size=1>[<nowiki></nowiki>[[{{{1}}}/Definition|e]]<nowiki></nowiki>]</font>}} }} <font size=1>[<nowiki></nowiki>[[{{{1}}}/Related Articles|r]]<nowiki></nowiki>]</font><noinclude>
         |[http://en.citizendium.org/wiki?action=edit&preload=Template%3ADef_preload&title={{anchorencode:{{{1}}}}}/Definition  ''<font color=#666666>Add definition</font>''] <font size=1>[<nowiki></nowiki>[[{{{1}}}/Definition|e]]<nowiki></nowiki>]</font>}} }} <font size=1>[<nowiki></nowiki>[[{{{1}}}/Related Articles|r]]<nowiki></nowiki>]</font></includeonly><noinclude>


This template is used on [[CZ:Related Articles]] pages.
This template is used on [[CZ:Related Articles]] pages.
Line 27: Line 27:
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".
* "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".
* ''<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".
* "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.
* "r" is a link to the Related Articles page for "Foobar".  If no such page exists yet, the link will be red.


</noinclude>
</noinclude>

Revision as of 13:32, 8 May 2008


This template is used on CZ:Related Articles pages.

Example of use:

{{r|Biology}}

produces:

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.

{{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.