Regel 33: | Regel 33: | ||
{{#vardefine:varMN|{{#show: {{#var:varLL}} | ?Model link | link=none | default={{#var:varLL}} }} }} |
{{#vardefine:varMN|{{#show: {{#var:varLL}} | ?Model link | link=none | default={{#var:varLL}} }} }} |
||
{{#vardefine:varLLIncludeSemantics|Nee}} |
{{#vardefine:varLLIncludeSemantics|Nee}} |
||
+ | {{#vardefine:varPages|{{#arraymap:{{#var:varLL}}|,|@@@@|{{#show: @@@@| ?Lesson Learned back link | link=none}}|,}}}} |
||
+ | {{#vardefine:varPagesStripped|{{#arraymap:{{#var:varPages}}|,|@@@@|{{#ifeq: @@@@ | {{#var:varLL}}||@@@@}}|,}}}} |
||
{{#subobject: |
{{#subobject: |
||
|Lesson learned={{#var:varMN}} |
|Lesson learned={{#var:varMN}} |
||
Regel 48: | Regel 50: | ||
+ | {{#if: {{#var:varPagesStripped}}|<div style="text-align: right;">Other pages with this lesson learned: {{#arraymap:{{#var:varPagesStripped}}|,|@@@@|{{#ask: [[Model link::@@@@]] | link=none}}|,<nowiki> </nowiki>}}</div><br />}} |
||
<div style="text-align: right;">Link to lesson learned page: [[{{#var:varLL}}]]</div> |
<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.