Template talk:PreBox

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
This is a Talk page - please see the documentation about using talk pages. Add newer comments below older ones, sign comments using four tildes (~~~~), and indent successive comments with colons (:). Add new sections at the bottom of the page, under a heading (== ==). Please remember to mark sections as "open for discussion" using {{talk|open}}, so they will show up in the list of open discussions.

collapse-output=true doesn't pass to downstream consumers

Talk status
This discussion is still ongoing as of 2023-09-08.

Anyone know why the collapse-output=true parameter doesn't get inherited properly by the child downstream consumers (Kernel, Code, and File boxes)? See the last testcase on {{KernelBox}}. --Maffblaster (talk) 17:40, 8 September 2023 (UTC)

idea about adding to kernelbox filebox codebox templates a warning about |

Talk status
This discussion is done as of March 3, 2019.

background

in case {templatebox|1=my | content} both going to 1 variable (1=my; 1=content) and finally we have a warning at the bottom of page about "duplicate_arguments in template". but it's hard to find which one template is broken.

there is 3 solutions for this:

  1. nothing to do here. duplicate content in templates sometimes is ok!
  2. remove from templates 1= like {templatebox|my | content} then it will looks like 1=my; 2=content. After 1= will get fully removed from all templates call we can add checking for 2 and if it exists warn. work example https://wiki.gentoo.org/index.php?title=User:Cronolio/test_for&oldid=771244 But this case enables all other = in content. Required to do: remove 1= and replace all = with {=}. Possible to slowly remove 1= and then add check for | to template.
  3. this method looks like allow to enable cheeks for | and don't enable = . required replace 1= with new one variable. like out. {templatebox|out=my | content} out=my; 1=content. here we can check 1 and warn about | and = will not be enabled. (but i don't test it) Required to do: going through all templates calls and rewrite it. Limited by time since can't work for both cases (1= or out=) (but maybe i can do something around it) — The preceding unsigned comment was added by Cronolio (talkcontribs) 06:00, March 3, 2019‎