Template:Documentation/core: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
imported>Davidgothberg
Starting out the /core for the {{documentation}} template. Intermediate save.
 
imported>Davidgothberg
Using {{{doc exist|}}}. And check when to show the small box below for the doc meta-data.
Line 10:
| <!--Add the [edit][purge] or [create] links-->
<span class="editsection plainlinks" id="doc_editlinks">{{
#ifexistif: {{{docpagedoc exist|{{FULLPAGENAME}}/docyes}}}
| [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]] [{{purge|purge}}]
| <!--/doc exists-->
[[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]] [{{purge|purge}}]
| <!--/doc doesn't exist-->
[[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload=Template:Documentation/preload}} create]]
Line 37 ⟶ 36:
-->{{#if: {{{content|}}}
| {{{content|}}}
| {{#ifexistif: {{{docpagedoc exist|{{FULLPAGENAME}}/docyes}}}
| {{ {{{docpage|{{FULLPAGENAME}}/doc}}} }}
}}
Line 43 ⟶ 42:
<div style="clear: both;"></div>
</div><!--End of green doc box--><!--
GreenSmall box below for the /doc meta-data.
-->{{fmbox#if:
<!--Check if we need the small box-->
| image = none
{{#if: {{{content|}}}
| style = background-color: #ecfcf4;
| <!--Don't link the /doc existspage-->
| text =
| {{{doc exist|yes}}}
''{{#ifexist: {{{docpage|{{FULLPAGENAME}}/doc}}}
}}{{#switch: {{SUBJECTSPACE}}
| <!--/doc exists-->
| {{ns:Template}}
The above [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{docpage|{{FULLPAGENAME}}/doc}}}]]. <small style="font-style: normal">([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit] &#124; [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history])</small> <br>
| {{ns:User}} = add sandbox links
}}<!--
}}
Add links to /sandbox and /testcases when appropriate
 
-->{{documentation/links/sandbox}}''
| {{fmbox
}}
| image = none
| style = background-color: #ecfcf4;
| text =
''{{#if: {{{doc exist|yes}}}
| <!--/doc exists-->
The above [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{docpage|{{FULLPAGENAME}}/doc}}}]]. <small style="font-style: normal">([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit] &#124; [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history])</small> <br>
}}<!--
Add links to /sandbox and /testcases when appropriate
-->{{documentation/links/sandbox}}''
}}
}}<noinclude>
 
</noinclude>

Revision as of 19:38, 5 February 2010