Template:Content box/Doc: Difference between revisions
Appearance
Created page with "This template is used to display content in a box. It is primarily used on the main page. {{content box|title=Display title|content=Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pa..." |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
This template is used to display content in a box. It is primarily used on the [[NixOS Wiki|main page]]. | This template is used to display content in a box. It is primarily used on the [[NixOS Wiki|main page]]. | ||
{{content box | {{content box|content=Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.}} | ||
=== Usage === | === Usage === | ||
Simply include this template, providing the content | Simply include this template, providing the content to be displayed: | ||
{{code|lang=mediawiki|line=no|<nowiki> | {{code|lang=mediawiki|line=no|<nowiki> | ||
{{content box | {{content box|content=Lorem ipsum dolor sit amet...}} | ||
</nowiki>}} | </nowiki>}} | ||
<includeonly> | <includeonly> | ||
=== Template data === | === Template data === | ||
Line 17: | Line 16: | ||
"description": "Display content in a nicely formatted box", | "description": "Display content in a nicely formatted box", | ||
"params": { | "params": { | ||
"content": { | "content": { | ||
"label": "Content", | "label": "Content", | ||
"description": "The content to display inside the box. Can be multiple lines.", | "description": "The content to display inside the box. Can be multiple lines.", | ||
"required": true | "required": true, | ||
"type": "content" | "type": "content" | ||
} | } | ||
} | } | ||
} | } | ||
</templatedata> | </templatedata> | ||
</includeonly> | </includeonly> |
Latest revision as of 18:55, 9 August 2025
This template is used to display content in a box. It is primarily used on the main page.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Usage
Simply include this template, providing the content to be displayed:
{{content box|content=Lorem ipsum dolor sit amet...}}