위키백과:FAQ/틀: 두 판 사이의 차이

위키백과, 우리 모두의 백과사전.
내용 삭제됨 내용 추가됨
편집 요약 없음
편집 요약 없음
6번째 줄: 6번째 줄:


== 틀이란 무엇인가요? ==
== 틀이란 무엇인가요? ==
틀을 사용하여 편집자가 기능을 구현할수 있습니다. 구현시 틀:이름공간에 국한되지 않습니다. 문서 원본 코드를 살펴보면, 이중 중괄호로 인식할수 있습니다. They can take parameters, both positional and named, and there are predefined keywords that are usually in capital letters.
틀을 사용하여 편집자가 기능을 구현할수 있습니다. 구현시 틀:이름공간에 국한되지 않습니다. 문서 원본 코드를 살펴보면, 이중 중괄호로 인식할수 있습니다. 위치 매개변수와 명명된 매개변수를 모두 사용할수 있으며, 사전 정의된 키워드가 있습니다 .


많은 공간에 포함하기를 원하는 상용구가 있다면, 틀을 만드는 것이 좋습니다. 사용법을 알고있다면, 유용하고 멋진 것을 사용하는 기존 틀이 있습니다. 틀과 해당 문서에는 현재 문서화가 잘 되어있지 않지만, 매우 '''복잡한'''......... 틀은 거의 없습니다.
If you have some boilerplate text that you want to include in a lot of places, you might do well to make a template out of it. There are many existing templates that do useful and cool things, if you know how to use them. In the template and their corresponding pages, they are currently poorly documented, but there are few templates that are very '''complicated'''.........


그 후에는 꽤 복잡해집니다. 자세한 내용은 [[m:도움말:틀]]을 참조하세요.
After that, it gets pretty complicated. For complete documentation, see [[m:Help:Template]].


== 틀 안에 분류를 어떻게 넣나요? ==
== 틀 안에 분류를 어떻게 넣나요? ==
46번째 줄: 46번째 줄:
이것은 훨씬 더 복잡해집니다.
이것은 훨씬 더 복잡해집니다.


실제로 호출 문서를 수정하고 다시 저장하면, "여기에 있는 링크" 보고서가 업데이트됩니다. A special trick: If you save the save page w/o making any changes, the "What links here" report ''will'' be updated, but the save will not be recorded in your "My contributions" report. Again, no change is reported, but, as a side-effect, the dependencies get updated. The effect of this trick may be similar to that of a purge (TBD).
실제로 호출 문서를 수정하고 다시 저장하면, "여기에 있는 링크" 보고서가 업데이트됩니다. 특수 수정: w/o 변경 사항이 없는 저장 문서를 저장하면 "여기에 있는 링크" 보고서는 ''업데이트''되지만, 저장 내용은 " 기여" 보고서에 기록되지 않습니다. 또한, 변경 사항은 보고되지 않지만 부작용으로 종속 내용이 업데이트됩니다. 수정의 효과는 퍼지 (TBD)의 효과와 유사할수 있습니다.


A good example of a chronic lack of update is [[:Template:Opentask]]. This template has several lists of links, and they change frequently. Many old user talk pages (which were recently updated in a trivial way) link to this template and, if you look at [[Special:Wantedpages]], you will see that a cluster of "wanted pages" based on a recent state of the template. If any of the desired pages are discarded (like the "Votes for Willys" page was), then that entry, again, for instance the "Votes for Willys" entry on the "Wanted pages", will linger with a high reference count indefinitely. Again, this is due the user pages of dormant accounts, but if you ''visit'' those pages, you cannot ''see'' the dependency because the page ''is'' re-rendered.
A good example of a chronic lack of update is [[:Template:Opentask]]. This template has several lists of links, and they change frequently. Many old user talk pages (which were recently updated in a trivial way) link to this template and, if you look at [[Special:Wantedpages]], you will see that a cluster of "wanted pages" based on a recent state of the template. If any of the desired pages are discarded (like the "Votes for Willys" page was), then that entry, again, for instance the "Votes for Willys" entry on the "Wanted pages", will linger with a high reference count indefinitely. Again, this is due the user pages of dormant accounts, but if you ''visit'' those pages, you cannot ''see'' the dependency because the page ''is'' re-rendered.

2018년 5월 16일 (수) 16:01 판

FAQ_ 위키백과 사용법: 위키백과를 사용할 때 초보자들이 궁금해 할 질문을 모았습니다.
FAQ_ 위키백과 사용법: 위키백과를 사용할 때 초보자들이 궁금해 할 질문을 모았습니다.

이 곳에서는 위키백과의 들에 대해서 자주 있는 질문에 대한 답변에 대해 안내합니다.

틀이란 무엇인가요?

틀을 사용하여 편집자가 기능을 구현할수 있습니다. 구현시 틀:이름공간에 국한되지 않습니다. 문서 원본 코드를 살펴보면, 이중 중괄호로 인식할수 있습니다. 위치 매개변수와 명명된 매개변수를 모두 사용할수 있으며, 사전 정의된 키워드가 있습니다 .

