위키백과:사랑방 (기술)/2024년 5월

새 주제
위키백과, 우리 모두의 백과사전.
마지막 의견: 13시간 전 (MediaWiki message delivery님) - 주제: Tech News: 2024-20
기술 사랑방
기술 사랑방
 2024년 5월 
새로 고침 / 보존 문서

기술 사랑방

기술 사랑방한국어 위키백과에 대한 기술적 문제에 대해 논의하는 공간입니다.



새 주제로 글을 쓰시려면 새로운 주제를 클릭하시면 됩니다. 사랑방의 예전 토론은 과거 토론 목록에서 확인하실 수 있습니다.

새로운 주제

DISPLAYTITLE 관련 질문[편집]

영어 위키백과의 Equation xy = yx 문서를 번역하다가 한국어 위키백과에서 DISPLAYTITLE과 관련한 기능을 사용할 수 없음을 알게 되었습니다. en:Template:DISPLAYTITLE의 소스를 참고해서 틀:제목표시 문서를 만들었음에도 안 되는 것으로 보아 우리 위키에 해당 기능을 미디어위키의 지침에 따라 설치해야 하는 것으로 보입니다.. 혹시 DISPLAYTITLE 확장 기능이 우리 위키에 설치되었는지 확인해주실 수 있나요? -- Kyeon-go (토론) 2024년 5월 4일 (토) 19:24 (KST)답변

한국어 위키백과도 영어 위키백과와 똑같이 {{DISPLAYTITLE}}이라는 텍스트를 사용해야 제목의 효과가 적용됩니다. 그리고 {{DISPLAYTITLE}}는 틀이 아니라 특수 명령문입니다. '제목표시'라는 것은 처음 듣는데, 한국어로 번역해서 직접 만드신 용어이신가요? --ted (토론) 2024년 5월 4일 (토) 22:21 (KST)답변
네! 일부 다른 언어 위키백과에선 자국어로 번역한 걸 참고해서(예: 에스페란토 버전, 프랑스어 버전) 만들어 본 것입니다 -- Kyeon-go (토론) 2024년 5월 5일 (일) 00:39 (KST)답변
설명문서를 보시면 아시겠지만 해당 틀은 사용을 하지 말라고 적혀있습니다. (Please use {{DISPLAYTITLE:Pagetitle}}, rather than {{DISPLAYTITLE|Pagetitle}}. 문장 참고) 지금 도입하신 틀은 특수 명령문을 감싼 것 말고는 다른 역할이 없습니다. {{DISPLAYTITLE}}을 직접 사용해주세요. --ted (토론) 2024년 5월 5일 (일) 08:21 (KST)답변
감사합니다! 제가 만든 틀은 삭제 신청할게요!
문서 번역 기능에선 우리나라 위키에 없는 틀이라 떴던데 왜 그런 거죠? Kyeon-go (토론) 2024년 5월 5일 (일) 08:28 (KST)답변
제가 이해를 잘 했는지 모르겠으나, "Equation xy = yx" 문서를 번역하실 때 해당 틀이 한국어 위키백과에는 존재하지 않는다는 메시지가 표시됐다는 말씀이신가요? 해당 문서는 DISPLAYTITLE 틀을 사용하지 않습니다. 특수명령문 DISPLAYTITLE의 용법은 {{DISPLAYTITLE:설명문서}}이고, 틀로서의 DISPLAYTITLE 사용법은 (틀이 존재하는 경우) {{DISPLAYTITLE|설명문서}}입니다. (가운데 :와 |의 차이에 따라 특수명령문을 쓸지, 틀을 쓸지 결정됨) 그리고 영어 위키백과에서는 DISPLAYTITLE 틀을 사용하는 일반 문서는 없다고 보셔도 무방합니다.[1] 다시 말해 영어 위키백과에서 사용하지 않는 틀인데 왜 한국어 위키에 없는 틀이라고 경고가 나왔는지 이해가 안 됩니다. --ted (토론) 2024년 5월 5일 (일) 08:45 (KST)답변
네 맞습니다.. 제대로 이해하셨습니다. 처음엔 그 메시지가 뜨고 '해당 부분은 평문으로 추가된다' 같은 주의도 봤었습니다. 아무래도 이중 중괄호({{ }}) 안에 있어서 틀이라고 인식하지 않았나 싶습니다 -- Kyeon-go (토론) 2024년 5월 5일 (일) 10:02 (KST)답변

실시간 미리 보기와 2017 위키텍스트 편집기의 미리 보기에서 {{클릭가능한 버튼2}}가 제대로 렌더링 되지 않는 문제[편집]

제 사용자 토론 문서를 편집하던 중에 이 문제를 발견했습니다. 사용자:Bluehill/토론 상단 틀에는 버튼 두개가 있는데 이게 링크로 렌더링되더라고요. Bluehill (토론) 2024년 5월 5일 (일) 23:26 (KST)답변

