Template:Dabdef/doc: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Russell D. Jones
(→‎Code: color)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
===Usage===
'''<big>Usage</big>'''


Produces a standard warning message for the definition of all terms which are disambiguated. Placed on the /Definition subpage of the base name of all terms which are disambiguated; the page at the base name will often contain a redirect to a disambiguation page. Takes an optional argument which is the basename to direct people to.
Integral part of the {{tl|R}}, {{tl|Rpl}} and {{tl|Def only}} template function.


===Example===
'''R template function'''


See [[Speech/Definition]]
This template is an integral part of the {{tl|R}} template function. It produces a standard warning message instead of a definition for a fully disambiguated term. Even if a ''definition only'' page exists for the term it will be ignored by the R template.


HOWEVER, for a partially disambiguated term the Term/Definition page will be used as usual.


===Caveats===
* '''Fully disambiguated''': a term that is a redirect to a disambiguation page and has no metadata (even if a definition exists for the term it will be ignored by the R template).
* '''Partially disambiguated''': a term that exists as an article (with or without a definition) and a disambiguation pages also exist.


Should not be placed on Definition subpages of disambiguation pages.
'''Function semi-independent of the R template'''


This occurs when this template is placed on a /Definition subpage:
:For terms that are fully disambiguated it will produce the standard message to direct readers to the disambiguation page (only seen if a reader views the page directly, usually these definition pages should be deleted).
:If a disambiguation page is required but it has not been created this template will produces a message on the definition page that indicates the intent to create a disambiguation page. This message will also be used by the R template to advertise the need for a new disambiguation page on Related Articles pages that link to the term.


===Code===
===Code===
Line 19: Line 25:
             |Rpl def1
             |Rpl def1
             |Rpl def3}}|{{{1|}}} }}
             |Rpl def3}}|{{{1|}}} }}
