Difference between revisions of "Template:Issues"

From Second Life Wiki
Jump to navigation Jump to search
(Replace deprecated ParserFunctions "#pad" with built-in "Magic word" "padleft")
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{{{#ifeq:{{NAMESPACE}}|Template|Multi-lang|dev/null}}|<includeonly>category=Jira Issues</includeonly>}}<includeonly>{{#if:
{{#ifeq:{{NAMESPACE}}|Template|{{Multi-lang|<includeonly>category=Jira Issues</includeonly>}}}}<includeonly>{{#if:


{{#vardefine:last_issue|{{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 10: Line 12:
|fc={{{fc|}}}
|fc={{{fc|}}}
}}}}
}}}}
|
{{#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:issues}}
{{#vardefine:issues{{#var:direction}}|{{#var:issues{{#var:direction}}}}
{{#var:last_issue}}}}
{{#var:last_issue}}}}


{{#vardefine:bugs|{{#var:bugs}}
{{#ifexpr:{{#var:count-last-issue|0}} > 0|
{{#ifexpr:{{#var:count-last-issue}} + 0 > 0|{{#var:last_issue}}}}}}
{{#vardefine:bugs{{#var:direction}}|{{#var:bugs{{#var:direction}}}}
 
{{#var:last_issue}}}}
}}{{Template|{{#ifeq:{{NAMESPACE}}|Template|IssueTable}}
}}
|after=[[Category:Jira Issues{{#var:lang}}|{{#explode:{{{1}}}|-|0}}-{{#pad:{{#explode:{{{1}}}|-|1}}|6|0}}]]
}}</includeonly><noinclude>
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.
 
testing 1 2 3... {{NAMESPACE}}


For a list of templatized issues see: [[:Category:Jira Issues{{#var:lang}}]]</noinclude>
}}{{#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 03: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