Formula:FalseBlock

E Wikisource
(Redirectum de Formula:Fbloc)

This template uses css to force block-styled display on an inline element (a span) for semantically inline content. Such false blocks are often found with mathematical formulas, the discussion of which spans the paragraph surrounding them.

The text is centered by default, with no spacing before or after.

This template has the same effect and uses the same method as en:Template:inline-center. The syntax here is more oriented toward easy tuning of the spacing before and after the false block.


Short syntax[recensere]

{{FalseBlock|content}}

Full syntax[recensere]

Positional parameters: {{FalseBlock| content | [vertical / top spacing] | [bottom spacing] }}

Named parameters: {{FalseBlock| style=CSS declarations | align=left / right | content }}

Examples, using shorthand name[recensere]

same spacing[recensere]

ANTE{{fbloc|style=background:#8a2|align=right|A bit of text etc.|1}}POST gives


ANTEA bit of text displayed as a right block, equally spaced with the text preceding and following itPOST


bottom spacing[recensere]

ANTE{{fbloc|A bit of text etc.||1|style=background:#8a2}}POST gives


ANTEA bit of text displayed as a centered block, snapped to the text before, letting some space afterPOST