|''<font color=#666666>Please do not use this term in your topic list, because there is no single article  
|''<font color=#FA8072>Please do not use this term in your topic list, because there is no single article  
for it. Please substitute a more precise </font>{{#ifexist:{{{1|{{BASEPAGENAME}}}}} (disambiguation)
for it. Please substitute a more precise </font>{{#ifexist:{{{1|{{BASEPAGENAME}}}}} (disambiguation)
|<font color=#666666>term. See</font> [[{{{1|{{BASEPAGENAME}}}}} (disambiguation)]]  
|<font color=#FA8072>term. See</font> [[{{{1|{{BASEPAGENAME}}}}} (disambiguation)]]  
<font color=#666666>for a list of available, more precise, topics. Please add a new usage if needed.</font>''
<font color=#FA8072>for a list of available, more precise, topics. Please add a new usage if needed.</font>''
|<font color=#666666>term from the disambiguation page. </font>
|<font color=#FA8072>term from the disambiguation page. </font>
::Note: currently there is no disambiguation page for '''{{{1|{{BASEPAGENAME}}}}}''',  
::Note: currently there is no disambiguation page for '''{{{1|{{BASEPAGENAME}}}}}''',  
[http://en.citizendium.org/wiki?action=edit&preload=Template%3APreload-disambig&title=
[http://en.citizendium.org/wiki?action=edit&preload=Template%3APreload-disambig&title=
Line 40: Line 46:
<pre>
<pre>
[http://en.citizendium.org/wiki?action=edit&preload=Template%3ADef_preload&title=
[http://en.citizendium.org/wiki?action=edit&preload=Template%3ADef_preload&title=
{{urlencode:{{{1}}}}}/Definition ''<font color=#666666>Add brief definition or description</font>'']
{{urlencode:{{{1}}}}}/Definition ''<font color=#FA8072>Add brief definition or description</font>'']
</pre>
</pre>


Line 46: Line 52:
'''Used if: No Metadata''' (but has a disambiguation if used via R template)
'''Used if: No Metadata''' (but has a disambiguation if used via R template)


:''<font color=#666666>Please do not use this term in your topic list, because there is no single article for it. Please substitute a more precise..... </font>''
:''<font color=#FA8072>Please do not use this term in your topic list, because there is no single article for it. Please substitute a more precise..... </font>''


'''Continue with if: Has a disambiguation page''' (use via the R template will always give this version if the term has no metadata).
'''Continue with if: Has a disambiguation page''' (use via the R template will always give this version if the term has no metadata).


:''<font color=#666666>.....term. See</font> [[{{{1|{{BASEPAGENAME}}}}} (disambiguation)]] <font color=#666666>for a list of available, more precise, topics. Please add a new usage if needed.</font>''
:''<font color=#FA8072>.....term. See</font> [[{{{1|{{BASEPAGENAME}}}}} (disambiguation)]] <font color=#FA8072>for a list of available, more precise, topics. Please add a new usage if needed.</font>''


'''Continue with if: No disambiguation page''' (Use via the R template will never use this route since the term will always have a disambiguation page if it calls this template).
'''Continue with if: No disambiguation page''' (Use via the R template will never use this route since the term will always have a disambiguation page if it calls this template).


:''<font color=#666666>.....term from the disambiguation page. </font>
:''<font color=#FA8072>.....term from the disambiguation page. </font>
::Note: currently there is no disambiguation page for '''{{{1|{{BASEPAGENAME}}}}}''', [http://en.citizendium.org/wiki?action=edit&preload=Template%3APreload-disambig&title={{urlencode:{{{1|{{BASEPAGENAME}}}}}}}_(disambiguation) please create one.]''
::Note: currently there is no disambiguation page for '''{{{1|{{BASEPAGENAME}}}}}''', [http://en.citizendium.org/wiki?action=edit&preload=Template%3APreload-disambig&title={{urlencode:{{{1|{{BASEPAGENAME}}}}}}}_(disambiguation) please create one.]''

Latest revision as of 08:24, 20 June 2010

Usage

Integral part of the {{R}}, {{Rpl}} and {{Def only}} template function.

R template function

This template is an integral part of the {{R}} template function. It produces a standard warning message instead of a definition for a fully disambiguated term. Even if a definition only page exists for the term it will be ignored by the R template.

HOWEVER, for a partially disambiguated term the Term/Definition page will be used as usual.

  • Fully disambiguated: a term that is a redirect to a disambiguation page and has no metadata (even if a definition exists for the term it will be ignored by the R template).
  • Partially disambiguated: a term that exists as an article (with or without a definition) and a disambiguation pages also exist.

Function semi-independent of the R template

This occurs when this template is placed on a /Definition subpage:

For terms that are fully disambiguated it will produce the standard message to direct readers to the disambiguation page (only seen if a reader views the page directly, usually these definition pages should be deleted).
If a disambiguation page is required but it has not been created this template will produces a message on the definition page that indicates the intent to create a disambiguation page. This message will also be used by the R template to advertise the need for a new disambiguation page on Related Articles pages that link to the term.

Code

{{#ifexist: Image:Level{{Template:{{{1|}}}/Metadata|info=status}}.jpg
       |{{ {{#ifexist: {{{1|}}}/Definition
             |Rpl def1
             |Rpl def3}}|{{{1|}}} }}
|''<font color=#FA8072>Please do not use this term in your topic list, because there is no single article 
for it. Please substitute a more precise </font>{{#ifexist:{{{1|{{BASEPAGENAME}}}}} (disambiguation)
|<font color=#FA8072>term. See</font> [[{{{1|{{BASEPAGENAME}}}}} (disambiguation)]] 
<font color=#FA8072>for a list of available, more precise, topics. Please add a new usage if needed.</font>''
|<font color=#FA8072>term from the disambiguation page. </font>
::Note: currently there is no disambiguation page for '''{{{1|{{BASEPAGENAME}}}}}''', 
[http://en.citizendium.org/wiki?action=edit&preload=Template%3APreload-disambig&title=
{{urlencode:{{{1|{{BASEPAGENAME}}}}}}}_(disambiguation) please create one.]''}} }}

Rpl def1

Used if: Is a cluster, Has a definition (also a disambiguation page if used via R template)

{{:{{{1}}}/Definition}} <span class="plainlinks" style="font-size:0.8em;">[
[http://en.citizendium.org/wiki?title={{urlencode:{{{1}}}}}/Definition&action=edit e]]</span>}}

Rpl def3

Used if: Is a cluster, No definition (but does have a disambiguation page if used via R template)

[http://en.citizendium.org/wiki?action=edit&preload=Template%3ADef_preload&title=
{{urlencode:{{{1}}}}}/Definition ''<font color=#FA8072>Add brief definition or description</font>'']

Disambiguation message

Used if: No Metadata (but has a disambiguation if used via R template)

Please do not use this term in your topic list, because there is no single article for it. Please substitute a more precise.....

Continue with if: Has a disambiguation page (use via the R template will always give this version if the term has no metadata).

.....term. See Dabdef (disambiguation) for a list of available, more precise, topics. Please add a new usage if needed.

Continue with if: No disambiguation page (Use via the R template will never use this route since the term will always have a disambiguation page if it calls this template).

.....term from the disambiguation page.
Note: currently there is no disambiguation page for Dabdef, please create one.