Cèṭa'an:Center block/doc
| This is a documentation subpage for Cèṭa'an:Center block. It may contain usage information, categories and other content that is not part of the original cèṭa'an page. |
This template places a block of text in the center of the page, without affecting the text alignment within that block.
Usage
[beccè' sombher]Parameters
[beccè' sombher]Where there is a requirement to fix the width or height of the block, optional "width" and "height" parameters can be used. If additional style adjustments are required, use the optional "style" parameter.
Example 1
[beccè' sombher]{{center block|width=300px|height=200px|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br>
Aenean commodo ligula eget dolor.
Aenean massa.}}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.
Aenean massa.
Example 2
[beccè' sombher]- For exactly the same "spacing" as rendered by normal paragraph(s) before &/or after the template-inserted content.
<p>By clicking the “Save page” button, you are agreeing to the Terms of Use, the Privacy Policy, and you irrevocably agree to release your contribution under the CC-BY-SA 3.0 License and the GFDL. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.</p>
{{center block|width=300px|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br>
Aenean commodo ligula eget dolor.
Aenean massa.}}
<p>Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.</p>
By clicking the “Save page” button, you are agreeing to the Terms of Use, the Privacy Policy, and you irrevocably agree to release your contribution under the CC-BY-SA 3.0 License and the GFDL. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.
Aenean massa.
Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.
Example 3
[beccè' sombher]- For slightly larger "spacing" between normal paragraph(s) before &/or after the template-inserted content.
<p>By clicking the “Save page” button, you are agreeing to the Terms of Use, the Privacy Policy, and you irrevocably agree to release your contribution under the CC-BY-SA 3.0 License and the GFDL. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.</p>
{{center block|max-width=300px|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br>
Aenean commodo ligula eget dolor.
Aenean massa.}}
<p>Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.</p>
By clicking the “Save page” button, you are agreeing to the Terms of Use, the Privacy Policy, and you irrevocably agree to release your contribution under the CC-BY-SA 3.0 License and the GFDL. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.
Aenean massa.
Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.
TemplateData
[beccè' sombher]TemplateData untuk Center block
A template to center-align block with content in any other places, without affecting the text alignment within that block. This may harm some templates.
| Parameter | Keterangan | Jenis | Status | |
|---|---|---|---|---|
| Content | 1 | tidak ada keterangan | Isi | wajib diisi |
| Width of block area | width | tidak ada keterangan | Tak dikenal | opsional |
| Maximum width of block area | max-width | tidak ada keterangan | Tak dikenal | opsional |
| Height of block area | height | tidak ada keterangan | Tak dikenal | opsional |
| Horizontal alignment of the content | align | tidak ada keterangan | Tak dikenal | opsional |
| Title | title | tidak ada keterangan | Tak dikenal | opsional |
| Custom CSS | style | tidak ada keterangan | Tak dikenal | opsional |
See also
[beccè' sombher]