Template talk:Table style

From Wikisource
(Redirected from Module talk:Table style/data)
Latest comment: 11 days ago by ShakespeareFan00 in topic Cellspacing...
Jump to navigation Jump to search

essential[edit]

@ShakespeareFan00: --> https://en.wikisource.org/w/index.php?title=Template:Table_style/parse&diff=6053549&oldid=6008338 Really? Not only have you duplicated a measurement, but the above or below variations would not suffice. That half an em is that essential? — billinghurst sDrewth 00:55, 9 January 2016 (UTC)Reply

overfilling this template[edit]

I think that this template is being overfilled with variations of formatting that is not being widely used. This template is now 7k in size, and every component that is added with an #if statement adds to its burden. The template was set up to alleviate the commonly required formatting, essentially to make it easier. Noting that it was designed so that additional components could be added as a final parameter in the common css style. It is not meant to carry every variation of page margins. I would like to see if we can now cap this template any further variations should be added by consensus. I would ideally like to pare back the less required recent additions, however, I expect that has some difficulties. — billinghurst sDrewth 00:55, 9 January 2016 (UTC)Reply

Not quite the above concern, but I'd considered suggesting previously that the parse portion here was re-written (possibly in LUA) so that the logic for doing the short code translations was separated from the actual short codes. This would be in line with the data/code seperation used elsewhere in mediawiki? ShakespeareFan00 (talk) 01:41, 9 January 2016 (UTC)Reply

Replacing repetitive calls to here with "classed" rows/cells[edit]

I will add an additional comment to the one above. Much of what I do using this template via {{ts}} is rather repetitive and thus some of the more obvious uses should in time be migrated over to properly "classed" table rows. So instead of a lot of repetitive ts calls I can use one class="coltable" in the lead of the table and the rest happens without all the template calls. In some instance this would reduce the parser load quite considerably, and make some stuff more readable again.

I also note the existince of {{aligned table}}, which currently doesn't support the short codes used here, if it did then one of the reasons for the repetitious calls here could be avoided. ShakespeareFan00 (talk) 01:36, 9 January 2016 (UTC)Reply

Suggested shorthand codes[edit]

Hi Ineuw. Are the suggested codes – highlighted in yellow –up for discussion? I have assumed so, given they haven't yet been implemented. For my two cents, padding numbers in the codes with zeroes has more cost than benefit.

In some cases the suggestions are adding 2, 3 or even 4 characters in length. That may not seem much for one attribute but when several are being used it will have a noticeable overhead. The shorthand should be short. -- Ham105 (talk) 22:16, 31 January 2020 (UTC)Reply

@Ham105: Apologies for the late reply. The suggested code modifications were suggested long ago by some users to identify the properties like dotted line borders, etc. Personally my issue was with the idiosyncratic codes like "sm" (sm110?) and xx, xxx, because they told me nothing about the actual font size, etc.
There are also the initial codes that are as long as the properties themselves and still don't clarify what they are about, and there are codes that were never used, but existing codes cannot be touched. — Ineuw (talk) 13:15, 5 February 2020 (UTC)Reply

A new and amazing font-style template - some questions.[edit]

This data page is a beautiful lesson for coders from the 19th century. Is it possible to modify the columns to be sortable? — ineuw (talk) 14:28, 26 August 2023 (UTC)Reply

Your request does not make sense. Anyway, your should be lessening your use of this template and instead using codes on the respective Index:......css work. — billinghurst sDrewth 15:29, 26 August 2023 (UTC)Reply
@Billinghurst: your reply is irrelevant. — ineuw (talk) 16:12, 26 August 2023 (UTC)Reply
@Ineuw: Done. Xover (talk) 20:34, 26 August 2023 (UTC)Reply
@Xover Thanks — ineuw (talk) 06:52, 27 August 2023 (UTC)Reply

Cellspacing...[edit]

 ['cs1'] ={
 	style='border-collapse: separate;','border-spacing:1px;',
 	aliases ={'cellspacing1px'}
 },
 
['cs2'] ={ 
	style='border-collapse: separate;','border-spacing:2px;',
	aliases ={ 'cellspacing2px'	}
},

['cs5'] ={ 
	style='border-collapse: separate;','border-spacing:5px;',
  alias ={ 'cellspacing5px'	}
},
...

It may need some analysis to determine what values are in use across English wikisource!. ShakespeareFan00 (talk) 17:36, 26 April 2024 (UTC)Reply