menu menu_open
  • edit Redigér

    description Indholdsfortegnelse

    • 1 Description
    • 2 Usage
      • 2.1 Tables
    • 3 Tracking category
    • 4 TemplateData
    • 5 See also

    Navigation

    • Forside
    • Skribentforside
    • Til brugere fra spademanns.org/Fandom
    • Forum
    • Uaktuelle begivenheder
    • Hjælp til wiki-skrivning

    Uploadværktøjer

    • Upload flere billeder/videoer
    • Upload billede/video/fil (standard)
    • Upload billeder/videoer/filer

    Fællesskaber

    • Spademanns Discord-server
    • Del på Facebook
    • Del på Twitter
    • Send til analfabet.dk
    • Ambassaden

    Værktøjer

    • Hvad henviser hertil
    • Beslægtede ændringer
    • Upload billede/fil
    • Specialsider
    • Udskriftsvenlig udgave
    • Permanent link
    • Sideinformation

    Varianter

Spademanns Leksikon

Skabelon:Center

9944 article sider
11983 photo filer
459142 edit redigeringer
15 person brugere
timeline photo_library leaderboard file_upload
palette
  • computer
code
  • computer
pages api security app_shortcut
more_vertical
  • timeline Seneste ændringer
  • photo_library Nye filer
  • leaderboard Statistik
  • file_upload Upload billede/fil
  • palette CSS expand_more
    • computer
  • code JS expand_more
    • computer
  • pages Alle sider
  • apisandbox API-sandkassen
  • security Alle beskeder
  • app_shortcut Specialsider
grid_view double_arrow forum file_download extension file_upload visibility book category delete_sweep
settings
contrast

  • brightness_auto hdr_auto
  • brightness_7 brightness_1
  • brightness_6 brightness_2
  • brightness_5 brightness_3
  • brightness_4
  • brightness_3 brightness_5
  • brightness_2 brightness_6
  • brightness_1 brightness_7
hdr_auto
  • brightness_auto
  • hdr_auto
  • light_mode
  • dark_mode

  • palette
  • tonality

  • brightness_auto hdr_auto
  • gradient gradient
  • thermostat thermostat
  • ac_unit storm
  • Duo
  • Solo
format_paint
  • emergency deployed_code
  • emergency opacity
  • square
  • contrast

  • deployed_code build square contrast
  • 1
  • 2
  • 3
  • 4
palette
  • brightness_auto
  • hdr_auto
  • light_mode
  • dark_mode

  • build
  • emergency invert_colors_off
  • contrast
  • format_paint
  • android
  • colorize
colorize
  • brightness_auto
  • hdr_auto
  • bedtime_off
  • bedtime

  • build
  • square
  • computer
  • invert_colors
  • brush
  • filter_b_and_w
  • contrast
  • smart_toy
  • 1
  • 2
  • 3
  • 4
brush
  • A
  • B
  • C
  • D
  • E
  • F
  • G
  • H
  •  
  • Vi kan se din IP-adresse når du redigerer. Vi ved hvor du bor. Registrer dig nu og bliv en del af fællesskabet - vi bider sjældent.
  • Grundet serverskifte skal du oprette dig igen, hvis du før har været så tosset at skrive artikler for os. Læs mere her.
  • Besøg også vores Discord-server hvis du ellers gider og ikke allerede sover over alle disse beskeder!
  •  
  •  
  • Skabelon
  • Diskussion
  • Læs
  • Vis kilde
  • Se historik

Skabelon:Center

Fra Spademanns Leksikon, den både frie og sande virkelighed

Your wiki got a version of Template:Documentation that is only relevant to Templates Wiki! Click here to revert it. For a documentation template you can use on your wiki, see Template:Documentation (copy) on Templates Wiki.
Template information, documentation, and installation instructions.
Expand the below text for usage and other information.

Template Documentation:
Note: The template above might be broken without the parameters; this is normal.
View, edit, or check the history of this documentation. (How does this work?)
Editors can experiment with this template's sandbox and testcases.

Indholdsfortegnelse

  • 1 Description
  • 2 Usage
    • 2.1 Tables
  • 3 Tracking category
  • 4 TemplateData
  • 5 See also
