863×269px

Happy 2nd Anniversary! Check out the Character Models page for the new faces & hairstyles, available via the brand new Barbershop!

Please help to contribute towards the Anniversary 2024 page!


Neat Tips For Editors

From HorizonXI Wiki
Revision as of 22:25, 1 November 2023 by Aramachus (talk | contribs) (added ­ to break lines)
(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> or &­shy; html tags. While <wbr> will just allow the word to be broken up at this spot, &­shy; will additionally add a hyphen (shy = soft hyphen). 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
|-
| reallylong<wbr>content! || content || content || content || content
|}

Results in...

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

The same with using &­shy;

{| class="horizon-table table-xs digging-table"
! width="10%" | Reallylong&­shy;header! !! width="20%" | header 2 !! width="20%" | header 3!! width="25%" | header 4!! width="25%" | header 5
|-
| reallylong&­shy;content! || content || content || content || content
|}

Results in...

Reallylong­header! header 2 header 3 header 4 header 5
reallylong­content! content content content content