Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
− | <includeonly>< |
+ | <includeonly><templatestyles src="Infobox/style.css"/><nowiki /> |
+ | {{Infobox/Header|title={{{title}}}}} |
||
− | <tbody> |
||
+ | {{Infobox/Illustration|file={{{illustration}}}|caption={{{caption}}}}} |
||
− | <tr> |
||
+ | {{Infobox/SectionHeader|section=Example section}} |
||
− | <td colspan="2" class="infobox-header">{{{title}}}</td> |
||
+ | {{Infobox/Item|key=Sample data|value={{{example_data}}}}} |
||
− | </tr> |
||
⚫ | |||
− | <tr> |
||
− | <td colspan="2" class="infobox-illustration">{{{illustration}}}</td> |
||
− | </tr> |
||
− | <tr> |
||
− | <td colspan="2" class="infobox-caption">{{{caption}}}</td> |
||
− | </tr> |
||
− | </tbody> |
||
⚫ | |||
<noinclude> |
<noinclude> |
||
+ | === Example === |
||
+ | {{Infobox |
||
+ | | title = Example |
||
+ | | illustration = [[File:KP dark.png]] |
||
+ | | caption = Example infobox |
||
+ | | example_data = Soap floats on water, but its efficiency at naval battles is yet to be proven |
||
+ | }} |
||
+ | |||
+ | The following markup will produce the output presented to the right of this paragraph : |
||
+ | <pre> |
||
+ | {{Infobox |
||
+ | | title = Example |
||
+ | | illustration = [[File:KP dark.png]] |
||
+ | | caption = Example infobox |
||
+ | | example_data = Soap floats on water, but its efficiency at naval battles is yet to be proven |
||
+ | }} |
||
+ | </pre> |
||
+ | {{clr}} |
||
+ | |||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
Line 33: | Line 45: | ||
"description": "A short descriptive text for the illustration.", |
"description": "A short descriptive text for the illustration.", |
||
"type": "string" |
"type": "string" |
||
+ | }, |
||
+ | "example_data": { |
||
+ | "description": "This is only used for demonstration purposes. Any children template inheriting from this one should remove this attribute. ", |
||
+ | "deprecated": "This is only used for demonstration purposes. Any children template inheriting from this one should remove this attribute. " |
||
} |
} |
||
}, |
}, |
Revision as of 23:24, 6 March 2021
Example
Example
Example infobox Example section Sample data Soap floats on water, but its efficiency at naval battles is yet to be proven
The following markup will produce the output presented to the right of this paragraph :
{{Infobox | title = Example | illustration = [[File:KP dark.png]] | caption = Example infobox | example_data = Soap floats on water, but its efficiency at naval battles is yet to be proven }}
Generic floating infobox.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | Title that appears at the top of the infobox.
| String | required |
Illustration | illustration | A picture describing the subject. | File | optional |
Caption | caption | A short descriptive text for the illustration. | String | optional |
example_data | example_data | This is only used for demonstration purposes. Any children template inheriting from this one should remove this attribute. | Unknown | deprecated |