Moduldiskussion:Citation/CS1: Forskelle mellem versioner

Content deleted Content added
→‎Deadurl og UrlStatus: Det samme her :-)
Linje 432:
:::: {{ping|MGA73}} Tak for opmuntringen! Jeg er bare så vant til at have fuldt overblik over de systemer, jeg ændrer, for at sikre mig, at det, jeg ændrer, ikke har utilsigtede sideeffekter eller gør systemet inkonsekvent. Så bryder mig ikke om at foretage en ændring i noget jeg ikke først fuldt forstår. --[[Bruger:Jhertel|Jhertel]] ([[Brugerdiskussion:Jhertel|diskussion]]) 17. jun 2021, 12:56 (CEST)
::::: {{ping|Jhertel}} Det samme her :-) --[[Bruger:MGA73|MGA73]] ([[Brugerdiskussion:MGA73|diskussion]]) 17. jun 2021, 13:48 (CEST)
 
== mismatches between whitelist and configuration ==
 
At en.wiki we have a handful of templates that are intended to act as non-English to English cs1|2 template translators. I am writing a Lua module to do a better job of those translations. I notice that some parameters in [[Modul:Citation/CS1/Whitelist]] are not in [[Modul:Citation/CS1/Configuration]] and also some parameters listed in Modul:Citation/CS1/Configuration are not in Modul:Citation/CS1/Whitelist.
 
I have hacked a [[Modul:Sandkasse/trappist the monk/parameter match test‎|module in my sandbox]] that compares ~/Whitelist against ~/Configuration. It is just a hack and only operates from the debug console in edit mode. Here are the commands:
:<code>=p.aliases</code> – returns the list of parameters and their associated meta parameter from the ~/Configuration module
:<code>=p.aliases_dups</code> – returns a list of parameters that appear in more than one meta parameter (not necessarily a bad thing depending on the version of the cs1|2 module suite)
:<code>=p.whitelist</code> – returns the list of parameters from the ~/Whitelist module
:<code>=p.alias_params_not_in_whitelist</code> – returns a list of parameters found in the ~/Configuration module but not found in the ~/Whitelist module
:<code>=p.wh_params_not_in_aliases</code> – returns a list of parameters found in the ~/Whitelist module but not found in the ~/Configuration module
I hope that this hack is useful. I there are questions or comments, please ping me.
 
—[[Bruger:Trappist the monk|Trappist the monk]] ([[Brugerdiskussion:Trappist the monk|diskussion]]) 28. aug 2021, 20:18 (CEST)
Tilbage til siden »Citation/CS1«.