사용자:Faust/Meta


사용법

이 틀은 위키백과, 도움말, 사용자, 포털의 이름공간에 사용하기 위해 설계 되었다.

이틀은 자바스크립트 지원하는 브라우저에서 작동한다.

매개 변수;

id -> id 식별값 (0 에서 9, 기본값 = 0), 한 페이지에 여러개의 매타박스를 사용 하려면 반드시 필요하다.      한 페이지에 하나의 메타박스를 사용한다면 입력하지 않아도 된다.bticon1 -> 만일 태그 버튼 1 앞에 아이콘을 삽입하길 원하면bticon2 -> 만일 태그 버튼 2 앞에 아이콘을 삽입하길 원하면...bticon9 -> 만일 태그 버튼 9 앞에 아이콘을 삽입하길 원하면bt1 -> 태그 버튼 1bt2 -> 태그 버튼 2...bt9 -> 태그 버튼 9ps1 -> 내용 탭 1ps2 -> 내용 탭 2...ps9 -> 내용 탭 9sel -> 선택된 탭, 1에서 9까지 중 하나를 기본으로 보여준다       매개변수가 0 또는 빈칸일 경우 페이지를 불러올때마다 탭이 랜덤하게 선택된다.Color -> "Green", "Red," "Blue," "Yellow", "Purple" 또는 "Orange" 으로 색상을 지정한다.       (만일 빈칸이면 자동으로 보라색(Purple)이 지정된다.)PageName -> It allows the tabs to redirect browsers to a URL without JavaScripturlPrev -> It allows the tabs to redirect browsers to a URL without JavaScripturlPost -> It allows the tabs to redirect browsers to a URL without JavaScript

코드 예제

{{Metabox|id=0|color=Blue|bt1=알찬글|bt2=알고 계십니까|bt3=오늘의 역사|bticona1=[[파일:Utmarkt Guld.svg|16px]]|bticona2=[[파일:QA icon.svg|16px]]|bticona3=[[파일:Nuvola apps date.png|16px]]|ps1={{위키백과:알찬 글/대문}}|ps2={{알고 계십니까}}|ps3={{위키백과:오늘의 역사/{{#time:F j일|+9 hours}}}}|sel=1}}

결과

 알찬글
 알고 계십니까
 오늘의 역사


다른 위키에 이 틀을 어떻게 추가 하나요?

How can I include this Template in my wiki?

  • First of all, you must be sysop or you must apply help to a sysop, in order to edit MediaWiki pages.
  • Your wiki must support ParserFunctions (Parser Functions work well in all Wikimedia Fundation Projects)
  • Copy this Template to your Wikipedia or other project and adapt it into your language ("Metacaixa" can be translated to "Metabox" in English).
  • In order to see this Template, you must copy style section from MediaWiki:Common.css. Copy from /*HERE STARTS "METABOX" COLOUR-SCHEMES*/ to /*HERE FINISHES "METABOX" COLOUR-SCHEMES*/. These codes are ranges of colours used in Metaboxes. For the moment, there are 6 ranges available: "Lila" means "Lilac" (this colour is by default), "Verd" means "Green", "Vermell" means "Red", "Blau" means "Blue", "Groc" means "Yellow" and "Taronja" means "Orange"; but you can create new ranges with adapting current range codes with new colour shades.
  • So that this template can work, you must copy also working-code section from MediaWiki:Common.js. Copy from /*HERE STARTS THE WORKING-CODE OF "METABOXES"*/ to /*HERE FINISHES THE WORKING-CODE OF "METABOXES"*/.
  • Then, adapt codes into your language. Here below you can find possible translations in English of variable codes in Catalan.