Talk:List of countries by age of consent
Made some progress on trying to make an inline table but am not sure why the wiki can't seem to recognize the start and stop bars for the inline table. The wiki thinks that the stop bar for the inline table is the stop bar for the entire table and doesn't register anything below the inline table. This is what happened when I would go to preview the edit (I shortened the table but you get the idea):
Countries and States | Region | Age of Consent | Legalities (better name here?) | Notes | ||||
---|---|---|---|---|---|---|---|---|
Homosexuality | Partners | |||||||
M | F | MM | FF | 3+ Partners | Unmarried |
Aaia | Antarctica | Varies by territory | Notes | |||||
Subaia1 | Antarctica | 1 | 1 | 1 | 1 | 1 | 1 | Notes |
Subaia2 | Antarctica | 1 | 1 | 1 | 1 | 1 | 1 | Notes |
Alstin Crona 1 1 1 1 1 1 Notes Caphira (Caphiria?) Sarpedon 1 1 1 1 1 1 Notes
Here's what the code looks like:
{| class="nowrap sortable mw-datatable wikitable" style="table-layout:fixed;margin:auto;text-align:left"
|- valign="bottom"
! rowspan="3" |Countries and States
! rowspan="3" |Region
! colspan="2" rowspan="2" |Age of Consent
! colspan="4" |Legalities (better name here?)
! rowspan="3" |Notes
|-
! colspan="2" |Homosexuality
! colspan="2" |Partners
|-
! data-sort-type="number" style="width:1em" |M
! data-sort-type="number" style="width:1em" |F
! data-sort-type="number" style="width:1em" |MM
! data-sort-type="number" style="width:1em" |FF
! data-sort-type="number" style="width:1em" |3+ Partners
! data-sort-type="number" style="width:1em" |Unmarried
|-
{|class="wikitable sortable mw-collapsible mw-collapsed style="table-layout:inherit"
| Aaia
| style="background:000000" |Antarctica
| colspan="6" |Varies by territory
| Notes
|-
| Subaia1
| style="background:000000" |Antarctica
| 1 || 1 || 1 || 1 || 1 || 1
|Notes
|-
| Subaia2
| style="background:000000" |Antarctica
| 1 || 1 || 1 || 1 || 1 || 1 || Notes
|-
|}
|-
|Alstin
| style="background:Red" |Crona
| 1 || 1 || 1 || 1 || 1 || 1 || Notes
|-
|Caphira (Caphiria?)
| style="background:Purple" |Sarpedon
| 1 || 1 || 1 || 1 || 1 || 1 || Notes
|-
|}
I tried doing this as well but it didn't work either. Here the whole table is preserved but the inline table is in the incorrect spot. I'm aware that in this version of the table I put the inline table next to the third column but for whatever reason the entire table is destroyed otherwise. I'm trying to make the table look like it does on the Wikipedia page for the age of consent ( https://en.wikipedia.org/wiki/List_of_countries_by_age_of_consent ) and from what I can tell I had it basically the same the first time.
Countries and States | Region | Age of Consent | Legalities (better name here?) | Notes | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Homosexuality | Partners | |||||||||||||||||||||||||
M | F | MM | FF | 3+ Partners | Unmarried | |||||||||||||||||||||
Aaia | Antarctica | Varies by territory
|
Notes | |||||||||||||||||||||||
Alstin | Crona | 1 | 1 | 1 | 1 | 1 | 1 | Notes | ||||||||||||||||||
Caphira (Caphiria?) | Sarpedon | 1 | 1 | 1 | 1 | 1 | 1 | Notes |
Here's what the code looks like:
{| class="nowrap sortable mw-datatable wikitable" style="table-layout:fixed;margin:auto;text-align:left"
|- valign="bottom"
! rowspan="3" |Countries and States
! rowspan="3" |Region
! colspan="2" rowspan="2" |Age of Consent
! colspan="4" |Legalities (better name here?)
! rowspan="3" |Notes
|-
! colspan="2" |Homosexuality
! colspan="2" |Partners
|-
! data-sort-type="number" style="width:1em" |M
! data-sort-type="number" style="width:1em" |F
! data-sort-type="number" style="width:1em" |MM
! data-sort-type="number" style="width:1em" |FF
! data-sort-type="number" style="width:1em" |3+ Partners
! data-sort-type="number" style="width:1em" |Unmarried
|-
| Aaia
| style="background:000000" |Antarctica
| colspan="6" |Varies by territory
{|class="wikitable sortable mw-collapsible mw-collapsed"
|-
| Subaia1
| style="background:000000" |Antarctica
| 1 || 1 || 1 || 1 || 1 || 1
|Notes
|-
| Subaia2
| style="background:000000" |Antarctica
| 1 || 1 || 1 || 1 || 1 || 1 || Notes
|}
| Notes
|-
|Alstin
| style="background:Red" |Crona
| 1 || 1 || 1 || 1 || 1 || 1 || Notes
|-
|Caphira (Caphiria?)
| style="background:Purple" |Sarpedon
| 1 || 1 || 1 || 1 || 1 || 1 || Notes
|-
|}
Not sure what to fix, maybe one of you knows? Let me know if you manage to get it working.
- Dia