Template:AddAnn: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
(Created for use in template based element documentation sites)
 
No edit summary
Line 1: Line 1:
{{#if: {{{1|}}} | <br/> {{Ann| {{{1}}} }} | }} {{#if: {{{2|}}} | <br/> {{Deu| {{Ann| {{{2}}} }} }} | }}<noinclude>[[Category:MarkupTemplate]]</noinclude>
<includeonly>{{#if:{{{1|}}}|<br/>{{Ann|{{{1}}}}}|}}{{#if:{{{2|}}}|<br/>{{Deu|{{Ann|{{{2}}}}}}}|}}</includeonly><noinclude>
==Usage==
This template is used to depict annotations both in English and in German.
===Arguments===
The template has two unnamed optional arguments:
* The first one for an English Annotation
*The second one for a German annotation
===Dependencies===
The template depends on [[Template:Ann]] and [[Template:Deu]]. There is a big number of templates depending on it, eg [[Vorlage:InheritAnyAttribute]].
==Example==
<nowiki>{{addAnn}}</nowiki>
 
delivers nothing at all{{#if:  | <br/> {{Ann| {{{1}}} }} | }} {{#if:  | <br/> {{Deu| {{Ann| {{{2}}} }} }} | }}.
 
<nowiki>{{addAnn||German Annotation}}</nowiki>
 
delivers
 
{{#if:  | <br/> {{Ann|  }} | }} {{#if: German Annotation | <br/> {{Deu| {{Ann| German Annotation }} }} | }}
 
<nowiki>{{addAnn|English Annotation|German Annotation}}</nowiki>
 
delivers
 
{{#if: English Annotation | <br/> {{Ann| English Annotation }} | }} {{#if: German Annotation | <br/> {{Deu| {{Ann| German Annotation }} }} | }}
 
[[Category:MarkupTemplate]]</noinclude>

Revision as of 18:55, 14 February 2016

Usage

This template is used to depict annotations both in English and in German.

Arguments

The template has two unnamed optional arguments:

  • The first one for an English Annotation
  • The second one for a German annotation

Dependencies

The template depends on Template:Ann and Template:Deu. There is a big number of templates depending on it, eg Vorlage:InheritAnyAttribute.

Example

{{addAnn}}

delivers nothing at all .

{{addAnn||German Annotation}}

delivers


German Annotation

{{addAnn|English Annotation|German Annotation}}

delivers


English Annotation
German Annotation