Difference between revisions of "Template:Issues"
Jump to navigation
Jump to search
m |
Chaser Zaks (talk | contribs) (Replace deprecated ParserFunctions "#pad" with built-in "Magic word" "padleft") |
||
(28 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{# | {{#ifeq:{{NAMESPACE}}|Template|{{Multi-lang|<includeonly>category=Jira Issues</includeonly>}}}}<includeonly>{{#if: | ||
{{Issue|{{{1}}}|{{{2|}}} | |||
The purpose of the following is to swap out the old code and use a new template without breaking the old templates. | |||
{{#if:{{{status|}}}{{{resolution|}}}| | |||
{{#vardefine:last_issue|{{{{{debugging|Issue/Version 1}}}|{{{1}}}|{{{2|}}} | |||
|style={{{style|}}} | |style={{{style|}}} | ||
|status={{{status|}}} | |status={{{status|}}} | ||
Line 6: | Line 9: | ||
|priority={{{priority|}}} | |priority={{{priority|}}} | ||
|type={{{type|}}} | |type={{{type|}}} | ||
}}}}{{# | |dnc={{{dnc|}}} | ||
{{{ | |fc={{{fc|}}} | ||
{{#var:issues}} | }}}} | ||
{{ | | | ||
[[Category:Jira Issues|{{{1}}} - {{{ | {{#vardefine:last_issue|{{{{{debugging|Issue/Version 1}}}|{{{1}}}|{{{2|}}} | ||
}}</ | |style={{{style|}}} | ||
|status={{{status|}}} | |||
|resolution={{{resolution|}}} | |||
|priority={{{priority|}}} | |||
|type={{{type|}}} | |||
|dnc={{{dnc|}}} | |||
|fc={{{fc|}}} | |||
}}}} | |||
}} | |||
{{#vardefine:issues{{#var:direction}}|{{#var:issues{{#var:direction}}}} | |||
{{#var:last_issue}}}} | |||
{{#ifexpr:{{#var:count-last-issue|0}} > 0| | |||
{{#vardefine:bugs{{#var:direction}}|{{#var:bugs{{#var:direction}}}} | |||
{{#var:last_issue}}}} | |||
}} | |||
}}{{#if:{{{1|}}}|{{#ifeq:{{NAMESPACE}}|Template|{{IssueTable}}[[Category:Jira Issues{{#var:lang}}|{{#explode:{{{1}}}|-|0}}-{{padleft:{{#explode:{{{1}}}|-|1}}|6|0}}]]}}}}</includeonly><noinclude> | |||
{{documentation}}</noinclude> |
Latest revision as of 02:05, 20 August 2023
This documentation is transcluded from Template:Issues/doc. (Edit | history)
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
This template has the exact same parameters as Template:Issue but instead of returning the table entry it puts it in a variable that can be accessed by Template:IssueTable or any of the LSL Templates. This allows for a more free form page layout and the templatization of jira issues. The advantage of which is that the data that makes up an issue need not be placed on all articles, just the template.
See also
For a list of templatized issues see: Category:Jira Issues