Vorlage:HL7XML: Unterschied zwischen den Versionen

Aus Hl7wiki
Wechseln zu: Navigation, Suche
Zeile 16: Zeile 16:
 
<div style="border: {{#if: {{{valid|}}}|#77FF77|{{#if: {{{error|}}}|#FF7777|#7777FF}}}} solid 1px; text-align: left; padding:0px 5px; clear: both; background-color: {{#if: {{{valid|}}}|#DDFFDD|{{#if: {{{error|}}}|#FFDDDD|#DDDDFF}}}}">{{#if: {{{kopf|}}} | <div style="margin:5px 3px -5px 3px;">{{{kopf}}}</div>}}
 
<div style="border: {{#if: {{{valid|}}}|#77FF77|{{#if: {{{error|}}}|#FF7777|#7777FF}}}} solid 1px; text-align: left; padding:0px 5px; clear: both; background-color: {{#if: {{{valid|}}}|#DDFFDD|{{#if: {{{error|}}}|#FFDDDD|#DDDDFF}}}}">{{#if: {{{kopf|}}} | <div style="margin:5px 3px -5px 3px;">{{{kopf}}}</div>}}
 
<div style="float:right;margin:5px">[[{{#if: {{{valid|}}} | Image:Crystal_Clear_action_apply.png | {{#if: {{{error|}}} | Image:Crystal_Clear_action_button_cancel.png | Image:Crystal_Clear_app_terminal.png}}}}|32px]]</div>
 
<div style="float:right;margin:5px">[[{{#if: {{{valid|}}} | Image:Crystal_Clear_action_apply.png | {{#if: {{{error|}}} | Image:Crystal_Clear_action_button_cancel.png | Image:Crystal_Clear_app_terminal.png}}}}|32px]]</div>
{{{code}}}{{#if: {{{output|}}}|<div style="float:right;margin:0px 5px">[[Image:Crystal_Clear_app_kscreensaver.png|32px]]</div>
+
{{#tag:source|{{{code}}}|line|lang="xml"|enclose="div"}}{#if: {{{output|}}}|<div style="float:right;margin:0px 5px">[[Image:Crystal_Clear_app_kscreensaver.png|32px]]</div>
 
{{{output}}}}} {{#if: {{{fuss|}}} | <div style="margin:-5px 3px 5px 3px;">{{{fuss}}}</div>}}</div>
 
{{{output}}}}} {{#if: {{{fuss|}}} | <div style="margin:-5px 3px 5px 3px;">{{{fuss}}}</div>}}</div>

Version vom 5. Februar 2009, 15:42 Uhr



Diese Vorlage erwartet folgende Parameter:

  • code
  • output (Optional)
  • kopf (Optional)
  • fuss (Optional)
  • valid (Wahrheitswert – Optional)
  • error (Wahrheitswert – Optional)
{{{code}}}
{{{code}}}
{#if: | {{{output}}}}}