• ಮುಖ್ಯಪುಟ
  • ಹೀಗೇ ಒಂದು ಪುಟ
  • ಲಾಗ್ ಇನ್
  • ವ್ಯವಸ್ಥೆಗಳು
Donate Now If this site has been useful to you, please give today.
  • ವಿಕಿಸೋರ್ಸ್ ಬಗ್ಗೆ
  • ಹಕ್ಕು ನಿರಾಕರಣೆಗಳು
ವಿಕಿಸೋರ್ಸ್

ಟೆಂಪ್ಲೇಟು:Center

  • ಟೆಂಪ್ಲೇಟು
  • ಚರ್ಚೆ
  • ಭಾಷೆ
  • ವೀಕ್ಷಿಸಿ
  • ಸಂಪಾದಿಸಿ
Template documentation[view] [edit] [history] [purge]
Shortcut:
{{c}}
WarningThis 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.
CSSThis template uses TemplateStyles:
  • Template:center/styles.css

This template uses block elements, e.g. <div> or <p>.
It should not be nested inside an inline element, e.g. <span>, or a template that produces such an element.

See H:DIVSPAN for details.

ಪರಿವಿಡಿ

  • ೧ Usage
    • ೧.೧ Other parameters
      • ೧.೧.೧ style
  • ೨ Redirects
  • ೩ Tracking categories
  • ೪ See also
    • ೪.೧ Template data

Usage

ಸಂಪಾದಿಸಿ

This template center-aligns text. For example,

Example

{{center|'''Example text'''}}

Example text

Other parameters

ಸಂಪಾದಿಸಿ

style

ಸಂಪಾದಿಸಿ

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

Title of the work

by

Author of the work

Option 3 (if block template not available)

{{center|
{{serif|Title of the work}}

{{serif|by}}

{{serif|Author of the work}}
}}

yields

Title of the work

by

Author of the work

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

ಸಂಪಾದಿಸಿ
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Center in articles based on its TemplateData.

TemplateData for Center

Align text to the center

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ಪರಿಮಿತಿವಿವರನಮೂನೆಸ್ಥಾನಮಾನ
stylestyle

Additional CSS styles to apply to the block

Contentಐಚ್ಛಿಕ
texttext 1

The text to center, this can be more than one paragraph.

Contentrequired
nomarginnomargin

no description

Suggested values
yes, no
Stringಐಚ್ಛಿಕ
nocatnocat

no description

Unknownಐಚ್ಛಿಕ
The above documentation is transcluded from ಟೆಂಪ್ಲೇಟು:Center/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
"https://kn.wikisource.org/w/index.php?title=ಟೆಂಪ್ಲೇಟು:Center&oldid=252999" ಇಂದ ಪಡೆಯಲ್ಪಟ್ಟಿದೆ
Last edited on ೨ ಆಗಸ್ಟ್ ೨೦೨೩, at ೧೪:೩೩

Languages

      This page is not available in other languages.

      ವಿಕಿಸೋರ್ಸ್
      • Wikimedia Foundation
      • Powered by MediaWiki
      • ಈ ಪುಟವನ್ನು ೨ ಆಗಸ್ಟ್ ೨೦೨೩, ೧೪:೩೩ ರಂದು ಕೊನೆಯಾಗಿ ಸಂಪಾದಿಸಲಾಯಿತು.
      • ವಿಶೇಷವಾಗಿ ಟಿಪ್ಪಣಿ ಮಾಡದಿದ್ದ ಹೊರತು ಪಠ್ಯ "CC BY-SA 4.0" ರಡಿ ಲಭ್ಯವಿದೆ.
      • ಗೌಪ್ಯತಾ ನೀತಿ
      • ವಿಕಿಸೋರ್ಸ್ ಬಗ್ಗೆ
      • ಹಕ್ಕು ನಿರಾಕರಣೆಗಳು
      • Code of Conduct
      • ಡೆವೆಲಪರ್‌ಗಳು
      • ಅಂಕಿ ಅಂಶಗಳು
      • ಕುಕಿ ಹೇಳಿಕೆ
      • ಬಳಕೆಯ ನಿಬಂಧನೆಗಳು
      • ಡೆಸ್ಕ್‌ಟಾಪ್