Difference between revisions of "Help:Template"
Help page
Views
Actions
Namespaces
Variants
Tools
(Help:Template page) |
m |
||
Line 13: | Line 13: | ||
You can utilize different boxtypes setting both the header and the content | You can utilize different boxtypes setting both the header and the content | ||
{{BoxPrimary|Header|This is a BoxPrimary template}} | {{BoxPrimary|Header|This is a BoxPrimary template}}{{BoxSecondary|Header|This is a BoxSecondary template}}{{BoxInfo|Header|This is a BoxInfo template}}{{BoxSuccess|Header|This is a BoxSuccess template}}{{BoxWarning|Header|This is a BoxWarning template}}{{BoxDanger|Header|This is a BoxDanger template}}{{BoxLight|Header|This is a BoxLight template}}{{BoxDark|Header|This is a BoxDark template}} | ||
{{BoxSecondary|Header|This is a BoxSecondary template}} | |||
{{BoxInfo|Header|This is a BoxInfo template}} | |||
{{BoxSuccess|Header|This is a BoxSuccess template}} | |||
{{BoxWarning|Header|This is a BoxWarning template}} | |||
{{BoxDanger|Header|This is a BoxDanger template}} | |||
{{BoxLight|Header|This is a BoxLight template}} | |||
{{BoxDark|Header|This is a BoxDark template}} |
Revision as of 16:47, 27 September 2020
To use a template in any document reference the template and separate arguments with pipes |.
As an example you can create a box to emphasize an important information
{{Important|It is not possible to run `makepkg` as root!}}
Which will give this result in the final document
Templates are helpers - they are not the document - so don't over do it.
You can utilize different boxtypes setting both the header and the content