Extensão: MyVariables
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.
Estado de lançamento: estável |
|
|---|---|
| Implementação | Variável |
| Descrição | Adiciona novas variáveis incorporadas |
| Autor(es) | |
| Responsável(eis) | WikiTeq team |
| Última versão | 4.3 (2021-09-23) |
| Política de compatibilidade | Por cada lançamento do MediaWiki que seja um lançamento 'Suporte a Longo Termo' existe um ramo correspondente na extensão. |
| MediaWiki | 1.31-1.35, 1.39 |
| Alterações à base de dados | Não |
| Licença | GNU - Licença Pública Geral 2.0 ou superior |
| Transferência | |
| Traduza a extensão MyVariables se esta estiver disponível em translatewiki.net | |
| Problemas | Tarefas em aberto · Reportar um erro |
A extensão MyVariables adiciona novas variáveis integradas:
| Variável | Descrição | Amostra |
|---|---|---|
{{currentuser}}
|
Login of current user or the IP for anonymous users. | "Pastakhov" ou "x.x.x.x" |
{{currentloggeduser}}
|
Login of current user or empty for anonymous users. | "Pastakhov" ou "" |
{{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" ou "" |
{{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" ou "" |
{{firstrevisionid}}
|
ID of the first revision of the current page or empty if page isn't yet created. | "1" ou "" |
{{firstrevisiontimestamp}}
|
Timestamp of the first revision of the current page or empty if page isn't yet created. | "20100809003006" ou "" |
{{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" ou "" |
{{pageimage}}
|
The main image of the current page as determined by Extensão: PageImages. If the extension is not installed or no main image was determined then {{PAGEIMAGE}} will output nothing. | "Logo.png" ou "" |
{{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" ou "" |
{{redirects}}
|
Comma-separated list of redirects to the current page or empty if there're no redirects. | "Foo, Bar, Baz" ou "" |
{{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" ou "" |
Instalação
- Exporte e coloque o ficheiro, ou ficheiros, num diretório chamado
MyVariables, na sua pastaextensions/.
Developers and code contributors should install the extension from Git instead, using:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MyVariables
- Acrescente o seguinte código ao fundo do ficheiro $LocalSettings:
wfLoadExtension( 'MyVariables' );
Pronto – Na página especial Special:Version da sua wiki verifique se a extensão foi instalada.
Nota
- Esta extensão não deve ser confundida com a extensão Variables que permite a utilização de variáveis no sentido de programação de computador.
Consultar também
- Extension:Semantic Extra Special Properties - Propriedades semânticas para os autores de páginas, subpáginas e mais
- Extension:Persistent Page Identifiers - Fornece identificadores únicos e estáveis para as páginas
- Extension:IDProvider
- Extension:UserFunctions
- Extension:UILangCode
- Extension:PageMagic
| This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |
Categories:
- Extensions by WikiTeq/pt
- Stable extensions/pt
- Variable extensions/pt
- GPL licensed extensions/pt
- Extensions in Wikimedia version control/pt
- GetMagicVariableIDs extensions/pt
- ParserFirstCallInit extensions/pt
- ParserGetVariableValueSwitch extensions/pt
- ParserOptionsRegister extensions/pt
- All extensions/pt
- Extensions included in Canasta/pt
- Extensions included in Miraheze/pt
- Extensions included in MyWikis/pt
- Extensions included in Open CSP/pt
- Extensions included in ProWiki/pt
- Extensions included in wiki.gg/pt
- Extensions included in WikiForge/pt
