Template:Ticket: Difference between revisions

From railML 3 Wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
(Link aktualisiert)
(Alten Pfad entfernt)
Line 1: Line 1:
<includeonly><!-- Alter Pfad (zweigleisig) -->{{#vardefine:pfad|{{#ifeq:{{{2}}}|3|https://development.railml.org/railml/version3/-/issues/|https://trac.railml.org/{{#if:{{{1|}}}|ticket/|report}}}}}}<!--
<includeonly>{{#vardefine:pfad|https://development.railml.org/railml/version{{{2|3}}}/-/issues/}}<!--
Neuer Pfad (GIT) -->{{#vardefine:pfad|https://development.railml.org/railml/version{{{2|3}}}/-/issues/}}<!--
-->[{{#var:pfad}}{{{1|}}} {{#if:{{{1|}}}|&#35;{{{1}}}|{{{3|tickets}}}}}]</includeonly><noinclude>
-->[{{#var:pfad}}{{{1|}}} {{#if:{{{1|}}}|&#35;{{{1}}}|{{{3|tickets}}}}}]</includeonly><noinclude>
==Usage==
==Usage==

Revision as of 16:18, 21 February 2022

Usage

This templateis suposed to standardize links to tickets. It makes the links look uniform, and if the paht to the tickets ever changes, this change can be represented here,

Parameters

  • 1: the number of the addressed ticket
  • 2: version 2 or 3 – default=2
  • 3: Any text to diplay, is only displayed when 1 does not exist, default: tickets

Examples

{{ticket|41|2}}

delivers:

#41

{{ticket|474}}

delivers:

#474

{{ticket|3=Some text}}

delivers:

Some text

{{ticket|2=2}}

delivers:

tickets