Diferencia entre revisiones de «Plantilla:Bug»

De WikiMinecraft
Saltar a: navegación, buscar
m (Protegió «Plantilla:Bug» ([Editar=Solo permitir administradores] (indefinido) [Pueden trasladar=Solo permitir administradores] (indefinido)))
 
(No se muestran 3 ediciones intermedias de 2 usuarios)
Línea 1: Línea 1:
<includeonly><span class="bug" {{
+
<includeonly>{{ #vardefine: $product | {{
  #if: {{ #vardefineecho: product | {{
+
  #switch: {{ uc: {{ #explode: {{{1}}} | - }} }}
    #switch: {{ uc: {{ #explode: {{{1|0}}} | - }} }}
+
  | API | MCAPI = MCAPI
    | MC          = MC
+
  | PE  | MCPE  = MCPE
    | API | MCAPI = MCAPI
+
  | MCL        = MCL
    | PE  | MCPE  = MCPE
+
   | #default    = MC
    | MCL        = MCL
+
}} }}<!--
   }} }}
+
-->{{ #vardefine: $number | {{
  | data-id="{{ #var: product }}-{{ #explode: {{{1|0}}} | - | 1 }}">[[{{ #var: product }}bug:{{ #explode: {{{1|0}}} | - | 1 }}|{{
+
  #if: {{ #pos: {{{1}}} | - }}
    #if: {{{2|}}}
+
  | {{ #explode: {{{1}}} | - | 1 }}
    | {{{2}}}
+
  | {{{1}}}
    | {{ #var: product }}-{{ #explode: {{{1|0}}} | - | 1 }}
+
}} }}<!--
  }}]]
+
-->{{ #vardefine: $bug | {{ #var: $product }}-{{ #var: $number }} }}<!--
  | data-id="MC-{{{1|0}}}">[[mcbug:{{{1|0}}}|{{ #if: {{{2|}}} | {{{2}}} | MC-{{{1|0}}} }}]]
+
--><span class="bug" data-id="{{ #var: $bug }}">[[{{ #var: $product }}bug:{{ #var: $number }}|{{
}}</span></includeonly><noinclude>
+
  #if: {{{2|}}}
{{doc}}
+
  | {{{2}}}
[[de:Vorlage:Bug]]
+
  | {{ #var: $bug }}
[[nl:Template:Bug]]
+
}}]]</span></includeonly><noinclude>
 
+
{{documentation}}
[[Category:Templates]]</noinclude>
+
<!-- Put categories/interwiki on the documentation page -->
 +
</noinclude>

Revisión actual del 15:06 20 abr 2014

Documentation

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}}

MC-1234


{{bug|MC-1234}}

MC-1234


{{bug|PE-1234}}

MCPE-1234


{{bug|MCPE-1234}}

MCPE-1234


{{bug|API-1234}}

MCAPI-1234


{{bug|MCAPI-1234}}

MCAPI-1234


{{bug|MCL-1234}}

MCL-1234


{{bug|1234|custom text}}

custom text

The above documentation is transcluded from Plantilla:Bug/doc.