Neat Tips For Editors

From HorizonXI Wiki
Revision as of 21:47, 17 October 2023 by Spiffly (talk | contribs) (Created page with "Brand new page, very much a work in progress. == Mid-word Linebreaks == When formatting tables, you can tell mediawiki to apply a linebreak mid-word via the <nowiki><wbr></nowiki> html tag. This can be especially useful when dealing with long words in small tables and/or small columns. It can also help to prevent tables with these really long words from breaking pages on mobile devices. <pre>{| class="horizon-table table-xs digging-table" ! width="10%" | Reallylong<wbr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Brand new page, very much a work in progress.

Mid-word Linebreaks

When formatting tables, you can tell mediawiki to apply a linebreak mid-word via the <wbr> html tag. This can be especially useful when dealing with long words in small tables and/or small columns. It can also help to prevent tables with these really long words from breaking pages on mobile devices.

{| class="horizon-table table-xs digging-table"
! width="10%" | Reallylong<wbr>header! !! width="20%" | header 2 !! width="20%" | header 3!! width="25%" | header 4!! width="25%" | header 5
|-
| content || content || content || content || content
|}

Results in...

Reallylongheader! header 2 header 3 header 4 header 5
reallylongcontent! content content content content