Difference between revisions of "Template:Issues"

From Second Life Wiki
Jump to navigation Jump to search
m
(Replace deprecated ParserFunctions "#pad" with built-in "Magic word" "padleft")
 
(28 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:issues|{{#var:issues}}
{{#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|}}}
}}}}{{#ifeq:{{NAMESPACE}}|Template|
|dnc={{{dnc|}}}
{{{!}}
|fc={{{fc|}}}
{{#var:issues}}
}}}}
{{!}}}
|
[[Category:Jira Issues|{{{1}}} - {{{2|}}}]]
{{#vardefine:last_issue|{{{{{debugging|Issue/Version 1}}}|{{{1}}}|{{{2|}}}
}}</includeonly>
|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

[Edit] [🔄Purge] Template-info.png Template documentation

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