많은 공간에 포함하기를 원하는 상용구가 있다면, 틀을 만드는 것이 좋습니다. 사용법을 알고있다면, 유용하고 멋진 것을 사용하는 기존 틀이 있습니다. 틀과 해당 문서에는 현재 문서화가 잘 되어있지 않지만, 매우 복잡한......... 틀은 거의 없습니다.

그 후에는 꽤 복잡해집니다. 자세한 내용은 m:도움말:틀을 참조하세요.

틀 안에 분류를 어떻게 넣나요?

틀에서 분류를 참조하는 것은 까다롭습니다. <includeonly> 및<noinclude> 태그에 주의하세요. 때로는 하나 또는 다른 것을 원하지 않을수도 있습니다. 분류의 의미와 틀이 분류에 표시되는지 여부에 따라 다릅니다.

토막글 틀

다양한 토막글 틀이 있습니다. 토막글 틀은 해당 분류와 어떻게 관련되는지의 방식으로 여러가지가 있습니다. 사용법 및 지침의 공통점이 나타나고 있습니다.

틀의 이름을 변경하거나, 넘겨주기 처리를 할 수 있나요?

예, 하지만 문서를 작성하고 "여기에 링크를 거는 것"에 주의하기 바랍니다. WLH이 0을 보고하기 전에 틀을 참고하는 문서 또는 접속 문서의 캐시를 제거해야 할수도 있습니다.

물론, 틀의 이름 변경을 피하는 가장 좋은 방법은 적절한 이름을 지정하는 것입니다.

틀을 어떻게 제거하나요

{{}}을 제거한후, 다시 문서를 작성하기 바랍니다. 틀을 삭제하면 일부 기록 기능이 소실될수 있습니다. 틀을 삭제하기 전에 "여기에 있는 링크"를 모두 0으로 고정해야합니다.

그 외에 틀이 쓰이는 용도로 무엇이 있나요?

틀은 때때로 여러개의 작은 문서를 하나의 큰 문서로 집계하는데 사용됩니다. 예를 들어 편집 목적으로 로그 역할을 하는 문서가 있지만, 보기를 위해 통계가 필요합니다.

왜 제가 만든 틀이 바로 적용되지 않나요?

그 하나는 조금 복잡합니다.

틀의 일부분은 즉시 업데이트됩니다. 예를 들어 틀을 변경하고 간단한 상용구 텍스트가 있는 경우, 틀 호출자를 사용하는 문서를 방문하면 텍스트가 업데이트됩니다. 즉, 문서의 모양이 새 판의 틀을 반영하도록 변경되었습니다. 호출 문서가 "다시 렌더링"되었습니다.

경우에 따라 (TBD) 문서를 다시 렌더링하려면, 해당 문서를 "제거"하여 문서를 다시 렌더링할수 있습니다. The easiest way to do this on a one-time basis is to startup to edit the calling page, and then modify the URL in your browser to change the end of the URL from &action=edit to &action=purge and "visit" that URL. If you expect this to be a persistent problem, then you may have to add a purge link, such as:

 <small>''[{{SERVER}}{{localurl:내문서|action=캐시}} 캐시 지우기]''</small>

이것은 "일일" 보고서의 집합체인 "주간" 보고서의 일반적인 필수 요소입니다.

여러 수준의 틀 호출이 있는 경우, 변경 사항을 제대로 전달하려면 중간 틀을 눌러야할수도 있습니다.

틀로 무엇이 링크되나요

이것은 훨씬 더 복잡해집니다.

실제로 호출 문서를 수정하고 다시 저장하면, "여기에 있는 링크" 보고서가 업데이트됩니다. 특수 수정: w/o 변경 사항이 없는 저장 문서를 저장하면 "여기에 있는 링크" 보고서는 업데이트되지만, 저장 내용은 "내 기여" 보고서에 기록되지 않습니다. 또한, 변경 사항은 보고되지 않지만 부작용으로 종속 내용이 업데이트됩니다. 이 수정의 효과는 퍼지 (TBD)의 효과와 유사할수 있습니다.

A good example of a chronic lack of update is Template:Opentask. This template has several lists of links, and they change frequently. Many old user talk pages (which were recently updated in a trivial way) link to this template and, if you look at Special:Wantedpages, you will see that a cluster of "wanted pages" based on a recent state of the template. If any of the desired pages are discarded (like the "Votes for Willys" page was), then that entry, again, for instance the "Votes for Willys" entry on the "Wanted pages", will linger with a high reference count indefinitely. Again, this is due the user pages of dormant accounts, but if you visit those pages, you cannot see the dependency because the page is re-rendered.

Note that this page (this FAQ page) does not contribute to the problem because its reference begins with a colon (see page source) and so it does not render/inline the template here.

The problem is that the action of simply saving a new version of a Template should not incur the overhead of updating all pages that call it. It may be that a software fix or a robot can update the references in a more timely fashion.

틀과 관련된 버그가 있을 때 어디로 신고하면 되나요?

버그는 위키미디어 파브리케이터 웹사이트에 보고해야합니다. (위키백과:버그 보고 지침 참조.)

틀을 개선시키고 싶을때 어떻게 하면 되나요?

개선 사항은 위키미디어 파브리케이터 웹사이트에서 요청할수 있습니다. 자세한 사항은 mw:MediaWiki roadmap을 참조하세요.