User:Johan G/Template:Informative template with preloaded text: Difference between revisions

Jump to navigation Jump to search
+- parameters: These parameters should hopefully integrate well with the way Template:Informative template currently work
m (+- Layout)
(+- parameters: These parameters should hopefully integrate well with the way Template:Informative template currently work)
Line 18: Line 18:
__NOTOC__
__NOTOC__
<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: {{{content|{{{1|{{#ifexist: {{FULLPAGENAME}}/doc | yes}}}}}}}} <!-- Is both 1= and content= empty and there is no /doc subpage? -->
{{#if: {{{1|{{{doc|{{#ifexist: {{FULLPAGENAME}}/doc | yes}}}}}}}} <!-- Is both 1= and doc= empty and there is no /doc subpage? -->
   | <!-- No, at least one of them is is there. -->
   | <!-- 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%">
<div style="padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom: 1ex; line-height: 1.6">
<div style="padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom: 1ex; line-height: 1.6">
<span style="font-weight: bold; font-size: 125%">Template documentation</span>
<span style="font-weight: bold; font-size: 125%">Template documentation</span>
{{#if: {{{doc|}}} <!-- Is documentation transcluded from another page -->
|  <!-- Yes, documentation is transluded form another page -->
<span class="plainlinks" style="font-size: small">
<span class="plainlinks" style="font-size: small">
[
[
[{{{1|{{fullurl:{{FULLPAGENAME}}/doc}}}}} View]
[{{{doc|{{fullurl:{{FULLPAGENAME}}/doc}}}}} View]
]
]
[
[
[{{{1|{{fullurl:{{FULLPAGENAME}}/doc|action=edit}}}}} Edit]
[{{{doc|{{fullurl:{{FULLPAGENAME}}/doc|action=edit}}}}} Edit]
]
]
[
[
[{{{1|{{fullurl:{{FULLPAGENAME}}/doc|action=history}}}}} History]
[{{{doc|{{fullurl:{{FULLPAGENAME}}/doc|action=history}}}}} History]
]
]
[
[
[{{{1|{{fullurl:{{FULLPAGENAME}}/doc|action=purge}}}}} Purge]
[{{{doc|{{fullurl:{{FULLPAGENAME}}/doc|action=purge}}}}} Purge]
]</span>
]</span>
}}
</div>
</div>
{{{content|}}}
{{{1|}}}
{{{{{1|{{FULLPAGENAME}}/doc}}}}}
{{{{{doc|{{FULLPAGENAME}}/doc}}}}}
</div>
</div>
{{#if: {{{doc|}}} <!-- Is documentation transcluded from another page -->
|  <!-- Yes, documentation is transluded form another page -->
<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%">
The above documentation is transcluded from [[{{FULLPAGENAME}}/doc]]. <span class="plainlinks">([{{{1|{{fullurl:{{FULLPAGENAME}}/doc|action=edit}}}}} Edit] {{!}} [{{{1|{{fullurl:{{FULLPAGENAME}}/doc|action=history}}}}} History])</span>
The above documentation is transcluded from [[{{{doc|{{FULLPAGENAME}}/doc}}}]]. <span class="plainlinks">([{{{doc|{{fullurl:{{FULLPAGENAME}}/doc|action=edit}}}}} Edit] {{!}} [{{{doc|{{fullurl:{{FULLPAGENAME}}/doc|action=history}}}}} History])</span>
{{#if: {{{link box|}}}
{{#if: {{{link box|}}}
|
|
</br>
</br>
{{{link box}}}
{{{link box}}}
}}
}}
}}
</div>
</div>

Navigation menu