해당 문제가 발생한 원인은 미리 보기를 할 때 mw-ui-button 클래스와 연계가 되는 mediawiki.ui.button이 로드되지 않아서입니다. 이 문제가 왜 발생했는지, 그리고 실질적인 문제 해결은 올려주신 파브리케이터에서 확인을 기다려야 할 듯 합니다. 긴급히 해결을 원하시면 스크립트에 아래 내용을 추가하시면 됩니다. 위키페이지 콘텐츠가 표시될 때 해당 기능을 로드하는 스크립트입니다.
mw.hook( 'wikipage.content' ).add(function(){
	if ($('.mw-ui-button').length > 0) {
		if (mw.loader.getState('mediawiki.ui.button') === 'registered') {
			mw.loader.load('mediawiki.ui.button');
		}
	}
});
mediawiki.ui.button의 경우 구식 모듈로 경고가 표시되어 Codex 문법으로 치환이 권고되고 있습니다. 그러나 phab:T346469에 따르면 해당 모듈은 2024년 1월 18일 기준으로 stable이 아니기 때문에(추후 CSS 변화로 인해 깨질 우려가 있어서 이에 따라 관리를 해주어야 함) 누군가가 꾸준히 이곳에서 코드를 관리해주는 사람이 없는 한 이곳에 적용하기엔 무리가 있을 듯 합니다. mw:Module:Clickable button 3, mw:Template:Clickable button 3/styles.css처럼 mediawiki.ui.button에 의존하지 않도록 강제 해결하는 방법도 존재하나 시스템 자체에서 제공하는 스타일을 사용하는 것이 아니기에(변화가 반영되지 않음) 이 방법도 고려 대상은 아닙니다. --ted (토론) 2024년 5월 7일 (화) 18:49 (KST)답변

Tech News: 2024-19[편집]

MediaWiki message delivery 2024년 5월 7일 (화) 01:44 (KST)답변

Hi everyone, as announced in November, the Web team at the Wikimedia Foundation is working on dark (sometimes also called night) mode. Now, we have released the feature for logged-in users of advanced mobile mode across all wikis for testing purposes. But don't worry, the new feature is not disruptive! (See the "known limitations" section below.) It's just important for us to work together with you before we release this feature to a wider audience. Our goals for the early rollout are to:

  • Show what we've built very early. The earlier you are involved, the more your voices will be reflected in the final version
  • Get your help with flagging bugs, issues, and requests
  • Work with technical editors to adjust various templates and gadgets to the dark mode

Go to the project page and the FAQ page to see more information about the basics of this project.

Known limitations of the initial release

  • Currently, dark mode is only available on mobile, for logged-in users who have opted into advanced mode, as an opt-in feature.
  • Gadgets may initially not work well with dark mode and may have to be updated.
  • Our first goal is making dark mode work on articles. Special pages, talk pages, and other namespaces have not been updated to work in dark mode yet. We have temporarily disabled dark mode on some of these pages.

What we would like you to do (the broad community)

If you have questions - ask us! Also, where appropriate, consider linking to the Recommendations for dark mode compatibility on Wikimedia wikis on pages explaining how to define colors in code. Soon, this page will be marked for translation. We would like to emphasize that the recommendations may evolve. For this reason, we are not suggesting to create your local wiki copies of recommendations. At some point, the copy could become different from the original version.

What we would like you to do (template editors, interface admins, technical editors)

When most bugs are solved, we'll be able to make the dark mode available for readers on both desktop and mobile. To make this happen, we need to work together with you on reporting and solving the problems.

  1. To turn it on, use the mobile website and go to the settings part of your menu and opt into advanced mode, if you haven't already. Then, set the color to dark. (Later, we will be allowing the device preferences to set dark mode automatically).
  2. Next, go to different articles and look for issues:
    • If you have noticed an issue with a template but do not know how to fix it
      1. Go to the recommendations page and find a relevant example
      2. If no relevant example is available or you're not sure of the fix, contact us
    • If you want to debug many templates in dark mode
      1. Install the WCAG color contrast browser extension (Chrome, Firefox) and visit some articles. Use it to identify problems
      2. Go to the recommendations page and find relevant examples
      3. If no relevant example is available or you're not sure of the fix, contact us
    • If you have a bug report for dark mode that is not related to templates
      1. Take a screenshot of what you are observing.
      2. Contact us. If possible, please write down your browser version and operating system version.

Thank you. We're looking forward to your opinions and comments! SGrabarczuk (WMF) (토론) 2024년 5월 11일 (토) 01:21 (KST)답변

Tech News: 2024-20[편집]

MediaWiki message delivery 2024년 5월 14일 (화) 08:58 (KST)답변