|
|
|||
| (20 tussenliggende versies door dezelfde gebruiker niet weergegeven) | |||
| Regel 9: | Regel 9: | ||
}} |
}} |
||
</pre> |
</pre> |
||
| + | <templatedata> |
||
| + | { |
||
| + | "description": "Include lesson learned", |
||
| + | "params": { |
||
| + | "Lesson learned": { |
||
| + | "label": "Lesson learned", |
||
| + | "description": "Link to a Lesson Learned page", |
||
| + | "type": "wiki-page-name", |
||
| + | "required": true |
||
| + | }, |
||
| + | "Description": { |
||
| + | "label": "Description", |
||
| + | "description": "Describe the context for this lesson learned", |
||
| + | "type": "string", |
||
| + | "suggested": true |
||
| + | } |
||
| + | } |
||
| + | } |
||
| + | </templatedata> |
||
Edit the page to see the template text. |
Edit the page to see the template text. |
||
</noinclude><includeonly><div style="display:none;"> |
</noinclude><includeonly><div style="display:none;"> |
||
| − | {{#vardefine:varLL|{{#if: {{{Lesson learned|}}}| {{{Lesson learned}}} | {{#if: {{{1|}}}| {{{1}}} | {{PAGENAME |
+ | {{#vardefine:varLL|{{#if: {{{Lesson learned|}}}| {{{Lesson learned}}} | {{#if: {{{1|}}}| {{{1}}} }} }} }}
|
| − | {{#vardefine:varMN|{{#show: {{#var: |
+ |
{{#vardefine:varPN|{{PAGENAME}}}} |
| + | {{#vardefine:varMN|{{#show: {{#var:varPN}} | ?Model link | link=none | default={{#var:varPN}} }} }} |
||
{{#vardefine:varLLIncludeSemantics|Nee}} |
{{#vardefine:varLLIncludeSemantics|Nee}} |
||
| + | {{#vardefine:varPages|{{#ask: [[Lesson learned::{{#var:varLL}}]] | ?Lesson Learned back link= | mainlabel=- | link=none}}}} |
||
| + | {{#vardefine:varPagesStripped|{{#arraymap:{{#var:varPages}}|,|@@@@|{{#ifeq: @@@@ | {{#var:varMN}}||@@@@}}|,}}}} |
||
| + | {{#subobject: |
||
| + | |Lesson learned={{#var:varLL}} |
||
| + | |Description={{{Description|}}} |
||
| + | |Lesson Learned back link={{#var:varMN}} |
||
| + | }} |
||
</div> |
</div> |
||
| + | <!-- for debug purposes |
||
| + | varLL: {{#var:varLL}}<br /> |
||
| + | ask: {{#ask: [[Lesson learned::{{#var:varLL}}]] | ?Lesson Learned back link= | mainlabel=- | link=none}}<br /> |
||
| + | varPages = {{#var:varPages}}<br /> |
||
| + | varPagesStripped = {{#var:varPagesStripped}}<br /> |
||
| + | end debug --> |
||
<div class="toccolours mw-collapsible mw-collapsed"> |
<div class="toccolours mw-collapsible mw-collapsed"> |
||
| − | '''Lesson learned''': {{#show: {{#var: |
+ | '''Lesson learned''': {{#show: {{#var:varLL}} | ?Heading}}<br /> |
'''Context''': {{{Description|}}}<br /> |
'''Context''': {{{Description|}}}<br /> |
||
| − | '''Summary''': {{#show: {{#var: |
+ | '''Summary''': {{#show: {{#var:varLL}} | ?Summary}} |
<div class="mw-collapsible-content"> |
<div class="mw-collapsible-content"> |
||
| − | {{:{{#var: |
+ | ---- |
| + | {{:{{#var:varLL}}}} |
||
| + | |||
| + | {{#if: {{#var:varPagesStripped}}|<div style="text-align: right;">Other pages with this lesson learned: {{#arraymap:{{#var:varPagesStripped}}|,|@@@@|{{#ask: [[Model link::@@@@]]}}|,<nowiki> </nowiki>}}</div><br />}} |
||
| + | <div style="text-align: right;">Link to lesson learned page: [[{{#var:varLL}}]]</div> |
||
</div> |
</div> |
||
</div> |
</div> |
||
</includeonly> |
</includeonly> |
||
This is the "Include lesson learned" template. It should be called in the following format:
{{Include lesson learned
|Lesson learned=
|Description=
}}
<templatedata> { "description": "Include lesson learned", "params": { "Lesson learned": { "label": "Lesson learned", "description": "Link to a Lesson Learned page", "type": "wiki-page-name", "required": true }, "Description": { "label": "Description", "description": "Describe the context for this lesson learned", "type": "string", "suggested": true } } } </templatedata> Edit the page to see the template text.