Difference between revisions of "Template:DiseasesDB/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎Usage: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Primefac
(update /doc)
 
Line 1: Line 1:
{{Documentation subpage}}
+
{{documentation subpage}}
 +
<!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE--->
 
{{info|1=This template is intended for [[Wikipedia:External links|external links]].  It is not designed for use as a [[Wikipedia:Citation templates|citation template]] for reliable sources.}}
 
{{info|1=This template is intended for [[Wikipedia:External links|external links]].  It is not designed for use as a [[Wikipedia:Citation templates|citation template]] for reliable sources.}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
  
== Usage ==
+
==Usage==
 +
This template creates an external link to a specific, numbered page in the [[Diseases Database]].
  
 +
The general format is {{tlc|DiseasesDB|#####|page name|display options}}
 +
*''#####'' is the DDB page number.
 +
*''page name'' is an optional parameter to display the DDB page name
 +
*''display options'' is an optional parameter to set various output choices.
 +
**If left blank or unused, will show the linked name in full
 +
**If set to <code>plain</code>, will show the unlinked name in full
 +
**If set to <code>shortlink</code>, will display the linked acronym
 +
**If set to <code>short</code>, will display the unlinked acronym
 +
**If set to <code>none</code>, will not display the name at all
 +
 +
===Examples===
 +
Basic example
 +
*{{tlc|DiseasesDB|5815}} → {{DiseasesDB|5815}}
 +
Displaying the DDB page name
 +
*{{tlc|DiseasesDB|5815|HSMN type 1}} → {{DiseasesDB|5815|HSMN type 1}}
 +
Display options variations. Note that the second parameter is not required but can still be used.
 +
*{{tlc|DiseasesDB|5815||plain}} → {{DiseasesDB|5815||plain}}
 +
*{{tlc|DiseasesDB|5815||shortlink}} → {{DiseasesDB|5815||shortlink}}
 +
*{{tlc|DiseasesDB|5815||short}} → {{DiseasesDB|5815||short}}
 +
*{{tlc|DiseasesDB|5815||none}} → {{DiseasesDB|5815||none}}
 +
*{{tlc|DiseasesDB|5815|HSMN type 1|plain}} → {{DiseasesDB|5815|HSMN type 1|plain}}
 +
*{{tlc|DiseasesDB|5815|HSMN type 1|none}} → {{DiseasesDB|5815|HSMN type 1|none}}
  
 
<includeonly>{{Sandbox other||
 
<includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
 
 
[[Category:Medicine external link templates|{{PAGENAME}}]]
 
[[Category:Medicine external link templates|{{PAGENAME}}]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 16:35, 1 September 2020

Usage

This template creates an external link to a specific, numbered page in the Diseases Database.

The general format is {{DiseasesDB|#####|page name|display options}}

  • ##### is the DDB page number.
  • page name is an optional parameter to display the DDB page name
  • display options is an optional parameter to set various output choices.
    • If left blank or unused, will show the linked name in full
    • If set to plain, will show the unlinked name in full
    • If set to shortlink, will display the linked acronym
    • If set to short, will display the unlinked acronym
    • If set to none, will not display the name at all

Examples

Basic example

Displaying the DDB page name

Display options variations. Note that the second parameter is not required but can still be used.