Шаблон:Game link — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
(не показаны 2 промежуточные версии 2 участников) | |||
Строка 1: | Строка 1: | ||
− | <includeonly><span class="gamelink" data-type="{{lc:{{{1|}}}}}" data-id="{{{2|}}}"></span></includeonly> | + | <includeonly><span class="gamelink" data-type="{{lc:{{{1|}}}}}" data-id="{{{2|}}}"></span></includeonly><noinclude> |
− | <noinclude> | ||
== Description == | == Description == | ||
Uses [[Обсуждение MediaWiki:GameLinks.js|MediaWiki:GameLinks.js]] to produce an easily-selectable game link for the given parameters. While it can be used directly, the following shorthand templates are usually preferred: | Uses [[Обсуждение MediaWiki:GameLinks.js|MediaWiki:GameLinks.js]] to produce an easily-selectable game link for the given parameters. While it can be used directly, the following shorthand templates are usually preferred: | ||
Строка 24: | Строка 23: | ||
| <pre><nowiki>{{game link|map|1196}}</nowiki></pre> || {{game link|map|1196}} || [[Breekeelee]] | | <pre><nowiki>{{game link|map|1196}}</nowiki></pre> || {{game link|map|1196}} || [[Breekeelee]] | ||
|- | |- | ||
− | | <pre><nowiki>{{game link|skill|5501}}</nowiki></pre> || {{game link| | + | | <pre><nowiki>{{game link|skill|5501}}</nowiki></pre> || {{game link|skill|5501}} || [[Meteor Shower]] |
|- | |- | ||
| <pre><nowiki>{{game link|trait|1010}}</nowiki></pre> || {{game link|trait|1010}} || [[Opening Strike]] | | <pre><nowiki>{{game link|trait|1010}}</nowiki></pre> || {{game link|trait|1010}} || [[Opening Strike]] |
Текущая версия на 20:27, 3 апреля 2018
Description[править]
Uses MediaWiki:GameLinks.js to produce an easily-selectable game link for the given parameters. While it can be used directly, the following shorthand templates are usually preferred:
- Шаблон:Item link
- Шаблон:Map link
- Шаблон:Outfit link
- Шаблон:Recipe link
- Шаблон:Skill link
- Шаблон:Skin link
- Шаблон:Trait link
Usage[править]
{{game link|<type>|<ID>}}
- unnamed parameter 1
- Link type: item, map, skill, trait, or recipe
- unnamed parameter 2
- Game ID.
Examples[править]
Code | Result | Represents |
---|---|---|
{{game link|item|24325}} |
Destroyer Lodestone | |
{{game link|map|1196}} |
Breekeelee | |
{{game link|skill|5501}} |
Meteor Shower | |
{{game link|trait|1010}} |
Opening Strike | |
{{game link|recipe|7}} |
Recipe: Bolts of Cotton | |
{{game link|skin|3666}} |
Tormented Hammer Skin | |
{{game link|outfit|4}} |
Witch's Outfit |