https://wiki.gccollab.ca/api.php?action=feedcontributions&user=Troy.Lawson&feedformat=atom
wiki - User contributions [en]
2024-03-29T09:26:58Z
User contributions
MediaWiki 1.35.2
https://wiki.gccollab.ca/index.php?title=Template:Namespace_detect&diff=227
Template:Namespace detect
2012-04-03T17:36:44Z
<p>Troy.Lawson: 1 revision</p>
<hr />
<div>{{#switch:<br />
{{lc: <!--Lower case the result--><br />
<!--If no or empty "demospace" parameter then detect namespace--><br />
{{#if:{{{demospace|}}} <br />
| {{{demospace}}}<br />
| {{#if:{{{page|}}} <br />
| <!--Detect the namespace in the "page" parameter--><br />
{{#ifeq:{{NAMESPACE:{{{page}}} }}|{{TALKSPACE:{{{page}}} }}<br />
| talk<br />
| {{SUBJECTSPACE:{{{page}}} }} <br />
}}<br />
| <!--No "demospace" or "page" parameters, so detect actual namespace--><br />
{{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}<br />
| talk<br />
| {{SUBJECTSPACE}} <br />
}}<br />
}}<br />
}}<br />
}}<br />
<!-- Only one of the lines below will be executed --><br />
<!-- Respecting empty parameters on purpose --><br />
| main <!--"demospace=main" or {{SUBJECTSPACE}}={{ns:0}}=""--><br />
| = {{{main| {{{other|}}} }}}<br />
| talk = {{{talk| {{{other|}}} }}}<br />
| user = {{{user| {{{other|}}} }}}<br />
| wikipedia = {{{wikipedia| {{{other|}}} }}}<br />
| file<br />
| image = {{{file| {{{image| {{{other|}}} }}} }}}<br />
| mediawiki = {{{mediawiki| {{{other|}}} }}}<br />
| template = {{{template| {{{other|}}} }}}<br />
| help = {{{help| {{{other|}}} }}}<br />
| category = {{{category| {{{other|}}} }}}<br />
| portal = {{{portal| {{{other|}}} }}}<br />
| book = {{{book| {{{other|}}} }}}<br />
| other<br />
| #default = {{{other|}}} <!--"demospace=other" or a new namespace--><br />
<br />
}}<!--End switch--><noinclude><br />
<br />
{{documentation}}<br />
<!-- Add categories and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>
Troy.Lawson
https://wiki.gccollab.ca/index.php?title=Template:If_pagename&diff=199
Template:If pagename
2012-04-03T17:36:43Z
<p>Troy.Lawson: 1 revision</p>
<hr />
<div>{{#if:x <!--Remove surrounding whitespace--><br />
| <!--Check for match with full pagename--><br />
{{{ {{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }} <!--Has data, or is empty but defined--><br />
| <!--Check for match with "User:Somepage/+"--><br />
{{{ {{#titleparts:{{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }}|1|1}}/+<br />
| <!--Else, are we on a subpage or a basepage?--><br />
{{#if:{{#titleparts:{{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }}|0|2}}<br />
| <!--We are on a subpage, check for match with "User:Somepage/*"--><br />
{{{ {{#titleparts:{{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }}|1|1}}/*<br />
| <!--Check for match with "Somepage/*"--><br />
{{{ {{#titleparts:{{#if:{{{page|}}}| {{PAGENAME:{{{page|}}}}} | {{PAGENAME}} }}|1|1}}/*<br />
| <!--Check for match with "/something"--><br />
{{{ /{{#titleparts:{{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }}|0|-1}}<br />
| <!--Check for match with "/somethin*"--><br />
{{{ /{{lc: {{padleft:|8| {{#titleparts:{{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }}|0|-1}}# }} }}*<br />
| <!--Check for match with "/someth*"--><br />
{{{ /{{lc: {{padleft:|6| {{#titleparts:{{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }}|0|-1}}# }} }}*<br />
| <!--Check for match with "/some*"--><br />
{{{ /{{lc: {{padleft:|4| {{#titleparts:{{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }}|0|-1}}# }} }}* <!--Pad with # so "/a" doesn't match "/aaaa*"--><br />
| {{{subpage| {{{other|}}} }}} <!--Respecting empty parameter on purpose--><br />
}}}<br />
}}}<br />
}}}<br />
}}}<br />
}}}<br />
}}}<br />
| <!--We are on a basepage, check for match with "Somepage"--><br />
{{{ {{#if:{{{page|}}}| {{PAGENAME:{{{page|}}}}} | {{PAGENAME}} }}<br />
| {{{basepage| {{{other|}}} }}} <!--Respecting empty parameter on purpose--><br />
}}}<br />
}} <!--End if, are we on a subpage or a basepage?--><br />
}}}<br />
}}}<br />
}}<noinclude><br />
<br />
{{documentation}}<br />
<!-- Add categories and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>
Troy.Lawson
https://wiki.gccollab.ca/index.php?title=Template:Category_handler/blacklist&diff=121
Template:Category handler/blacklist
2012-04-03T17:36:42Z
<p>Troy.Lawson: 1 revision</p>
<hr />
<div><noinclude>'''Actual code of this blacklist:'''<pre></noinclude>{{if pagename<br />
<!-- Start of blacklist --><br />
<br />
| Main Page = hide <!-- Don't categorise the main page --><br />
<br />
<!-- Don't categorise on centralised cascade page or its subpages --><br />
| Wikipedia:Cascade-protected items/+ = hide<br />
<br />
<!-- Don't categorise userboxes in their own "template space" --><br />
| User:UBX/+ = hide <br />
| User talk:UBX/+ = hide <br />
<br />
| Wikipedia:Template messages/* = hide <!-- Don't categorise on its subpages --><br />
<br />
| /archiv* = hide <!-- Don't categorise on /archive pages --><br />
<br />
<!-- End of blacklist --><br />
| page = {{{page|}}} <!-- Never change this one, see the doc --><br />
}}<noinclude></pre><br />
<br />
{{documentation}}<br />
<!-- Add categories and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>
Troy.Lawson
https://wiki.gccollab.ca/index.php?title=Template:Transclude&diff=551
Template:Transclude
2012-04-03T17:36:41Z
<p>Troy.Lawson: 1 revision</p>
<hr />
<div>{{#switch: {{NAMESPACE: {{{1}}} }}<br />
|#default = {{FULLPAGENAME: {{{1}}} }} <!-- eg "User:Foo" --><br />
|{{ns:0}} = <br />
{{#ifeq: {{NAMESPACE: {{{1}}} }} | {{NAMESPACE: Template{{{1}}} }}<br />
| Template:{{{1}}} <!-- no leading colon, eg "Foo" --><br />
| {{PAGENAME: {{{1}}} }} <!-- leading colon, eg ":Foo", so we want the article --><br />
}}<br />
}}<noinclude><br />
{{documentation}}<br />
</noinclude></div>
Troy.Lawson
https://wiki.gccollab.ca/index.php?title=Template:Infobox/row&diff=531
Template:Infobox/row
2012-04-03T17:36:00Z
<p>Troy.Lawson: 1 revision</p>
<hr />
<div>{{#if:{{{header|}}}<br />
|<tr><th colspan="2" class="{{{class|}}}" style="text-align:center; {{{headerstyle|}}}">{{{header}}}</th></tr><br />
|{{#if:{{{data|}}}<br />
|<tr class="{{{rowclass|}}}">{{#if:{{{label|}}}<br />
|<th scope="row" style="text-align:left; {{{labelstyle|}}}">{{{label}}}</th><br />
<td class="{{{class|}}}" style="{{{datastyle|}}}"><br />
|<td colspan="2" class="{{{class|}}}" style="text-align:center; {{{datastyle|}}}"><br />
}}<br />
{{{data}}}</td></tr><br />
}}<br />
}}</div>
Troy.Lawson
https://wiki.gccollab.ca/index.php?title=Template:Ombox/core&diff=479
Template:Ombox/core
2012-04-03T17:35:53Z
<p>Troy.Lawson: 1 revision</p>
<hr />
<div><table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}} <br />
{{#switch:{{{type|}}}<br />
| speedy = ombox-speedy<br />
| delete = ombox-delete<br />
| content = ombox-content<br />
| style = ombox-style<br />
| move = ombox-move<br />
| protection = ombox-protection<br />
| notice <!-- notice = default --><br />
| #default = ombox-notice<br />
}} {{{class|}}}" style="{{{style|}}}"><br />
<tr><br />
{{#ifeq:{{{image|}}}|none<br />
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td class="mbox-empty-cell"></td><br />
| <td class="mbox-image"><br />
{{#if:{{{image|}}}<br />
| {{{image}}}<br />
| [[Image:{{#switch:{{{type|}}}<br />
| speedy = Imbox speedy deletion.png<br />
| delete = Imbox deletion.png<br />
| content = Imbox content.png<br />
| style = Edit-clear.svg<br />
| move = Imbox move.png<br />
| protection = Imbox protection.png<br />
| notice <!-- notice = default --><br />
| #default = Imbox notice.png<br />
}} | {{#ifeq:{{{small|}}}|yes<br />
| 30x30px<br />
| 40x40px<br />
}}|link=|alt=]]<br />
}}</td><br />
}}<br />
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td><br />
{{#if:{{{imageright|}}}<br />
| {{#ifeq:{{{imageright|}}}|none<br />
| <!-- No image. --><br />
| <td class="mbox-imageright"> {{{imageright}}} </td><br />
}}<br />
}}<br />
</tr><br />
</table><!-- Detect and report usage with faulty "type" parameter:<br />
-->{{#switch:{{{type|}}}<br />
| <!-- No type fed, is also valid input --><br />
| speedy<br />
| delete<br />
| content<br />
| style<br />
| move<br />
| protection<br />
| notice = <!-- Do nothing, valid "type" --><br />
| #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --><br />
}}<noinclude><br />
<br />
{{documentation}}<br />
<!-- Add categories and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>
Troy.Lawson
https://wiki.gccollab.ca/index.php?title=Template:Ombox&diff=477
Template:Ombox
2012-04-03T17:35:52Z
<p>Troy.Lawson: 1 revision</p>
<hr />
<div>{{#ifeq:{{{small|}}}|yes<br />
| {{ombox/core<br />
| small = yes<br />
| type = {{{type|}}}<br />
| image = {{#if:{{{smallimage|}}}| {{{smallimage}}} | {{{image|}}} }}<br />
| imageright = {{#if:{{{smallimageright|}}} | {{{smallimageright}}} | {{{imageright|}}} }}<br />
| class = {{{class|}}}<br />
| style = {{{style|}}}<br />
| textstyle = {{{textstyle|}}}<br />
| text = {{#if:{{{smalltext|}}}| {{{smalltext}}} | {{{text}}} }}<br />
}}<br />
| {{ombox/core<br />
| type = {{{type|}}}<br />
| image = {{{image|}}}<br />
| imageright = {{{imageright|}}} <br />
| class = {{{class|}}}<br />
| style = {{{style|}}}<br />
| textstyle = {{{textstyle|}}}<br />
| text = {{{text}}}<br />
}}<br />
}}<noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude></div>
Troy.Lawson
https://wiki.gccollab.ca/index.php?title=Template:Max/2&diff=461
Template:Max/2
2012-04-03T17:35:51Z
<p>Troy.Lawson: 1 revision</p>
<hr />
<div><includeonly>{{#ifexpr:{{{1}}}<{{{2}}}|{{{2}}}|{{{1}}}}}</includeonly><noinclude><br />
{{pp-template|small=yes}}2-parameter version</noinclude></div>
Troy.Lawson
https://wiki.gccollab.ca/index.php?title=Template:Max&diff=459
Template:Max
2012-04-03T17:35:51Z
<p>Troy.Lawson: 1 revision</p>
<hr />
<div><includeonly>{{#expr:{{#switch:<!--<br />
-->{{#iferror:{{#expr:({{{1|}}})*1}}|0|1}}<!--<br />
-->{{#iferror:{{#expr:({{{2|}}})*1}}|0|1}}<!--<br />
-->{{#iferror:{{#expr:({{{3|}}})*1}}|0|1}}<br />
|111={{max/3|({{{1}}})|({{{2}}})|({{{3}}})}}<br />
|110={{max/2|({{{1}}})|({{{2}}})}}<br />
|100={{{1}}}<br />
|101={{max/2|({{{1}}})|({{{3}}})}}<br />
|011={{max/2|({{{2}}})|({{{3}}})}}<br />
|010={{{2}}}<br />
|001={{{3}}}<br />
}}}}</includeonly><noinclude><br />
{{Documentation}}<br />
</noinclude></div>
Troy.Lawson
https://wiki.gccollab.ca/index.php?title=Template:Template_other&diff=283
Template:Template other
2012-04-03T17:35:47Z
<p>Troy.Lawson: 1 revision</p>
<hr />
<div>{{#switch:<br />
<!--If no or empty "demospace" parameter then detect namespace--><br />
{{#if:{{{demospace|}}}<br />
| {{lc: {{{demospace}}} }} <!--Use lower case "demospace"--><br />
| {{#ifeq:{{NAMESPACE}}|{{ns:Template}}<br />
| template<br />
| other<br />
}}<br />
}}<br />
| template = {{{1|}}}<br />
| other<br />
| #default = {{{2|}}}<br />
}}<!--End switch--><noinclude><br />
<br />
{{documentation}}<br />
<!-- Add categories and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>
Troy.Lawson
https://wiki.gccollab.ca/index.php?title=Template:Purge&diff=662
Template:Purge
2012-04-03T17:35:45Z
<p>Troy.Lawson: 1 revision</p>
<hr />
<div><span class="noprint plainlinks purgelink">[{{fullurl:{{{page|{{FULLPAGENAME}}}}}|action=purge}} <span title="Purge this page">{{{1|Purge}}}</span>]</span><noinclude><br />
{{documentation}}<br />
</noinclude></div>
Troy.Lawson
https://wiki.gccollab.ca/index.php?title=Template:Fmbox&diff=660
Template:Fmbox
2012-04-03T17:35:41Z
<p>Troy.Lawson: 1 revision</p>
<hr />
<div><table {{#if:{{{id|}}}|id="{{{id|}}}"}} class="plainlinks fmbox<br />
{{#switch:{{{type|}}}<br />
| warning = fmbox-warning<br />
| editnotice = fmbox-editnotice<br />
| system <!-- system = default --><br />
| #default = fmbox-system<br />
}} {{{class|}}}" style="{{{style|}}}"><br />
<tr><br />
{{#ifeq:{{{image|}}}|none<br />
| <!-- No image. --><br />
| <td class="mbox-image"><br />
{{#if:{{{image|}}}<br />
| {{{image}}}<br />
| [[File:{{#switch:{{{type|}}}<br />
| warning = Cmbox deletion.png<br />
| editnotice = Imbox notice.png<br />
| system <!-- system = default --><br />
| #default = Imbox notice.png<br />
}}|40x40px|link=|alt=]]<br />
}}</td><br />
}}<br />
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td><br />
{{#if:{{{imageright|}}}<br />
| <td class="mbox-imageright"> {{{imageright}}} </td><br />
}}<br />
</tr><br />
</table><!--<br />
Detect and report usage with faulty "type" parameter:<br />
-->{{#switch:{{{type|}}}<br />
| <!-- No type fed, is also valid input --><br />
| warning<br />
| editnotice<br />
| system = <!-- Do nothing, valid "type" --><br />
| #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --><br />
}}<noinclude><br />
{{documentation}}<br />
<!-- Add categories and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>
Troy.Lawson
https://wiki.gccollab.ca/index.php?title=Template:Documentation/template_page&diff=656
Template:Documentation/template page
2012-04-03T17:35:41Z
<p>Troy.Lawson: 1 revision</p>
<hr />
<div>{{#switch: {{SUBPAGENAME}}<br />
| sandbox<br />
| testcases = {{BASEPAGENAME}}<br />
| #default = {{PAGENAME}}<br />
}}<noinclude>{{documentation|content=<br />
This subtemplate of {{tl|documentation}} is used to determine the template page name.<br />
}}</noinclude></div>
Troy.Lawson
https://wiki.gccollab.ca/index.php?title=Template:Documentation/start_box2&diff=654
Template:Documentation/start box2
2012-04-03T17:35:41Z
<p>Troy.Lawson: 1 revision</p>
<hr />
<div>{{documentation/start box<br />
| preload = {{{preload|}}} <!--Allow custom preloads--><br />
| heading = {{{heading|¬}}} <!--Empty but defined means no header--><br />
| heading-style = {{{heading-style|}}}<br />
| content = {{{content|}}}<br />
<br />
| docpage = <br />
{{#if: {{{1|}}}<br />
| {{{1|}}}<br />
| {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/doc<br />
}}<br />
<br />
| doc exist = <br />
{{#ifexist: <br />
{{#if: {{{1|}}}<br />
| {{{1|}}} <!--Other docname fed--><br />
| {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/doc<br />
}}<br />
| yes<br />
}}<br />
<br />
}}<noinclude><br />
<br />
{{pp-template}}<br />
<!-- Add categories and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>
Troy.Lawson
https://wiki.gccollab.ca/index.php?title=Template:Documentation/end_box2&diff=650
Template:Documentation/end box2
2012-04-03T17:35:40Z
<p>Troy.Lawson: 1 revision</p>
<hr />
<div>{{documentation/end box<br />
| preload = {{{preload|}}} <!--Allow custom preloads--><br />
| content = {{{content|}}}<br />
| link box = {{{link box|}}} <!--So "link box=off" works--><br />
<br />
| docpage = <br />
{{#if: {{{1|}}}<br />
| {{{1|}}}<br />
| {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/doc<br />
}}<br />
| doc exist = <br />
{{#ifexist: <br />
{{#if: {{{1|}}}<br />
| {{{1|}}} <!--Other docname fed--><br />
| {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/doc<br />
}}<br />
| yes<br />
}}<br />
| docname fed =<br />
{{#if: {{{1|}}}<br />
| yes<br />
}}<br />
<br />
| sandbox = <br />
{{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/sandbox<br />
| testcases = <br />
{{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/testcases<br />
<br />
| template page = <br />
{{NAMESPACE}}:{{{template page|{{PAGENAME}}}}}<br />
<br />
}}<noinclude><br />
<br />
{{pp-template}}<br />
<!-- Add categories and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>
Troy.Lawson
https://wiki.gccollab.ca/index.php?title=Template:Documentation/end_box&diff=648
Template:Documentation/end box
2012-04-03T17:35:40Z
<p>Troy.Lawson: 1 revision</p>
<hr />
<div><noinclude><div></noinclude><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] <nowiki>|</nowiki> [{{fullurl:Special:ComparePages | page1={{urlencode:{{{template page|{{FULLPAGENAME}}}}}}}&page2={{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] <nowiki>|</nowiki> [{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit&preload={{urlencode:{{{template page|{{FULLPAGENAME}}}}}}}&summary={{urlencode:Create sandbox version of [[{{{template page|{{FULLPAGENAME}}}}}]]}} }} mirror])</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 />
{{pp-template|small=yes}}<br />
</noinclude></div>
Troy.Lawson
https://wiki.gccollab.ca/index.php?title=Template:Documentation/docspace&diff=646
Template:Documentation/docspace
2012-04-03T17:35:40Z
<p>Troy.Lawson: 1 revision</p>
<hr />
<div>{{#switch: {{SUBJECTSPACE}}<br />
| {{ns:0}}<br />
| {{ns:File}}<br />
| {{ns:MediaWiki}}<br />
| {{ns:Category}} = {{TALKSPACE}}<br />
| #default = {{SUBJECTSPACE}}<br />
}}<noinclude><br />
{{documentation|content=<br />
This subtemplate of {{tl|documentation}} is used to determine the namespace of the documentation page.<br />
}}</noinclude></div>
Troy.Lawson
https://wiki.gccollab.ca/index.php?title=Template:Documentation&diff=644
Template:Documentation
2012-04-03T17:35:39Z
<p>Troy.Lawson: 1 revision</p>
<hr />
<div><!--<br />
Automatically add {{template sandbox notice}} when on a /sandbox page.<br />
-->{{#ifeq: {{SUBPAGENAME}} | sandbox<br />
| <div style="clear: both;"></div>{{template sandbox notice|{{{livepage|}}}}}<br />
}}<!--<br />
Automatically add {{pp-template}} to protected templates.<br />
-->{{template other<br />
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop<br />
| {{pp-template|docusage=yes}}<br />
| {{#if: {{PROTECTIONLEVEL:edit}}<br />
| {{pp-template|docusage=yes}}<br />
| <!--Not protected, or only semi-move-protected--><br />
}}<br />
}}<br />
}}<!--<br />
Start of green doc box.<br />
-->{{documentation/start box2<br />
| preload = {{{preload|}}} <!--Allow custom preloads--><br />
| heading = {{{heading|¬}}} <!--Empty but defined means no header--><br />
| heading-style = {{{heading-style|}}}<br />
| content = {{{content|}}}<br />
<br />
<!--Some namespaces must have the /doc, /sandbox and /testcases <br />
in talk space--><br />
| docspace = {{documentation/docspace}}<br />
<br />
| 1 = {{{1|}}} <!--Other docname, if fed--><br />
<br />
<!--The namespace is added in /start box2--><br />
| template page = {{documentation/template page}}<br />
<br />
}}<!-- Start content --><!--<br />
Start load the /doc content:<br />
Note: The line breaks between this comment and the next line are necessary<br />
so "=== Headings ===" at the start and end of docs are interpreted.<br />
--><br />
{{#switch: {{#if:{{{content|}}}|1|0}}{{#if:{{{1|}}}|1|0}}{{#ifexist:{{{1|}}}|1|0}}{{#ifexist:{{documentation/docspace}}:{{documentation/template page}}/doc|1|0}}<br />
| 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 <br />
| 1111 = {{{content|}}}<br />
| 0110 | 0111 = {{ {{{1}}} }}<br />
| 0001 | 0011 = {{ {{documentation/docspace}}:{{documentation/template page}}/doc }}<br />
| 0000 | 0100 | 0010 | 0101 = <br />
}}<br />
<!--<br />
End load the /doc content:<br />
Note: The line breaks between this comment and the previous line are necessary<br />
so "=== Headings ===" at the start and end of docs are interpreted.<br />
-->{{documentation/end box2<br />
| preload = {{{preload|}}} <!--Allow custom preloads--><br />
| content = {{{content|}}}<br />
| link box = {{{link box|}}} <!--So "link box=off" works--><br />
<br />
<!--Some namespaces must have the /doc, /sandbox and /testcases <br />
in talk space--><br />
| docspace = {{documentation/docspace}}<br />
<br />
| 1 = {{{1|}}} <!--Other docname, if fed--><br />
<br />
<!--The namespace is added in /end box2--><br />
| template page = {{documentation/template page}}<br />
<br />
}}<!--<br />
End of green doc box<br />
--><noinclude><br />
<br />
<!-- Add categories and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>
Troy.Lawson