Difference between revisions of "Template:Box Note"

m
(Tag: 2017 source edit)
m
(Tag: 2017 source edit)

{{{Note text}}}

Kopiervorlage:

{{Box_Note|Note text =}}

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

Template parameters

Parameter Description Type Status
Boxtype boxtype

Type of infobox

Default
Note
note
Example
Note
note
Auto value
empty
String required
Note text Note text

no description

Default
empty
Example
empty
Auto value
empty
Unknown optional
<div class="infobox {{{boxtype}}}">
        
        
        <span class="boxlabel"><span>{{#ifeq:{{{boxtype|note}}}|Note:|}}{{#ifeq:{{{boxtype|tip}}}|Tip:|}}{{#ifeq:{{{boxtype|warning}}}|Warning:|}}}}}}</span>{{{Note text}}}
        
        
        </div>
        
        
        <noinclude>
        
        Kopiervorlage:
        
        
        <pre>
        
        {{Box_Note|Note text =}}
        
        
        </pre>
        
        
        <templatedata>
        
        {
        
        	"params": {
        
        		"boxtype": {
        
        			"description": "Type of infobox",
        
        			"example": "Notenote",
        
        			"type": "string",
        
        			"default": "Notenote",
        
        			"required": true
        
        		},
        
        		"Note text": {}
        
        	},
        
        	"description": "To add standard infoboxes such as notes or related links to a page"
        
        }
        
        
        </templatedata>
        
        
        </noinclude>
Line 1: Line 1:
 
<div class="infobox {{{boxtype}}}">
 
<div class="infobox {{{boxtype}}}">
<span class="boxlabel"><span>{{#ifeq:{{{boxtype|note}}}|Note:|{{#ifeq:{{{boxtype|tip}}}|Tip:|{{#ifeq:{{{boxtype|warning}}}|Warning:|}}}}}}</span>{{{Note text}}}
+
<span class="boxlabel"><span>{{#ifeq:{{{boxtype|note}}}|Note:}}{{#ifeq:{{{boxtype|tip}}}|Tip:}}{{#ifeq:{{{boxtype|warning}}}|Warning:|}}</span>{{{Note text}}}
 
</div>
 
</div>
 
<noinclude>
 
<noinclude>
Line 12: Line 12:
 
"boxtype": {
 
"boxtype": {
 
"description": "Type of infobox",
 
"description": "Type of infobox",
"example": "Note",
+
"example": "note",
 
"type": "string",
 
"type": "string",
"default": "Note",
+
"default": "note",
 
"required": true
 
"required": true
 
},
 
},

Attachments

Discussions