WarningThis template is used in MediaWiki:Abusefilter-top100, and on approximately 235.000 pages.
Changes to it can cause immediate changes to the Wikipedia user interface.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them.

Description

It is to center elements on a page. See also Template:Align for more options and flexibility.

Usage

See also: Span and div
Markup Renders as
{{Center|Hello world!}}
Hello world!

To do this without a template, simply use the following code:

<div class="center" style="width:auto; margin-left:auto; margin-right:auto;">...</div>

To center a table, see Help:TABLECENTER.

Notes:

  • If the markup to be centered includes an equals sign, the markup must be preceded by 1=. Example: {{Center|1=the <span style="color:red">red</span> one}}.
  • If the markup to be centered includes a displaying pipe, the pipe must be escaped as {{!}} or &#124;.

Tables

Using {{left}} / {{center}} / {{right}}

Header text
Left
Center
Right

Using {{align|left}} / {{align|center}} / {{align|right}}

Header text
Left
Center
Right

Tracking category

Pages, which use {{Center}} without an argument, are added to the Category:Pages using center with no arguments (0).

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Center

A simple template to center-align content in tables and other places. Be aware that the center class is applied to this template, which means every element within the template has its left and right margins set to auto. This may harm some templates.

[Rediger TemplateData]

Skabelonparametre

ParameterBeskrivelseTypeStatus
Content1

Content to be centered

Indholdpåkrævet
Custom CSSstyle

ingen beskrivelse

Ukendtvalgfri

See also

  • {{Center block}}
  • {{align}}
  • {{right}}, {{left}} and {{justify}}
  • {{Image frame}}

Installation Instructions
Export this template, then import to install it.
Use edit summary: Copied from [[w:c:templates:Skabelon:Center]] to properly attribute this template's editors.
There is no additional installation instructions for this template. If there is any, you may create it at Skabelon:Center/install.
Hentet fra "https://www.spademanns.dk/index.php?title=Skabelon:Center&oldid=323201"
Kategorier:
  • Pages used in system messages needing protection
  • Templates using TemplateData
  • Positioning templates
  • Typing-aid templates
  • Wikipedia XHTML tag-replacing templates
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
Flere oplysninger
  • Privatlivspolitik
  • Om Spademanns Leksikon
  • Forbehold
  • Bryder vi din copyright?
    • Denne side blev senest ændret 18. juni 2022 kl. 19:55 af Spademanns Leksikon-bruger CooperDK. Baseret på arbejde af Spademanns Leksikon anonym bruger da>Xaosflux.
    • Indholdet er udgivet under Creative Commons Attribution-ShareAlike medmindre andet er angivet.
    • Creative Commons Attribution-ShareAlike
    • Powered by MediaWiki

    timeline Seneste ændringer
    arrow_forward_ios

    Ingen ændringer i den angivne periode matcher disse kriterier.

    info Om Spademanns Leksikon
    edit

    Spademanns er stedet, hvis du har behov for at gøre dig selv dummere (af og til på andres bekostning)! Hvem ved, måske er du i virkeligheden narkoselæge eller astronaut eller Holger Bech Nielsen, men du har lyst til at lære at grave huller på kontanthjælp? Eller du kunne måske tænke dig at vide, hvordan Christiane F. bar sig ad med at tjene penge som ung teenager i Tyskland?

    DET kan Spademanns hjælpe dig med! God fornøjelse!

    search saved_search
    search saved_search Søg
    apps
    • live_help
    • hive
    • insert_link
    • timeline
    • visibility
    • shuffle
    • build
    • help
    • file_download
    • attachment
    public_off Ikke logget påReady
    widgets
    public StandardReady
    hive MirahezeReady
    Qora QoreReady
    • Privatlivspolitik
    • Om Spademanns Leksikon
    • Forbehold
    • Bryder vi din copyright?
    insert_link timeline visibility shuffle build help file_download attachment
    account_circle
    • refresh

    • Opret konto
    • Log på
    refresh
    MediaWiki spam blocked by CleanTalk.