Neat Tips For Editors
From HorizonXI Wiki
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 ­ html tags. While <wbr> will just allow the word to be broken up at this spot, ­ 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...
Reallylong |
header 2 | header 3 | header 4 | header 5 |
---|---|---|---|---|
reallylong |
content | content | content | content |
The same with using ­
{| class="horizon-table table-xs digging-table" ! width="10%" | Reallylong­header! !! width="20%" | header 2 !! width="20%" | header 3!! width="25%" | header 4!! width="25%" | header 5 |- | reallylong­content! || content || content || content || content |}
Results in...
Reallylongheader! | header 2 | header 3 | header 4 | header 5 |
---|---|---|---|---|
reallylongcontent! | content | content | content | content |