Template:DefMeSH/doc: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Daniel Mietchen
(started)
 
imported>Daniel Mietchen
(filled in)
Line 1: Line 1:
<!-- Description of the template. If you don't want a description, remove this section. -->
This template is used on [[CZ:Definition|Definition]] [[CZ:Subpages|subpages]]. It adds a link to the definition of the term at the [[Medical Subject Headings]] and displays it such that this source is visible only when viewing the Definition page.
<!-- Default text: -->
This is a template I am currently testing.<br />
Documentation or speedydelete to follow in due course (and if I haven't done this within a week from now, please remind me &mdash; thanks!).<br />
[[User:Daniel Mietchen|Daniel Mietchen]] 21:31, 14 May 2010 (UTC)


=== Usage ===
=== Usage ===
Place instructions here.
Place
Any example code should go in tags like this <code><nowiki>...</nowiki></code>, putting the code where the dots are.  
<code><nowiki><noinclude>{{DefMeSH}}</noinclude></nowiki></code>
at the end of the definition &mdash; directly after the full stop, with no space or line break in between.


=== Example ===
=== Example ===
Put an example of the code inside the following tags, where the dots are :
*[[Radiography/Definition]]
<pre>
When viewed via the {{tl|r}} [[CZ:Templates|template]], it displays as follows:
...
{{r|Radiography}}
</pre>


Now put the same example code here, without the <pre></pre> tags. This time it will be interpreted to give the normal result of including this code on a CZ page.
=== Caveats ===
The syntax used to place this template may confuse contributors not familiar with [[CZ:Transclusion|transclusion]].

Revision as of 17:25, 14 May 2010

This template is used on Definition subpages. It adds a link to the definition of the term at the Medical Subject Headings and displays it such that this source is visible only when viewing the Definition page.

Usage

Place <noinclude>{{DefMeSH}}</noinclude> at the end of the definition — directly after the full stop, with no space or line break in between.

Example

When viewed via the {{r}} template, it displays as follows:

Caveats

The syntax used to place this template may confuse contributors not familiar with transclusion.