(Nieuwe pagina aangemaakt met '<noinclude> Category:EMont core This is the "Lesson learned show" template. It should be called in the following format: <pre> {{Lesson learned show |Lesson lea...')
|
|
||
(14 tussenliggende versies door dezelfde gebruiker niet weergegeven) | |||
Regel 5: | Regel 5: | ||
<pre> |
<pre> |
||
{{Lesson learned show |
{{Lesson learned show |
||
+ | |Page name= |
||
|Lesson learned= |
|Lesson learned= |
||
|Description= |
|Description= |
||
Regel 11: | Regel 12: | ||
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: |
+ | {{#vardefine:varPN|{{#if: {{{Page name|}}}| {{{Page name}}} | {{#if: {{{1|}}}| {{{1}}} | {{PAGENAME}} }} }} }}
|
+ |
{{#vardefine:varLL|{{#if: {{{Lesson learned|}}}| {{{Lesson learned}}} | {{#if: {{{2|}}}| {{{2}}} }} }} }} |
||
{{#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:varDesc|{{#if: {{{Description|}}}| {{{Description}}} | {{#if: {{{3|}}}| {{{3}}} }} }} }}
|
− | |Lesson learned |
+ |
{{#vardefine:varLessons|{{#ask: [[Lesson learned::{{#var:varMN}}]] | format=list | link=none}}}} |
− | | |
+ |
{{#vardefine:varPages|{{#arraymap:{{#var:varLessons}}|,|@@@@|{{#show: @@@@| ?Lesson Learned back link | link=none}}|,}}}}
|
− | |Lesson Learned back link={{ |
+ | {{#vardefine:varPagesStripped|{{#arraymap:{{#var:varPages}}|,|@@@@|{{#ifeq: @@@@ | {{#var:varPN}}||@@@@}}|,}}}} |
− | }} |
+ | </div><!-- |
− | </ |
+ |
PN = {{#var:varPN}} <br />
|
+ |
LL = {{#var:varLL}} <br />
|
||
+ |
MN = {{#var:varMN}} <br />
|
||
+ | DS = {{#var:varDesc}} <br /> |
||
+ | Lessons={{#var:varLessons}}<br /> |
||
+ | Pages={{#var:varPages}}<br /> |
||
+ | PagesStripped={{#var:varPagesStripped}}<br /> |
||
+ |
--><div class="toccolours mw-collapsible mw-collapsed"> |
||
Lesson learned: {{#show: {{#var:varMN}} | ?Heading nl}} |
Lesson learned: {{#show: {{#var:varMN}} | ?Heading nl}} |
||
<div class="mw-collapsible-content"> |
<div class="mw-collapsible-content"> |
||
− | {{ |
+ |
''{{#var:varDesc}}''<br /> |
− | {{#show: {{#var:varMN}} | ?Description}}<br /> |
+ | {{#show: {{#var:varMN}} | ?Description}} |
− | <div style="text-align: right;"> |
+ |
{{#if: {{#var:varPagesStripped}} | <br /><div style="text-align: right;">Andere pagina's met deze lesson learned: {{#arraymap:{{#var:varPagesStripped}}|,|@@@@|{{Convert link|Link name VN={{#ask: [[Model link::@@@@]] | link=none}}}}|,<nowiki> </nowiki>}}</div>}}
|
</div> |
</div> |
||
</div> |
</div> |
||
</includeonly> |
</includeonly> |
This is the "Lesson learned show" template. It should be called in the following format:
{{Lesson learned show |Page name= |Lesson learned= |Description= }}
Edit the page to see the template text.