Extension:MyVariables/ko
Appearance
This extension is professionally maintained by the WikiTeq team.
WikiTeq provides official support for MediaWiki LTS releases only. It may work with other MediaWiki releases.
출시 상태: 안정 |
|
|---|---|
| 구현 | 변수 |
| 설명 | Adds new built-in variables |
| 만든 이 | |
| 유지 보수자 | WikiTeq team |
| 최신 버전 | 4.5 (2026-06-16) |
| 호환성 정책 | For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension. |
| MediaWiki | 1.31-1.35, 1.39, 1.43 |
| 데이터베이스 변경 | 아니오 |
| Licence | GNU General Public License 2.0 or later |
| 다운로드 | |
| MyVariables 확장 기능 번역 (translatewiki.net에서 가능한 경우) | |
| 이슈 | 미해결 작업 · 버그 보고 |
The MyVariables extension adds new built-in variables:
| Variable | Description | Sample |
|---|---|---|
{{currentuser}}
|
Login of current user or the IP for anonymous users. | "Pastakhov" or "x.x.x.x" |
{{currentloggeduser}}
|
Login of current user or empty for anonymous users. | "Pastakhov" or "" |
{{currentuserrealname}}
|
Real name of current user. | "Pavel Astakhov" |
{{hitcounter}}
|
Number of visits (hits) to the current page according to Extension:HitCounters or empty if the extension isn't installed. | "123" or "" |
{{logo}}
|
Path to wiki logo. | "/w/skins/common/images/wiki.png" |
{{uuid}}
|
Random (v4) UUID. | "65ba1a51-c723-4b9d-b1f3-13148d628322" |
{{userlanguagecode}}
|
Language that the user specified in the preferences. | "en", "en-ca", "ru", etc. |
{{userregistration}}
|
Timestamp of the date at which the user registered or empty if the page isn't a user page. | "20100809003006" or "" |
{{firstrevisionid}}
|
ID of the first revision of the current page or empty if page isn't yet created. | "1" or "" |
{{firstrevisiontimestamp}}
|
Timestamp of the first revision of the current page or empty if page isn't yet created. | "20100809003006" or "" |
{{firstrevisionuser}}
|
The user name (without the User prefix) or IP address associated to the first revision of the current page or empty if page isn't yet created. | "Pastakhov", "x.x.x.x" or "" |
{{pageimage}}
|
The main image of the current page as determined by Extension:PageImages. If the extension is not installed or no main image was determined then {{PAGEIMAGE}} will output nothing. | "Logo.png" or "" |
{{realname}}
|
When used in a user page, will output the real name of the user. However, if used like this {{REALNAME:Jimbo}} it will output the real name of the user Jimbo. This dual behavior is similar to core variables like {{PAGENAME}}. | "Pastakhov" or "" |
{{redirects}}
|
Comma-separated list of redirects to the current page or empty if there're no redirects. | "Foo, Bar, Baz" or "" |
{{subpages}}
|
The subpages of the current page, in plain text, comma-separated and in alphabetic order. If there are no any subpages, it will output nothing. | "Pastakhov/Subpage1, Pastakhov/Subpage2" or "" |
{{whatlinkshere}}
|
The titles of the pages that link to the current page, comma-separated and in alphabetic order. It will be empty if there are no linked pages. | "Bar, Baz, Foo" or "" |
설치
- 파일을 다운로드하고
MyVariables폴더를extensions/디렉토리에 넣어 주세요.
개발자와 코딩 기여자는 Git을 이용해 확장기능을 다운받는 것이 좋습니다.cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MyVariables
- 아래의 코드를 LocalSettings.php 코드의 마지막에 추가합니다.
wfLoadExtension( 'MyVariables' );
완료 – 위키의 ‘Special:Version’에 이동해서, 확장기능이 올바르게 설치된 것을 확인합니다.
Note
- This extension should not be confused with the 변수 extension, which allows the use of variables in the computer programming sense.
같이 보기
- Extension:Semantic Extra Special Properties - Semantic properties for page authors, subpages and more
- Extension:Persistent Page Identifiers - Provides stable, unique identifiers for pages
- Extension:IDProvider
- 확장기능:UserFunctions
- Extension:PageMagic
| This extension is included in the following wiki farms/hosts and/or packages: |
Categories:
- Extensions by WikiTeq/ko
- Stable extensions/ko
- Variable extensions/ko
- GetMagicVariableIDs extensions/ko
- ParserFirstCallInit extensions/ko
- ParserGetVariableValueSwitch extensions/ko
- ParserOptionsRegister extensions/ko
- GPL licensed extensions/ko
- Extensions in Wikimedia version control/ko
- All extensions/ko
- Extensions included in Canasta/ko
- Extensions included in Miraheze/ko
- Extensions included in MyWikis/ko
- Extensions included in Open CSP/ko
- Extensions included in ProWiki/ko
- Extensions included in wiki.gg/ko
