User talk:CQ/Sandbox
{{liquidThreads|Template talk:LiquidThreads|Talk:liquidThreads}}
Contents |
Source {{liquidThreads}} [edit]
{| class="messagebox standard-talk" id="talkheader" align="center" style="text-align:center;background-color: LightGray;" |- | colspan="3" style="border:1px solid IndianRed; background-color: NavajoWhite;" | '''Welcome to the {{PAGENAME}} [[Wikiversity:Colloquium|Forum]]!'''<br />Please read '''''[[{{SUBJECTPAGENAME}}]]''''' carefully before posting. |- | colspan="3" style="background-color: AliceBlue;text-align:left;Padding: 10px" | Join the threads below by beginning your reply with a colon (:) (or colons ::) and sign your comments using four tildes (~~~~). Start a new thread by clicking the '''+''' tab above, supplying a meaningful heading. |- | style="border:1px solid SteelBlue;background-color: Gainsboro;text-align:left;Padding: 10px" |[[Wikiversity:Schools|Source:]] [[{{{1}}}]]<br />[[Wikiversity:Naming conventions|Destination:]] [[{{{2}}}]] |'''[[Wikiversity:Naming conventions|Current:]] {{PAGENAME}}''' | style="border:1px solid SteelBlue;background-color: Gainsboro;" |[[Image:Wiki.png|60px|none|Wiki<!---->media Foundation]] |} <noinclude> {{Documentation}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> </noinclude>
Revision 0.2 [edit]
Stripping it down
{| class="messagebox standard-talk" id="talkheader" align="center" style="text-align:center;background-color: LightGray;" |- | colspan="3" style="border:1px solid IndianRed; background-color: NavajoWhite;" |[[{{SUBJECTPAGENAME}}]] |- | colspan="3" style="background-color: AliceBlue;text-align:left;Padding: 10px" |{{sandbox}} |- | style="border:1px solid SteelBlue;background-color: Gainsboro;text-align:left;Padding: 10px" |Previous: [[{{{1}}}]] |'''Current: {{NAMESPACE}}:{{PAGENAME}}''' | style="border:1px solid SteelBlue;background-color: Gainsboro;text-align:rfight;Padding: 10px" |Next: [[{{{2}}}]] |}
liquidThreads [edit]
{| style="text-align:center" |- | colspan="3" style="border:1px solid IndianRed; background-color: NavajoWhite;" |[[{{SUBJECTPAGENAME}}]] |- | colspan="3" style="background-color: AliceBlue;text-align:center;Padding: 2px" |{{sandbox}} |- | style="border:1px solid SteelBlue;background-color: Gainsboro;Padding: 2px" |[http://www.wikieducator.org/User_talk:Jtneill Previous] | style="border:1px solid SteelBlue;background-color: Gainsboro;Padding: 2px" |[[{{NAMESPACE}}:{{PAGENAME}}|Current]] | style="border:1px solid SteelBlue;background-color: Gainsboro;Padding: 2px" |[http://www.mediawiki.org/wiki/Extension_talk:LiquidThreads Next] |}
| User:CQ/Sandbox | ||
| 1 | ||
| Previous | Current | Next |
Bear with me [edit]
I'm creating a Sandbox in the MediaWiki namespace - MediaWiki:Sandbox
{{sandbox}} reports its location. {{liquidThreads}} needs to know where it is also.
1
What we're going to do is create {{custodians}} the plural of {{custodian}} from Wikiversity custodians
We'll start with three of us:
Next we'll make a {{ring}} counter using the #switch parser function.
{{#switch:{{BASEPAGENAME}} |jtneill=1 |CQ=2 |Mu301=3 |}}
It evaluates 2 because it's in my basepage namespace and will be my "phone number" so to speak.
Next we develop a display of the {{ring}} with {{prev}} {{curr}} {{next}} and the message box {{wall}}
| User:CQ/Sandbox | ||
| User talk:CQ/{{wall}} | ||
| {{prev}} curr - 1 jtneill (Talk) – D | P | B | C | {{curr}} curr = 2 CQ (Talk) – D | P | B | C | {{next}} curr + 1 Mu301 (Talk) – D | P | B | C |
{| style="text-align:center" |- | colspan="3" style="border:1px solid IndianRed; background-color: NavajoWhite;" |[[{{SUBJECTPAGENAME}}]] |- | colspan="3" style="background-color: AliceBlue;text-align:center;Padding: 2px" |{{NAMESPACE}}:{{BASEPAGENAME}}/{{tl|wall}} |- | style="border:1px solid SteelBlue;background-color: Gainsboro;Padding: 2px" |{{tl|prev}} curr - 1 {{custodian|jtneill}} | style="border:1px solid SteelBlue;background-color: Gainsboro;Padding: 2px" |{{tl|curr}} curr = 2 {{custodian|CQ}} | style="border:1px solid SteelBlue;background-color: Gainsboro;Padding: 2px" |{{tl|next}} curr + 1 {{custodian|Mu301}} |}
MediaWiki talk:Sandbox will be like a chatroom and beta test area for primative liquidThreads. CQ 06:13, 8 July 2009 (UTC)
Token ring [edit]
Token ring. CQ 06:32, 8 July 2009 (UTC)
{{add}} {{custodian}} to {{custodians}} {{ring}}
{{token}}{{ring}} is the network protocol. You now have the token. Hint: #expr is your friend. • 06:28, 8 July 2009 (UTC)
{{ring}} is now at 2
{{#switch:{{BASEPAGENAME}} |Ring=0 |jtneill=1 |CQ=2 |Mu301=3 |}}
We have what is essentially a bot named User:Ring whose number is 0.
Now we use {{ring}}: 2 to highlight where the {{token}} is in the list:
*{{#ifeq: 0 | {{ring}} | {{custodian|Ring}} | {{custodians}}}} *{{#ifeq: 1 | {{ring}} | {{custodian|jtneill}} | {{custodians}}}} *{{#ifeq: 2 | {{ring}} | {{custodian|CQ}} | {{custodians}}}} *{{#ifeq: 3 | {{ring}} | {{custodian|Mu301}} | {{custodians}}}}
{{token}} will be the output of an indexed hash something like:
{| style="text-align:center" |{{#ifeq: 0 | {{ring}} | {{custodian|Ring}} | {{custodians}}}} |{{#ifeq: 1 | {{ring}} | {{custodian|jtneill}} | {{custodians}}}} |{{#ifeq: 2 | {{ring}} | {{custodian|CQ}} | {{custodians}}}} |{{#ifeq: 3 | {{ring}} | {{custodian|Mu301}} | {{custodians}}}} |}
A raw rendering:
| list | list | CQ (Talk) – D | P | B | C | list |
Then make it prettier and add a date {{queue}}:
{| style="text-align:center" |- | colspan="4" style="border:1px solid IndianRed; background-color: NavajoWhite;" |[[{{SUBJECTPAGENAME}}]] |- | colspan="4" style="background-color: AliceBlue;text-align:center;Padding: 2px" |{{NAMESPACE}}:{{BASEPAGENAME}}/{{SUBPAGENAME}}/{{queue}} |- | style="border:1px solid SteelBlue;background-color: Gainsboro;Padding: 2px" |{{#ifeq: 0 | {{ring}} | {{custodian|Ring}} | {{custodians}}}} | style="border:1px solid SteelBlue;background-color: Gainsboro;Padding: 2px" |{{#ifeq: 1 | {{ring}} | {{custodian|jtneill}} | {{custodians}}}} | style="border:1px solid SteelBlue;background-color: Gainsboro;Padding: 2px" |{{#ifeq: 2 | {{ring}} | {{custodian|CQ}} | {{custodians}}}} | style="border:1px solid SteelBlue;background-color: Gainsboro;Padding: 2px" |{{#ifeq: 3 | {{ring}} | {{custodian|Mu301}} | {{custodians}}}} |}
Which renders:
| User:CQ/Sandbox | |||
| User talk:CQ/Sandbox/22 May 2013 | |||
| list | list | CQ (Talk) – D | P | B | C | list |
Still a lot to do. CQ 15:56, 8 July 2009 (UTC)
- Don't really get us very far. CQ 18:06, 8 July 2009 (UTC)
The list [edit]
Here's a copy of {{custodians}} list
* Cormaggio (Bureaucrat, Custodian) (Created on 15 August 2006 at 08:16) * Sebmol (Bureaucrat, Custodian) (Created on 15 August 2006 at 11:36) * Robert Horning (Custodian) (Created on 15 August 2006 at 14:05) * WiseWoman (Custodian) (Created on 15 August 2006 at 20:58) * Digitalme (Custodian) (Created on 15 August 2006 at 23:16) * Rayc (Custodian) (Created on 16 August 2006 at 15:10) * SB Johnny (Bureaucrat, Custodian) (Created on 16 August 2006 at 17:56) * HappyCamper (Custodian) (Created on 19 August 2006 at 22:56) * Draicone (Custodian) (Created on 13 September 2006 at 06:59) * MichaelBillington (Custodian) (Created on 28 September 2006 at 07:15) * Jade Knight (Custodian) (Created on 7 October 2006 at 06:38) * CQ (Custodian) (Created on 10 October 2006 at 17:18) * J.Steinbock (Custodian) (Created on 22 October 2006 at 14:22) * Leighblackall (Custodian) (Created on 24 October 2006 at 08:50) * Juan de Vojníkov (Custodian) (Created on 30 October 2006 at 13:55) * Mu301 (Bureaucrat, Custodian) (Created on 1 December 2006 at 16:49) * Historybuff (Custodian) (Created on 12 January 2007 at 07:36) * Darklama (Custodian) (Created on 29 January 2007 at 09:48) * McCormack (Custodian) (Created on 7 April 2007 at 09:15) * Adambro (Custodian) (Created on 25 April 2007 at 20:05) * Countrymike (Custodian) (Created on 29 April 2007 at 08:02) * Jtneill (Custodian) (Created on 3 June 2007 at 02:44) * Gbaor (Custodian) (Created on 28 November 2007 at 17:02) * Ottava Rima (Custodian) (Created on 21 August 2008 at 19:48)
Note: {{custodians}} is now simply a link to List users sysops by date ascending. CQ 19:04, 8 July 2009 (UTC)