13,255
edits
m (fix: - "-" to trigger an if statement for debugging) |
m (fix: Also check for /doc subpage) |
||
| Line 16: | Line 16: | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
<div class="sjabdocnoot" style="color:grey; text-align:center; margin-top:1em;"><small>'''The following template description is not displayed when the template is inserted in an article.'''</small></div> | <div class="sjabdocnoot" style="color:grey; text-align:center; margin-top:1em;"><small>'''The following template description is not displayed when the template is inserted in an article.'''</small></div> | ||
{{#if: {{{1|{{{ | {{#if: {{{content|{{{1|{{#ifexist: {{FULLPAGENAME}}/doc | yes}}}}}}}} <!-- Is both 1= and content= empty and there is no /doc subpage? --> | ||
| <!-- | | <!-- No, at least one of them is is there. --> | ||
<div class="toccolours template-documentation" style="background: #FFFFEE; border: 1px solid #FFDAB9;font-size:100%;"> | <div class="toccolours template-documentation" style="background: #FFFFEE; border: 1px solid #FFDAB9;font-size:100%;"> | ||
__NOEDITSECTION__ | __NOEDITSECTION__ | ||
| Line 32: | Line 32: | ||
}} | }} | ||
</div> | </div> | ||
| <!-- | | <!-- Yes, none of them is there. Throw a message to the reader. --> | ||
<div class="toccolours template-documentation" style="background: #FFFFEE; border: 1px solid #FFDAB9;font-size:100%;"> | <div class="toccolours template-documentation" style="background: #FFFFEE; border: 1px solid #FFDAB9;font-size:100%;"> | ||
Please [{{fullurl:{{FULLPAGENAME}}/doc|action=edit&preload=User:Johan_G/Template:Informative_template_with_preloaded_text/preloaded_text}} add documentation]. | Please [{{fullurl:{{FULLPAGENAME}}/doc|action=edit&preload=User:Johan_G/Template:Informative_template_with_preloaded_text/preloaded_text}} add documentation]. | ||