ಟೆಂಪ್ಲೇಟು:PortalSection
{{{body}}}
See also {{Box-shadow}}
and {{Border-radius}}
Description
ಬದಲಾಯಿಸಿThis template creates a box, with a colourful margin in all four sides with text/image within it. This template takes help from {{Box-shadow}}
and {{Border-radius}}
. Use this template to make your user page more attractive.
Notes
ಬದಲಾಯಿಸಿ- This template will always show the table in the center.
- You could only change the colour of the text and the background, not the border.
- The text must be inserted within/after the title body, e.g.
body=[Put your text here]
. - The text align is normally left unless you change it. None of the example changes the text align.
- The heading will be ignored if not mentioned or if empty.
- The texts in the heading will always be at the center.
- You must not change any of the coding of this template, rather leave a message on its talk page if you disagree with anything.
- Remember that this template uses
{{Box-shadow}}
and{{Border-radius}}
. - The full code is shown below:
{{PortalSection |width= |text-color= |bgcolor= |text-align= |head= |body= }}
Usage
ಬದಲಾಯಿಸಿThis template can actually be used for Portals, but can also be used in user pages and/or in talk pages.
Syntax
ಬದಲಾಯಿಸಿ- Use
{{PortalSection|width=|text-color=|bgcolor=|text-align=|head=|body=}}
- Use
{{portalsection|width=|text-color=|bgcolor=|text-align=|head=|body=}}
instead with all of them in lowercase letters.
Example
ಬದಲಾಯಿಸಿ- Excluding text colour and background colour
- Using
{{PortalSection|width=20em|body=Lorem ipsum...}}
will show:
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.
- Excluding the width
- Using
{{PortalSection|text-color=white|bgcolor=black|body=Lorem ipsum...}}
will show:
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.
- Complete template without heading
- Using
{{PortalSection|width=60em|text-color=black|bgcolor=#FFFFDD|body=Lorem ipsum...}}
will show
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.
- Simple template with the heading
- Using
{{PortalSection|head=Example|body=Lorem ipsum...}}
will show:
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.
See also
ಬದಲಾಯಿಸಿ{{Box-shadow}}
{{Border-radius}}