Revision as of 22:50, 19 March 2007 editFabartus (talk | contribs)Extended confirmed users21,651 edits Add text for CBD consult← Previous edit | Revision as of 23:13, 19 March 2007 edit undoSandbot (talk | contribs)41,821 editsm Sandbot (talk) (contributions): Resetting template; Requested at: http://www.cs.ucr.edu/~jylee/cgi-bin/sandbot/reset-x5.cgiNext edit → | ||
Line 1: | Line 1: | ||
<includeonly><noinclude>{{Inuse-until|00:30 13 March}}<b>]</b><font color="green">]</font> 21:46, 12 March 2007 (UTC) | |||
This sandbox is itself a template. This sandbox is for experimenting with templates. | This sandbox is itself a template. This sandbox is for experimenting with templates. | ||
{{Please leave this line alone (template sandbox heading)}} | {{Please leave this line alone (template sandbox heading)}} | ||
Line 10: | Line 9: | ||
---- | ---- | ||
<!-- Hello! Feel free to try your formatting and editing skills below this line. As this page is for editing experiments, this page will automatically be cleaned every 12 hours. --> | <!-- Hello! Feel free to try your formatting and editing skills below this line. As this page is for editing experiments, this page will automatically be cleaned every 12 hours. --> | ||
</noinclude><!--- | |||
----- | |||
----></includeonly><!--- | |||
----- | |||
---->{{#switch: {{{1|}}}<!--- | |||
==---->| "<!--- | |||
==---->| @<!--- | |||
==---->| * =<!--- ------------------------------------------------------------- ----- | |||
==----- ----- Select Default for Article name, implication is that the Category ----- | |||
==----- ----- name must differ or the user could just employ the default form. ----- | |||
==----------------------------------------------------------------------------- ----- | |||
==----><div style="margin-left: 26px;"><small>{{#if: {{{2A|}}}{{{3A|}}}<!--- | |||
---->|Articles:|Article:<!--- | |||
---->}} </small><b> '']'' <!--- | |||
---->{{#if: {{{2A|}}}{{{3A|}}}|<!--- | |||
==------>{{#if: {{{2A|}}}|'']'' }}<!--- | |||
==------>{{#if: {{{3A|}}}|'']''}}<!--- | |||
---->}}</b><br></div><!--- endif: More than one article ----><!--- | |||
----- | |||
---->| ! | |||
| # | |||
| $ ='''No Article'''<!--- Case works correctly... ----> | |||
| #default = <!--- default form... Implies {{{1}}} not a switch character or is | |||
----- totally undefined. | |||
==----><div style="margin-left: 26px;"><small>{{#if: {{{2A|}}}{{{3A|}}}<!--- | |||
---->|Articles:|Article:<!--- | |||
---->}} </small><b> '']'' <!--- | |||
---->{{#if: {{{2A|}}}{{{3A|}}} |<!--- | |||
==------>{{#if: {{{2A|}}} |'']''}} <!--- | |||
==------>{{#if: {{{3A|}}} |'']''}}<!--- | |||
---->}}</b><br></div><!--- endif: More than one article ----- | |||
---->}}<!---- END FIRST (ARTICLE) SWITCH ----- ----- | |||
----- --------------------------------------------------------------------------------------- ----- | |||
----- Dummy in the 'generic' Meta Logo-- this may work on most or all sisters without change! ----- | |||
----- --------------------------------------------------------------------------------------- ----- | |||
----><div style="float: left;border:1px solid #a9a9a9; ">{{ | |||
#ifeq:Wikimedia Commons|{{SITENAME}} | |||
|] | |||
|] | |||
}}</div><!---- | |||
----- ----- ------------------- ----- ----- | |||
----- ----- END OF LOGO SECTION ----- ----- | |||
----- ----- ------------------- ----- ----- | |||
----->{{#switch: {{{{{2}}} }}<!--- | |||
---->| "<!--- | |||
---->| @<!--- | |||
---->| * =<!--- ---------------------------------------------------------------- ----- | |||
----- ---- Display the default (PAGENAME) Category or 1C, 2C, 3C overrides. ----- | |||
----- ---- This would be an unusual mode, as assumes {{{2}}} defined, but ----- | |||
----- ---- essentially ignored as an input parameter, as may be the normal ----- | |||
----- ---- default PAGENAME. ---- | |||
----- ---- ----------------------------------------------------------------- ---- | |||
----><div style="margin-left: 60px;"><!--- | |||
----- | |||
----><small>{{#if:Wikimedia Commons|{{SITENAME}}|en.Misplaced Pages|Commons}} {{#if: {{{2C|}}}{{{3C|}}} |Categories:|Category:}} </small><br /><!--- | |||
----> '']'' <!--- | |||
---->{{#if: {{{2C|}}}{{{3C|}}}|<!--- | |||
==------>{{#if: {{{2C|}}}|'']'' <!--- | |||
==------>}}<!--- | |||
==------>{{#if: {{{3C|}}}|'']''<!--- | |||
==------>}}<!--- | |||
---->}}</b><br></div><!--- endif: More than one Category ----><!--- | |||
---->| !<!--- | |||
---->| #<!--- HERE CBD--- seem to be seeing none of this case... | |||
---->| $ ='''No Category'''{{ #switch: {{{1|}}}| ! | |||
| # | |||
| $ ='''THIS IS WikiPcatNo/CommonscatNO FORM... whatever that message is'''<!--- | |||
======---->] | #default='''Switch 1 defaults badly in Category logic''<!--- | |||
=====---->}} | |||
| #default = <!--- switch on (2) default output (Normal flow comes here unless '{{{2}}}' is an override name) | |||
----- | |||
----><small>{{#ifeq:Wikimedia Commons|{{SITENAME}}|en.Misplaced Pages|Commons}} {{#if: {{{2C|}}}{{{3C|}}} |Categories:|Category:}} </small><br /><!--- | |||
----> '']'' <!--- | |||
----- ----------------------------------------------------------------------- ----- | |||
----- The preceeding line above is the main output line 49 times out of fifty ----- | |||
----- ----------------------------------------------------------------------- ----- | |||
---->{{#if: {{{2C|}}}{{{3C|}}}|<!--- | |||
==------>{{#if: {{{2C|}}}|'']'' <!--- | |||
==------>}}<!--- | |||
==------>{{#if: {{{3C|}}}|'']'' <!--- | |||
==------>}}<!--- | |||
---->}}<!--- endif: More than one Category ----><!--- | |||
----- | |||
----></b><br></div> | |||
}} | |||
<noinclude>{{Interwikitmp-grp}}</noinclude> |
Revision as of 23:13, 19 March 2007
This sandbox is itself a template. This sandbox is for experimenting with templates.
Welcome to Template:X5, a Misplaced Pages template sandbox. This page is itself a template, and it allows you to carry out experiments related to template editing. If you wish to experiment with article editing, use the Misplaced Pages Sandbox or your own user sandbox.
To edit, click the edit tab above, make your changes and click the Publish changes button when finished. Content will not stay permanently; the template sandboxes are automatically cleaned every twelve hours. Please do not place copyrighted, offensive, illegal or libelous content in the sandboxes. For assistance with template coding, try the technical forum at the Village Pump. You can also try Special:ExpandTemplates and several other template sandboxes that you can use to carry out experiments. If you need more sandboxes, please consider using testwiki. You can also conduct tests using the Misplaced Pages Sandbox. For instance, to transclude this template there, edit it so that it includes:
|
If you defined parameters such as {{Template sandbox|First|Second|name="Named"}}:
- First
- {{{1}}}
- Second
- {{{2}}}
- Name
- {{{name}}}
Category: