User talk:Cmuelle8
Jump to navigation
Jump to search
|
Catalogue table
[edit]You seem to have a good grasp of how {{BSicon catalogue}} works, so I'm hoping that you might be able to help me.
There has got to be a simpler and more elegant way to accomplish things at User:Useddenim/sandbox#ENDE; and also I don't know why the l prefix keeps displaying in the first column.
Thanks. Useddenim (talk) 17:03, 2 December 2024 (UTC)
- The syntax for a value of the parameter prefixes allows an exclamation mark (!). If the pattern of the first data/icon column ought not be ident with that of the names column, it can be used to declare a different pattern. Usually, if the pattern for the first data column consists only of the empty string or a percent variable, it is desirable that both are ident.
prefixes=,e,x,ex
(first pattern, empty string, used for names column and first data colum)prefixes=l%1,exl%1
(first pattern, l%1, used for names column and first data colum)prefixes=%1!l%1,exl%1
(%1 used for names column)
- If the presets provided by the template do not fit your needs, supplying a custom prefixes= parameter as you did may already be the best option. Sometimes its helpful to use more than one table - it depends on what you're trying to do. If the table should echo the data in a gallery manner it does make sense to try to mix different prefixes and ROOTs. If, on the other hand, you want it to spot mistakes or irregularities in the data, you're better of with a more monotonuos selection of the same, e.g. use separate tables for the parallel, half-width, x-width, aspects. --Cmuelle8 (talk) 03:34, 4 December 2024 (UTC)
- Be aware that you do not need to supply percent variables in the prefixes= parameter. If all you want to do is add different prefix per column to the ROOTs in each row, a simple comma separated list (first of the three in the examples above) will do.
- Such "simple" list (not containing a percent-sign) are checked by the module for the use of a hyphen (-). If a hyphen is detected anywhere, then each pattern is expanded to contain percent variable definitions by the module itself (however, there is no extra-check if each column definition contains that hyphen; this means, one should not mix column definitions with a hyphen and such without in the same prefixes= parameter). E. g.:
prefixes=v-,ve-,v-e,lv-
will be auto-translated to columnsv%1-%2,v%1-%2,ve%1-%2,v%1-e%2,lv%1-%2
prefixes=-!v-,ve-
will be auto-translated to columns%1-%2,v%1-%2,ve%1-%2
(should not do this, 't' will not be auto-supplemented with a percent-variable and the resulting rows will contain unexpected file links for that column)prefixes=t,v-,ve-
will be auto-translated to columnst,t,v%1-%2,ve%1-%2
- See some alternative calls to BSicon catalogue on your sandbox page. No claim made however that they are more suitable than what you already preset. --Cmuelle8 (talk) 05:22, 4 December 2024 (UTC)
- Thank you; your explanation was very helpful. Useddenim (talk) 13:56, 4 December 2024 (UTC)
- On a side note / different topic: (
vSTR-KSTRa
) and (vSTR-KSTRe
) should not be ident, imho. As of now, 20241208233115, only the name is different, but they show the same icon. If there is a reason for this, it may be a good idea to add it to the file description somewhere. --Cmuelle8 (talk) 07:41, 4 December 2024 (UTC)- Fixed. Useddenim (talk) 13:56, 4 December 2024 (UTC)