Miraheze 개발자 위키

From Miraheze Developers Wiki
This page is a translated version of the page Miraheze Developers Wiki and the translation is 31% complete.

Miraheze 개발자 위키에 오신것을 환영합니다!

This is a community owned repository for anyone to obtain templates, JavaScript, CSS, or Lua modules for their Miraheze wiki.

If you are unable to import a template from here, please create a task listing them at Miraheze's issue tracker.

How far into the template rabbit hole do you go?

템플릿에 대하여

템플릿이 뭐죠?

A template is a page that gets transcluded in another page. This is useful for text that is used in multiple places, only the template needs editing to change all instances where it appears.

모든 템플릿들은 "템플릿 이름공간"에 있습니다.

예를 들어 Template:Main을 만들고

''The main article for this is [[{{{1}}}]]''.

라고 써넣은 뒤, 다른 문서에서는 {{Main|Random page}} 처럼 사용하면 다음과 같이 보입니다:

The main article for this is Random page.

이 위키에 대해서

이 위키는 Miraheze 틀의 중앙 저장소입니다.

Templates are a headache to disentangle, understand, install and maintain. Miraheze already makes life considerably easier for wiki admins, allowing them to focus on adding content instead of diverting time and energy to keeping up with the upgrade-debug race.

For full functionality MediaWiki ought to ship with templates bundled in but there is no sign of this happening any time soon. Miraheze wiki admins either write their own templates or export them from elsewhere e.g. Wikipedia.org. This is a wasteful dispersion of effort in place of collaboration.

Use the community portal for any meta discussions (about the wiki) or anything relevant to its intended purpose.

이 위키를 사용하는 방법

Using templates from this wiki won't prevent you from having unique templates on your wiki. The advantage of using templates from this wiki is that multiple people will have already put in the effort to make highly complex templates suitable for general use.

Writing your own templates.


Miraheze wikis are Instant Commons enabled, otherwise the images for icons would have to be uploaded locally. A good source for these is Wikimedia Commons' Category:Icons by subject.

Template testing

For previewing a template do the following:

  1. Copy the templates to be tested under a common prefix. For example, you might copy Template:Foo to User:Example/sandbox/Template:Foo. Alternatively, you might create User:Example/sandbox/Template:Foo as a redirect to Template:Foo/sandbox.
  2. Go to Special:TemplateSandbox. Fill in the page or revision to be rendered, and the prefix you chose in step 1. It is possible to specify multiple prefixes by separating them using vertical bars, e.g. User:Example/sandbox1|User:Example/sandbox2.
  3. Click View.

There is also a box at the bottom of the edit form which allows for previewing some other page as it would appear were the template being edited saved with the current contents of the edit form.

사용 가능한 템플릿

외부 링크