Template:VK user/doc
表示
これはTemplate:VK userの解説サブページです。 使用方法、カテゴリ、およびその他テンプレートページ自体に含まれない情報を収容しています。 |
Luaモジュールを使用しています: |
Usage
[編集]- Using VK username (unnamed parameter "1")
{{VK user | VK username }}
{{VK user | VK username | Display Name }}
- Using VK user ID number ("id" parameter)
{{VK user | id= VK user ID }}
{{VK user | id= VK user ID | name= Display Name }}
Parameters
[編集]Parameter | Position | Parameter Name | Description | Required | Notes |
---|---|---|---|---|---|
Account | 1 | [none] | Username for the VK account (part of the web page address, for "vk.com/example " the username is "example ").
|
yes | Only enter username or numerical id – not both. |
id [required] |
Numerical ID of the VK account (part of the web page address, for "vk.com/id12345 " the id is "12345 ").
| ||||
Display name | 2 | name [optional] |
The account name as it should appear in the visible text of the link. | no | Defaults to the article title if not supplied. Parameter is not needed if the article title is the actual name of the person. |
Examples
[編集]- Using VK username (unnamed parameter "1")
- Usage:
{{VK user | durov | Pavel Durov }}
- Output:
- URL:
- Using VK user ID number ("id" parameter)
- Usage:
{{VK user | id= 1 | name= Pavel Durov }}
- Output:
- URL:
- No parameters and Wikidata property not defined
- Usage:
{{VK user}}
- Output:
- {{VK user}} template missing ID number or username and not present in Wikidata.