Difference between revisions of "Template:Abbr"
From TDWG Terms Wiki
m (try setting properties on doc page) |
m |
||
Line 1: | Line 1: | ||
− | {{#if: {{{ | + | {{#if: {{{2|}}}<!-- |
− | THEN -->|{{#switch: {{{1|}}} | + | THEN: special self defined abbreviation |
+ | -->|<abbr title="{{{2}}}">{{{1}}}</abbr><!-- | ||
+ | |||
+ | ELSE: try one abbreviation from the list | ||
+ | -->|{{#if: {{{1|}}}<!-- | ||
+ | then -->|{{#switch: {{{1|}}} | ||
<!-- | <!-- | ||
| … = <abbr title="…">…</abbr> | | … = <abbr title="…">…</abbr> | ||
Line 34: | Line 39: | ||
| #default = <span class="error">Abbreviation “{{{1|}}}” not known. Add it to [{{fullurl:template: abbr|action=edit}} template: abbr].</span> | | #default = <span class="error">Abbreviation “{{{1|}}}” not known. Add it to [{{fullurl:template: abbr|action=edit}} template: abbr].</span> | ||
}}<!-- end-switch | }}<!-- end-switch | ||
− | + | else -->|{{TemplateError | |
| text = This template creates an abbreviation tag <abbr title="...">short</abbr> and is case sensitive. Usage: | | text = This template creates an abbreviation tag <abbr title="...">short</abbr> and is case sensitive. Usage: | ||
− | <code><nowiki>{{abbr | SMW}}</nowiki></code> creates <abbr title="Semantic Media Wiki">SMW</abbr> | + | * <code><nowiki>{{abbr | SMW}}</nowiki></code> creates <abbr title="Semantic Media Wiki">SMW</abbr> |
+ | * <code><nowiki>{{abbr | spAbr | special abbreviation}}</nowiki></code> creates an only locally defined abbreviation: <abbr title="special abbreviation">spAbr</abbr> | ||
Sets [[property: abbreviation]] | Sets [[property: abbreviation]] | ||
{{#ifeq: {{FULLPAGENAME}}|Template:Abbr||Further abbreviations see [[template: abbr]].}}<!-- | {{#ifeq: {{FULLPAGENAME}}|Template:Abbr||Further abbreviations see [[template: abbr]].}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
− | -->}}<!-- end if --><noinclude> | + | -->}}<!-- end if {{{1}}} |
+ | -->}}<!-- end if {{{2}}} --><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 14:17, 12 November 2012
Use the template as described below:
This template creates an abbreviation tag <abbr title="...">short</abbr> and is case sensitive. Usage:
|
[edit] [ ] Template documentation
Abbreviations
short | long |
---|---|
API | Application programming interface |
AC | Audubon Core |
DC | Dublin Core |
DCMI | Dublin Core Metadata Initiative |
DwC | Darwin Core |
GBIF | Global Biodiversity Information Facility |
GUID | Globally Unique Identifier |
ICBN | International Code of Botanical Nomenclature |
LSID | Life Sciences Identifier |
MW | Media Wiki |
MRTG | Multimedia Resource Task Group |
ns | name space |
OBO | Open Biological and Biomedical Ontologies |
OWL | Web Ontology Language |
OWL DL | Web Ontology Language description logics[1] |
PID | Process ID |
RDF | Resource Description Framework |
sed | stream editor (Linux) |
SKOS | Simple Knowledge Organization System |
SMW | Semantic Media Wiki |
TDWG | Taxonomic Databases Working Group |
URI, URIs | Uniform Resource Identifier |
URL, URLs | Uniform Resource Locator |
URN, URNs | Uniform Resource Name |
XML | Extensible Markup Language |
XSL | Extensible Stylesheet Language |
XSLT | Extensible Stylesheet Language Transformation |
Notes
- ↑ correct?