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 24: Line 24:


This template is used on [[CZ:Related Articles]] pages. For full documentation see [[Template:R/Doc]]
This template is used on [[CZ:Related Articles]] pages. For full documentation see [[Template:R/Doc]]
 
</noinclude>
==Code==
 
'''To control the color of the basename link.'''
<pre>
{{#ifeq:{{{2|}}}|D
|{{#ifexist: Image:Level{{Template:{{{1|}}}/Metadata|info=status}}.jpg
          |[[{{{1|}}}]]
          |{{#ifexist:{{{1|}}}
                |[[{{{1|}}}|'''''<font color="#cc9900">{{{1|}}}</font>''''']]
                |[[{{{1|}}}]] }} }}
|{{#ifexist: Image:Level{{Template:{{{1|}}}/Metadata|info=status}}.jpg
          |{{#if: {{{2|}}}
                |[[{{{1|}}}|{{{2|}}}]]
                |[[{{{1|}}}]]}}
          |{{#ifexist:{{{1|}}}
                |{{#if: {{{2|}}}
                      |[[{{{1|}}}|'''''<font color="#cc9900">{{{2|}}}</font>''''']]
                      |[[{{{1|}}}|'''''<font color="#cc9900">{{{1|}}}</font>''''']]}}
                |{{#if: {{{2|}}}
                      |[[{{{1|}}}|{{{2|}}}]]
                      |[[{{{1|}}}]] }} }} }}
</pre>
 
'''To add the [r] link to the Related Articles subpage'''
<pre>
<span class="plainlinks" style="font-size:0.8em;">{{#ifexist:{{{1}}}/Related Articles|[<nowiki>
</nowiki>[[{{{1}}}/Related Articles|r]]<nowiki></nowiki>]|[<nowiki>
</nowiki>[http://en.citizendium.org/wiki?action=edit&preload=
Template%3ARelated_Articles_start&title={{urlencode:{{{1}}}}}/Related_Articles
<font color=#CA3D10>r</font>]<nowiki></nowiki>]}}</span>}}
</pre>
 
'''To add definition.'''
<pre>
{{ {{#ifeq:{{{2|}}}|D
|Rpl def2
|{{#ifexist: {{{1|}}} (disambiguation)
        |dabdef
        |{{#ifexist: {{{1|}}}/Definition
            |Rpl def1
            |Rpl def3}} }} }}|1={{{1|}}}|2={{{2|}}} }}
</pre>
===[[Template:Rpl def1|Rpl def1]]===
<pre>
{{:{{{1}}}/Definition}} <span class="plainlinks" style="font-size:0.8em;">[<nowiki></nowiki>
[http://en.citizendium.org/wiki?title={{urlencode:{{{1}}}}}/Definition&action=edit e]<nowiki></nowiki>]</span>}}
</pre>
 
===[[Template:Rpl def2|Rpl def2]]===
<pre>
{{#ifexist: {{{1|}}}/Definition
            |{{#ifexist: {{{1|}}} (disambiguation)
                      |Definition and disambiguation exist at [[{{{1|}}}/Definition]] and [[{{{1|}}} (disambiguation)]]
::''Definition is:'' {{def|{{{1}}}}}
                      |Definition only: exists at [[{{{1|}}}/Definition]]; [http://en.citizendium.org/wiki?
action=edit&preload=Template%3APreload-disambig&title={{urlencode:{{{1}}}}}_(disambiguation) ''<font
color=#666666>please add a disambiguation page</font>''].
::''Definition is:'' {{def|{{{1}}}}} }}
            |{{#ifexist: {{{1|}}} (disambiguation)
                      |[[Image:Level0.jpg|15px]] Disambiguation exists at [[{{{1|}}} (disambiguation)]]
                      |[http://en.citizendium.org/wiki?action=edit&preload=Template%3APreload-
disambig&title={{urlencode:{{{1}}}}}_(disambiguation) ''<font color=#666666>Please add a disambiguation page.</font>''] }} }}
</pre>
 
===[[Template:Rpl def3|Rpl def3]]===
<pre>
[http://en.citizendium.org/wiki?action=edit&preload=Template%3ADef_preload&title=
{{urlencode:{{{1}}}}}/Definition ''<font color=#666666>Add brief definition or description</font>'']
</pre>
 
===[[Template:dabdef|dabdef]]===
<pre>
''<font color=#666666>Please do not use this term in your topic list, because we do not have a single article for it.
Please substitute a more precise term. See </font> [[{{{1}}} (disambiguation)]] <font color=#666666>for a list of
available, more precise, topics.</font>''
</pre></noinclude>

Revision as of 00:41, 30 May 2008


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