ਫਰਮਾ:Center
| This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template uses TemplateStyles: |
This template uses block elements, e.g. See H:DIVSPAN for details. |
ਵਰਤੋਂ
[ਸੋਧੋ]ਇਹ ਟੈਮਪਲੇਟ ਲਿਖਤ ਨੂੰ ਵਿਚਕਾਰ ਵਿੱਚ ਕਰਦਾ ਹੈ। ਉਦਾਹਰਣ ਵਜੋਂ,
Example
{{center|'''ਉਦਾਹਰਨ'''}}
ਉਦਾਹਰਨ
ਹੋਰ ਮਾਪਦੰਡ
[ਸੋਧੋ]ਸ਼ੈਲੀ
[ਸੋਧੋ]Where there is a need to specify the style of text for the whole <div>...</div> item, an optional style parameter can be used.
This can be useful when the body of the template is not a single inline item but a multi-paragraph structure. If the formatting in question has a "block" template, you can also nest that inside or outside the {{center}} template:
The following solutions are then applicable.
Option 1
{{center|style=font-family:serif;|
Title of the work
by
Author of the work
}}
yields
Title of the work
by
Author of the work
Option 2 (block template)
{{center|{{serif block|
<!--or {{serif block|{{center| -->
Title of the work
by
Author of the work
}}}}
yields
Option 3 (if block template not available)
{{center|
{{serif|Title of the work}}
{{serif|by}}
{{serif|Author of the work}}
}}
yields
Redirects
[ਸੋਧੋ]- {{c}}
Tracking categories
[ਸੋਧੋ]- Category:Pages using center with no text argument—Pages where the template is called with no text or first argument, typically because the content contains an = or otherwise confuses the parser
See also
[ਸੋਧੋ]- Template:Block center
- Template:Center block
- Template:Center inline (span-based version)
Template data
[ਸੋਧੋ]Center
Align text to the center
| ਮਾਪਦੰਡ | ਵੇਰਵਾ | ਕਿਸਮ | ਦਰਜਾ | |
|---|---|---|---|---|
| style | style | Additional CSS styles to apply to the block | ਸਮੱਗਰੀ | ਚੋਣਵਾਂ |
| text | text 1 | The text to center, this can be more than one paragraph. | ਸਮੱਗਰੀ | ਲੋੜੀਂਦਾ ਏ |
| nomargin | nomargin | ਕੋਈ ਵੇਰਵਾ ਨਹੀਂ
| ਸਤਰ | ਚੋਣਵਾਂ |
| nocat | nocat | ਕੋਈ ਵੇਰਵਾ ਨਹੀਂ | Unknown | ਚੋਣਵਾਂ |