https://micras.org/wiki/index.php?title=Template:Documentation/core&feed=atom&action=historyTemplate:Documentation/core - Revision history2024-03-29T08:15:57ZRevision history for this page on the wikiMediaWiki 1.39.2https://micras.org/wiki/index.php?title=Template:Documentation/core&diff=7580&oldid=prevBjorn: Created page with '<!-- Start of green doc box --><div id="template-documentation" class="template-documentation iezoomfix"><!-- Add the heading at the top of the doc box: -->{{#ifeq: {{{headin…'2010-09-13T16:27:21Z<p>Created page with '<!-- Start of green doc box --><div id="template-documentation" class="template-documentation iezoomfix"><!-- Add the heading at the top of the doc box: -->{{#ifeq: {{{headin…'</p>
<p><b>New page</b></p><div><!--<br />
Start of green doc box<br />
--><div id="template-documentation" class="template-documentation iezoomfix"><!--<br />
Add the heading at the top of the doc box:<br />
-->{{#ifeq: {{{heading|¬}}} | <!--Defined but empty--><br />
| <!--"heading=", do nothing--><br />
| <div style="padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom: 1ex;">{{<br />
#if: {{{content|}}}<br />
| <br />
| <!--Add the [edit][purge] or [create] links--><br />
<span class="editsection plainlinks" id="doc_editlinks">{{<br />
#if: {{{doc exist|yes}}}<br />
| [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]] [{{purge|purge}}] <br />
| <!--/doc doesn't exist--><br />
[[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload={{<br />
#ifeq: {{SUBJECTSPACE}} | {{ns:File}}<br />
| Template:Documentation/preload-filespace<br />
| Template:Documentation/preload<br />
}} }} create]]<br />
}}</span><br />
}} <span style="{{#if: {{{heading-style|}}}<br />
| {{{heading-style|}}}<br />
| {{#ifeq: {{SUBJECTSPACE}} | {{ns:Template}}<br />
| font-weight: bold; font-size: 125%<br />
| font-size: 150%<br />
}}<br />
}}">{{#switch: {{{heading|¬}}}<br />
| ¬ = <br />
<!--"heading" not defined in this or previous level--><br />
{{#switch: {{SUBJECTSPACE}} <br />
| {{ns:Template}} = [[Image:Template-info.svg.png|50px|alt=]] Template documentation<br />
| {{ns:File}} = Summary<br />
| #default = Documentation<br />
}}<br />
| #default = <br />
<!--"heading" has data or is empty but defined--><br />
{{{heading|}}}<br />
}}</span></div><br />
}}<!--<br />
Load the /doc content:<br />
Note: The line breaks between this comment and the if-case<br />
and between the if-case and the following div are necessary so <br />
"=== Headings ===" at the start and end of docs are interpreted.<br />
--><br />
{{#if: {{{content|}}}<br />
| {{{content|}}}<br />
| {{#if: {{{doc exist|yes}}}<br />
| {{ {{{docpage|{{FULLPAGENAME}}/doc}}} }}<br />
}}<br />
}}<br />
<div style="clear: both;"></div><!--So right or left floating items don't stick out of the doc box.--><br />
</div><!--End of green doc box--><!--<br />
Link box below for the doc meta-data:<br />
-->{{#if: <br />
<!--Check if we should show the link box--><br />
{{#ifeq: {{{link box|}}} | off<br />
|<br />
| {{{doc exist|yes}}}{{<br />
#switch: {{SUBJECTSPACE}}<br />
| {{ns:User}}<br />
| {{ns:Template}} = yes<br />
}}<br />
}}<br />
<br />
| {{fmbox<br />
| id = documentation-meta-data<br />
| image = none<br />
| style = background-color: #ecfcf4;<br />
| textstyle = font-style: italic;<br />
| text = <br />
{{#if: {{{link box|}}}<br />
| {{{link box}}} <!--Use custom link box content--><br />
| {{#if: {{{doc exist|yes}}}<br />
| <!--/doc exists, link to it--><br />
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><br />
}}<!-- <br />
Add links to /sandbox and /testcases when appropriate:<br />
-->{{#switch: {{SUBJECTSPACE}}<br />
| {{ns:User}}<br />
| {{ns:Template}} = <br />
Editors can experiment in this template's {{<br />
#ifexist: {{{sandbox| {{FULLPAGENAME}}/sandbox }}}<br />
| [[{{{sandbox| {{FULLPAGENAME}}/sandbox }}}|sandbox]] <small style="font-style: normal">([{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit }} edit] {{!}} [{{fullurl:Wikipedia:pagediff | withJS={{urlencode:MediaWiki:Common.js/pagediff.js}}&oldpage={{urlencode:{{{template page|{{FULLPAGENAME}}}}}}}&newpage={{urlencode:{{{sandbox|{{FULLPAGENAME}}/sandbox}}}}}}} diff])</small> <br />
| sandbox <small style="font-style: normal">([{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit&preload=Template:Documentation/preload-sandbox }} create])</small> <br />
}} and {{<br />
#ifexist: {{{testcases| {{FULLPAGENAME}}/testcases }}}<br />
| [[{{{testcases| {{FULLPAGENAME}}/testcases }}}|testcases]] <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit }} edit])</small><br />
| testcases <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit&preload=Template:Documentation/preload-testcases }} create])</small><br />
}} pages. <br><br />
}}<!--<br />
Show the cats and interwiki text, but not <br />
if "content" fed or "docname fed" since then it is <br />
unclear where to add the cats and interwikis.<br />
-->{{#if: {{{content|}}} {{{docname fed|}}}<br />
| <br />
| Please add categories and interwikis to the [[{{{docpage|{{FULLPAGENAME}}/doc}}}|/doc]] subpage.<br />
}}<!--<br />
Show the "Subpages" link:<br />
-->{{#switch: {{SUBJECTSPACE}}<br />
| {{ns:File}} = <!--Don't show it--><br />
| {{ns:Template}} = &#32;[[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|Subpages of this template]].<br />
| #default = &#32;[[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|Subpages of this page]].<br />
}}<br />
}}{{#ifexist:{{FULLPAGENAME}}/Print<br />
|</br>A [[Help:Books/for experts#Improving the book layout|print version]] of this template exists at [[/Print]]. If you make a change to this template, please update the print version as well.[[Category:Templates with print versions]]<br />
}}<br />
}}<br />
}}<!--End link box--><!--<br />
<br />
Detect and report strange usage:<br />
-->{{#if:<br />
<br />
<!--Check if {{documentation}} is transcluded <br />
on a /doc or /testcases page--><br />
{{#switch: {{SUBPAGENAME}}<br />
| doc<br />
| testcases = strange<br />
}}<br />
<!--More checks can be added here, just return anything<br />
to make the surrounding if-case trigger--><br />
<br />
| <includeonly>[[Category:Wikipedia pages with strange ((documentation)) usage|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --></includeonly><br />
<br />
}}<noinclude><br />
<br />
{{pp-template}}<br />
<!-- Add categories and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>Bjorn