Template:Info Inline: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m Template's creation. |
||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{ | <includeonly><onlyinclude>{{Boxed inline|Icon-infoalert.png|{{{1|Info}}}|{{{2|Missing text...}}}|rgba(190, 228, 255, 0.4)|#8ec5ec}}</onlyinclude></includeonly> | ||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
" | "name": { | ||
"label": " | "label": "1", | ||
"default": " | "default": "\"Info\".", | ||
"type": "string" | |||
}, | }, | ||
" | "text": { | ||
"default": " | "label": "2", | ||
"required": true | "default": "Missing text...", | ||
"required": true, | |||
"type": "string" | |||
} | } | ||
}, | }, | ||
| Line 17: | Line 20: | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
[[ | |||
'''Examples:''' | |||
{| class="wikitable" | |||
|+ | |||
! Code !! Result | |||
|- | |||
| <code><nowiki>{{Info Inline}}</nowiki></code> || {{Info Inline}} | |||
|- | |||
| <code><nowiki>{{Info Inline|2=Im a informative text}}</nowiki></code> || {{Info Inline|2=Im a informative text}} | |||
|- | |||
| <code><nowiki>{{Info Inline|1=Fact|2=Incredible fact.}}</nowiki></code> || {{Info Inline|1=Fact|2=Incredible fact.}} | |||
|- | |||
|} | |||
[[Category:Templates]] | |||
Latest revision as of 15:46, 13 September 2026
Permet d'afficher un encadré d'information "inline". Le nom de l'encadré peut être changé.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | name | no description
| String | optional |
| 2 | text | no description
| String | required |
Examples:
| Code | Result |
|---|---|
{{Info Inline}} |
|
{{Info Inline|2=Im a informative text}} |
|
{{Info Inline|1=Fact|2=Incredible fact.}} |