「テンプレート:PermissionOTRS」の版間の差分
ナビゲーションに移動
検索に移動
細 (ページの作成:「{{Autotranslate |1= {{ #if: {{{ticket|}}} | {{{ticket}}} | {{ #if: {{{id|}}} | https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom&TicketNumber={{{i...」) |
細 (1版 をインポートしました) |
||
(他の1人の利用者による、間の1版が非表示) | |||
1行目: | 1行目: | ||
{{#switch:1 | |||
<!-- CASE 1: parameter "id" or "1" which is numeric and in the correct range --> | |||
{{ # | |{{#expr:{{{id|{{{1|0}}}}}}>1980000000000000 and {{{id|{{{1|0}}}}}}<3000000000000000}} = | ||
{{Autotranslate|base=PermissionOTRS|1=https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom&TicketNumber={{{id|{{{1}}}}}}|2={{{id|{{{1}}}}}}|lang={{{lang|}}} }}<!-- | |||
| {{ # | -->{{#switch:{{{nocat|}}}{{NAMESPACE}}|File|File talk =[[Category:Items with OTRS permission confirmed]]|Template = [[Category:Custom OTRS permission template]] |Category = [[Category:Categories with OTRS permission template]] }} | ||
<!-- CASE 2: parameter "id" or "1" which is likely not right --> | |||
|{{#if:{{{id|{{{1|}}}}}}|1|0}} = | |||
{{Autotranslate|base=PermissionOTRS|1=https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom&TicketNumber={{{id|{{{1}}}}}}|2=<span style="color:red">{{{id|{{{1}}}}}}</span>|lang={{{lang|}}} }}<!-- | |||
-->{{gibox|text='''Warning:''' This file's OTRS ticket ID seems to be invalid.|type=issue}}<!-- | |||
-->{{#switch:{{{nocat|}}}{{NAMESPACE}}|File|File talk|Category|Template = [[Category:Items with incorrect OTRS ticket ID]]}} | |||
<!-- CASE 3: everything else which means no "id" or "1" parameters --> | |||
|#default = | |||
{{Autotranslate|base=PermissionOTRS|1=|2=|lang={{{lang|}}} }}<!-- | |||
-->{{gibox|text='''Warning:''' This file is missing essential information needed to confirm validity of the OTRS ticket.|type=issue}}<!-- | |||
--><includeonly>{{#switch:{{{nocat|}}}{{NAMESPACE}}|File|File talk|Category|Template = [[Category:Items with incorrect OTRS ticket ID]]}}</includeonly> | |||
}}<span class="autoconfonly" id="otrstemplatewr" style="display:none;">{{#invoke:TemplatePar|check | |||
|opt= id= nocat= date= comment= user= lang= 1= 2= 3= 4= | |||
|cat= Pages using PermissionOTRS template with incorrect parameter | |||
|errNS= 6 | |||
|template= [[Template:PermissionOTRS]] | |||
}}</span><noinclude> | |||
| | |||
{{ #if: {{{ | |||
| | |||
{{ # | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |