Vorlage:Box Note: Unterschied zwischen den Versionen

(Die Seite wurde neu angelegt: „<div class="infobox {{{boxtype}}}"> <span class="boxlabel"> {{#switch: {{{boxtype}}} | note = Note: | tip = Tip: | warning = Warning: | #default = No…“)
(Markierung: 2017-Quelltext-Bearbeitung)
 
(Markierung: 2017-Quelltext-Bearbeitung)

Note Hinweis: {{{Note text}}}

Kopiervorlage:

{{Box_Note|Note text =}}

To add standard infoboxes such as notes or related links to a page

Vorlagenparameter

Parameter Beschreibung Typ Status
Boxtype boxtype

Possible values: note, tip, warning, example

Standard
note
Beispiel
note
Autowert
leer
Zeichenfolge erforderlich
Note text Note text

keine Beschreibung

Standard
leer
Beispiel
leer
Autowert
leer
Unbekannt optional
<div class="infobox {{{boxtype}}}">
        <span class="boxlabel">
        
        {{#switch: {{{boxtype}}}
        
         | note = NoteHinweis:
        
         | tip = TipTipp:
        
         | warning = Warning:
            
             | #default = NoteAchtung:
            
             | example = Beispiel:
            
             | #default = Hinweis:
        
        }}
        </span>{{{Note text}}}
        </div>
        <noinclude>
        
        Kopiervorlage:
        <pre>
        
        {{Box_Note|Note text =}}
        </pre>
        <templatedata>
        
        {
        
        	"params": {
        
        		"boxtype": {
        
        			"description": "Possible values: note, tip, warning, example",
        
        			"example": "note",
        
        			"type": "string",
        
        			"default": "note",
        
        			"required": true
        
        		},
        
        		"Note text": {}
        
        	},
        
        	"description": "To add standard infoboxes such as notes or related links to a page"
        
        }
        </templatedata>
        </noinclude>
Zeile 2: Zeile 2:
 
<span class="boxlabel">
 
<span class="boxlabel">
 
{{#switch: {{{boxtype}}}
 
{{#switch: {{{boxtype}}}
  | note = Note:
+
  | note = Hinweis:
  | tip = Tip:
+
  | tip = Tipp:
  | warning = Warning:
+
  | warning = Achtung:
  | #default = Note:
+
| example = Beispiel:
 +
  | #default = Hinweis:
 
}}
 
}}
 
</span>{{{Note text}}}
 
</span>{{{Note text}}}
Zeile 18: Zeile 19:
 
"params": {
 
"params": {
 
"boxtype": {
 
"boxtype": {
"description": "Possible values: note, tip, warning",
+
"description": "Possible values: note, tip, warning, example",
 
"example": "note",
 
"example": "note",
 
"type": "string",
 
"type": "string",

Anhänge

Diskussionen