Diferencia entre revisiones de «Plantilla:Bug»
Línea 1: | Línea 1: | ||
− | <includeonly> | + | <includeonly>{{ #vardefine: $product | {{ |
− | + | #switch: {{ uc: {{ #explode: {{{1}}} | - }} }} | |
− | + | | API | MCAPI = MCAPI | |
− | + | | PE | MCPE = MCPE | |
− | + | | MCL = MCL | |
− | + | | #default = MC | |
− | + | }} }}<!-- | |
− | }} }} | + | -->{{ #vardefine: $number | {{ |
− | + | #if: {{ #pos: {{{1}}} | - }} | |
− | + | | {{ #explode: {{{1}}} | - | 1 }} | |
− | + | | {{{1}}} | |
− | + | }} }}<!-- | |
− | + | -->{{ #vardefine: $bug | {{ #var: $product }}-{{ #var: $number }} }}<!-- | |
− | + | --><span class="bug" data-id="{{ #var: $bug }}">[[{{ #var: $product }}bug:{{ #var: $number }}|{{ | |
− | + | #if: {{{2|}}} | |
− | {{ | + | | {{{2}}} |
− | + | | {{ #var: $bug }} | |
− | + | }}]]</span></includeonly><noinclude> | |
− | + | {{documentation}} | |
− | + | <!-- Put categories/interwiki on the documentation page --> | |
+ | </noinclude> |
Revisión del 16:12 14 abr 2014
This template adds a link to the mojang bug tracker.
Usage
Just entering a number will make the template default to using the minecraft bug tracker, however adding the name of the product to the number will instead link to that product's bug tracker.
Examples
{{bug}}
[[MCbug:{{{1}}}|MC-{{{1}}}]]
{{bug|1234}}
{{bug|MC-1234}}
{{bug|PE-1234}}
{{bug|MCPE-1234}}
{{bug|API-1234}}
{{bug|MCAPI-1234}}
{{bug|MCL-1234}}
{{bug|1234|custom text}}
The above documentation is transcluded from Plantilla:Bug/doc.