Jump to content

Template:Align/Doc

From NixOS Wiki
Revision as of 15:47, 11 June 2025 by DoggoBit (talk | contribs) (Created page with "This is a helper template that aligns its content in the centre, if the align parameter is set accordingly. This shouldn't be used in writing articles; its use is to avoid repeating substantial parts of templates when implementing conditional alignment. {{align|align=center|Some content}} === Usage === In a template, wrap the content you want to conditionally align within this template, and forward the align argument: {{code|lang=mediawiki|line=no|<nowiki>{{align|ali...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is a helper template that aligns its content in the centre, if the align parameter is set accordingly. This shouldn't be used in writing articles; its use is to avoid repeating substantial parts of templates when implementing conditional alignment.

Some content

Usage

In a template, wrap the content you want to conditionally align within this template, and forward the align argument:

{{align|align={{{align|}}}|...}}