User:Robert W King/Sandbox: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Robert W King
No edit summary
m (Text replacement - "CZ:Constabulary" to "CZ:Moderator Group")
 
(384 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Section 4 - Timeline Table Template (documented in HTML comments) ==
{{AccountNotLive}}
__TOC__
==header thing==


<!-- top of table definition -->
{|width=80% align=center border="0" cellpadding="4" cellspacing="0" style="border-bottom:1px solid #999999; border-top:1px solid #dddddd; border-left:1px solid #aaaaaa; border-right:1px solid #dddddd; margin:0 auto; clear: both;" class="collapsible"  
{|border="1" frame=box rules=none align="right" cellpadding="0" cellspacing="0" width="400" style="margin: 0 0 0 0; background:#e5e5e5;"  
!align=center colspan=3 style="background:#{{{color}}}"| ''Citizendium'' [[CZ:{{{title}}}|{{{title}}}]]
<!-- -->
<!-- Title of table -->
<!-- -->
|align="center" colspan="6" width=100%|History of Computing Timeline
|-
|-
|width=100% colspan="6"|&nbsp;
|style="background:#f5f5f5" align=center colspan=3|{{#if: {{{link1|}}}|{{{link1}}}|}} {{#if: {{{link2|}}}|&#124; {{{link2}}}|}} {{#if: {{{link3|}}}|&#124; {{{link3}}}|}} {{#if: {{{link4|}}}|&#124; {{{link4}}}|}} {{#if: {{{link5|}}}|&#124; {{{link5}}}|}} {{#if: {{{link6|}}}|&#124; {{{link6}}}|}} {{#if: {{{link7|}}}|&#124; {{{link7}}}|}} {{#if: {{{link8|}}}|&#124; {{{link8}}}|}} {{#if: {{{link9|}}}|&#124; {{{link9}}}|}} {{#if: {{{link10|}}}|&#124; {{{link10}}}|}} {{#if: {{{link11|}}}|&#124; {{{link11}}}|}} {{#if: {{{link12|}}}|&#124; {{{link12}}}|}} &#124; [[:Category:{{{title}}}|Other]]{{#if: {{{seealso1|}}}|<br>See also: {{{seealso1}}}|}} {{#if: {{{seealso2|}}}|&#124; {{{seealso2}}}|}} {{#if: {{{seealso3|}}}|&#124; {{{seealso3}}}|}}
|-
|-
|align="center" width=40|+ 
|width=10% align=center style="background:#f5f5f5"|<small>[[CZ:Home|Home]]</small>
|align="center" width=100|?? BC <!-- year -->
|
<!-- -->
{|border="0" align=center cellpadding=3px style="background:#F5F5F5; cell-spacing:2px;"
<!-- Horizontal rule line -->
|align="center" NOWRAP|<small>[[CZ:Getting Started|Getting Started]]</small>
<!-- -->
|align="center" NOWRAP|<small>[[CZ:Organization|Organization]]</small>
|<hr width=40/>
|align="center" NOWRAP|<small>[[CZ:Technical Help|Technical Help]]</small>  
<!-- -->
|align="center" NOWRAP|<small>[[CZ:Content Policy|Content Policy]]</small>
<!-- Event preceeded by a nonbreakingspace -->
|align="center" NOWRAP|<small>[[CZ:Article Lists|Article Lists]]</small>
<!-- -->
|align="left" colspan="3"|&nbsp;Slamis Tablet
|-
|-
<!-- -->
|align="center" NOWRAP|<small>[[CZ:Initiatives|Initiatives]]</small>
<!-- start diagram lines -->
|align="center" NOWRAP|<small>[[CZ:Communication|Communication]]</small>
!style="align: center;"|
|align="center" NOWRAP|<small>[[CZ:Editor Policy|Editor Policy]]</small>
{|border="1" frame=void rules=all width=100% cellpadding="0" cellspacing="0" align="left" style="margin: 0 0 0 0; background:#e5e5e5;"
|align="center" NOWRAP|<small>[[CZ:Editorial Council|Editorial Council]]</small>
|width=50% height=10px|&nbsp;
|align="center" NOWRAP|<small>[[CZ:Moderator Group|Constabulary]]</small>
|width=50%|&nbsp;
|}
|}
|colspan="5" align="center"|
|width=10% align=center style="background:#F5F5F5"|<small>[[Main Page]]</small>
|}
 
==Timeline==
 
{{timeline
|height=5
|title=&nbsp;}}
{{tlevent
|width=250px
|event=This happened (250 pixels wide)
|color=#FFF
}}
{{tlsubevent
|event=something. something. something. something. (350)
|width=350px
|color=#EEEEEE
|height=30px
|margin=40px
}}
{{tlsubevent
|event=something. something. something. something. something. something. something. something. something. something. something. something. something. something. something. something. (500)
|width=500px
|color=#EEEEEE
|height=40px
|margin=40px
}}
{{tlevent
|width=250px
|event=This happened (250 pixels wide)
|color=#FFF
}}
{{tlsubevent
|event=something. something. something. something. something. something. something. something. something. something. something. something. something. something. something. something. (250)
|width=250px
|color=#EEEEEE
|height=30px
|margin=40px
}}
{{tlsubevent
|event=something. something. something. something. something. something. something. something. something. something. something. something. something. something. something. something. (500)
|width=500px
|color=#EEEEEE
|height=150px
|margin=40px
}}
{{tlevent
|width=250px
|event=This other really long thing happened that I can't possibly use to describe in words, other than chicken, chicken, and chicken. (250 pixels wide)
|color=#FFF
}}
{{tlsubevent
|event=something. something. (100)
|width=100px
|color=#EEEEEE
|height=30px
|margin=40px
}}
{{tlsubevent
|event=something. something. something. something. something. something. something. something. something. something. something. something. something. something. something. something. (500)
|width=500px
|color=#EEEEEE
|height=150px
|margin=40px
}}
{{tlevent
|width=250px
|event=This other really long thing happened that I can't possibly use to describe in words, other than chicken, chicken, and chicken. (250 pixels wide)
|color=#FFF
}}
|}
<br/>
<br/>
<br/>
<br/>
<br/>
 
==Sort test==
<div style="background-color:#FFF; width:80%">
<div style="position:relative;
left:50px;
float:left;
width:auto;
background-color:#AAF;"><font style="padding:  2px; margin:2px;">'''5'''</font></div>
<div style="position:relative;
float:left;
left:100px;
width:auto;
background-color:#AFF;"><font style="padding:  2px; margin:2px;">'''4'''</font></div>
<div style="position:relative;
float:left;
left:150px;
width:auto;
background-color:#FAF;"><font style="padding:  2px; margin:2px;">'''3'''</font></div>
<div style="position:relative;
float:left;
left:200px;
width:auto;
background-color:#FFA;"><font style="padding:  2px; margin:2px;">'''2'''</font></div>
<div style="position:relative;
float:left;
left:250px;
width:auto;
background-color:#0FF;"><font style="padding:  2px; margin:2px;">'''1'''</font></div>
<div style="position:relative;
float:left;
left:300px;
width:auto;
background-color:#F0F;"><font style="padding:  2px; margin:2px;">'''0'''</font></div>
 
</div>
 
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
 
==pl test==
{{H:title|Hover|Hover over me!}}
 
==CNW test==
 
{{cnw|[[hydrogen]]}}
 
==U and D test==
 
C{{U|5}}C{{D|5}}3{{U|7}}x{{D|32}}
 
A{{u|b}}c{{d|d}}e{{u|F}}G{{d|H}}
 
==PD table==
 
{|border="1" width=100% style="border:1px solid #FFF;"
|colspan=10 align="center" style="background-color:#FFDAA2;"|<big>'''Unpublished Works'''</big>
|-
|align="center" style="background-color:#FFF1E8;"|Author type
|align="center" style="background-color:#FFF1E8;"|Author status
|align="center" style="background-color:#FFF1E8;"|Date of Death
|align="center" style="background-color:#FFF1E8;"|Created date
|align="center" style="background-color:#FFF1E8;"|Was it Published?
|align="center" style="background-color:#FFF1E8;"|Has Copyright notice?
|align="center" style="background-color:#FFF1E8;"|Is registered?
|align="center" style="background-color:#FFF1E8;"|Is it a Corporate work?
|align="center" style="background-color:#FFF1E8;"|When PD
|align="center" style="background-color:#FFF1E8;"|As of 1 Jan 2008?
|-
|align="center"|Named
|align="center"|Dead
|align="center"|Before 1938
|align="center"|&nbsp;
|align="center"|n/a
|align="center"|n/a
|align="center"|no
|align="center"|no
|align="center"|Death + 70 yrs
|align="center"|yes
|-
|align="center"|<nowiki>--</nowiki>
|align="center"|Dead
|align="center"|Before 1938
|align="center"|Before 1978
|align="center"|After 2002
|align="center"|n/a
|align="center"|no
|align="center"|&nbsp;
|align="center"|Death + 70 years
|align="center"|Verify based on conditions
|-
|align="center"|<nowiki>--</nowiki>
|align="center"|Dead
|align="center"|Death unknown
|align="center"|Before 1888
|align="center"|n/a
|align="center"|n/a
|align="center"|no
|align="center"|&nbsp;
|align="center"|Creation + 120 yrs
|align="center"|yes
|-
|align="center"|Anonymous
|align="center"|unknown
|align="center"|unknown
|align="center"|Before 1888
|align="center"|n/a
|align="center"|n/a
|align="center"|no
|align="center"|no
|align="center"|Creation + 120 yrs
|align="center"|yes
|-
|align="center"|Pseudonymous
|align="center"|unknown
|align="center"|unknown
|align="center"|Before 1888
|align="center"|n/a
|align="center"|n/a
|align="center"|no
|align="center"|no
|align="center"|Creation + 120 yrs
|align="center"|yes
|-
|align="center"|For hire/corporate
|align="center"|unknown
|align="center"|unknown
|align="center"|Before 1888
|align="center"|n/a
|align="center"|n/a
|align="center"|no
|align="center"|'''yes'''
|align="center"|Creation + 120 yrs
|align="center"|yes
|-
|colspan=10 align="center" style="background-color:#FFDAA2;"|<big>'''Published Works'''</big>
|-
|align="center"|<nowiki>--</nowiki>
|align="center"|<nowiki>--</nowiki>
|align="center"|<nowiki>--</nowiki>
|align="center"|<nowiki>--</nowiki>
|align="center"|Before 1923
|align="center"|n/a
|align="center"|&nbsp;
|align="center"|&nbsp;
|align="center"|&nbsp;
|align="center"|yes
|-
|-
|width=40|
|align="center"|<nowiki>--</nowiki>
{|border="1" frame=void rules=all width=100% cellpadding="0" cellspacing="0" align="center" style="margin: 0 0 0 0; background: #e5e5e5;"
|align="center"|<nowiki>--</nowiki>
|width=50% height=40px|&nbsp;
|align="center"|<nowiki>--</nowiki>
|<hr width=100%/>
|align="center"|<nowiki>--</nowiki>
|}
|align="center"|1923 -> 1977
<!-- end diagram lines -->
|align="center"|No CR notice
<!-- -->
|align="center"|&nbsp;
|align="center" width=100|300 BC-500 AD <!-- year -->
|align="center"|&nbsp;
|<hr width=40/>
|align="center"|&nbsp;
<!-- -->
|align="center"|yes
<!-- Event preceeded by a nonbreakingspace -->
|-
<!-- -->
|align="center"|<nowiki>--</nowiki>
|align="left" colspan="3"|&nbsp;Roman Hand Abacus
|align="center"|<nowiki>--</nowiki>
|align="center"|<nowiki>--</nowiki>
|align="center"|<nowiki>--</nowiki>
|align="center"|1978 -> 1-Mar-1989
|align="center"|No CR notice
|align="center"|no
|align="center"|&nbsp;
|align="center"|&nbsp;
|align="center"|yes
|-
|-
<!-- -->
|align="center"|<nowiki>--</nowiki>
<!-- start diagram lines -->
|align="center"|<nowiki>--</nowiki>
!style="align: center;"|
|align="center"|<nowiki>--</nowiki>
{|border="1" frame=void rules=all width=100% cellpadding="0" cellspacing="0" align="left" style="margin: 0 0 0 0; background: #e5e5e5; height=100%;"
|align="center"|<nowiki>--</nowiki>
|width=50% height=10px|&nbsp;
|align="center"|1923 -> 1963
|width=50%|&nbsp;
|align="center"|Yes, not renewed
|}
|align="center"|&nbsp;
|colspan="5" align="center"|
|align="center"|&nbsp;
|align="center"|&nbsp;
|align="center"|yes
|-
|-
|width=40|
|colspan=10 align="center" style="background-color:#FFDAA2;"|<big>'''Works published outside the US'''</big>
{|border="1" frame=void rules=all width=100% cellpadding="0" cellspacing="0" align="center" style="margin: 0 0 0 0; background: #e5e5e5;"
|width=50% height=40px|&nbsp;
|<hr width=100%/>
|}
<!-- end diagram lines -->
<!-- -->
|align="center" width=100|~1200 AD <!-- year -->
|<hr width=40/>
<!-- -->
<!-- Event preceeded by a nonbreakingspace -->
<!-- -->
|align="left" colspan="3"|&nbsp;Modern Chinese Abacus
|-
|-
<!-- -->
|align="center"|<nowiki>--</nowiki>
<!-- start diagram lines -->
|align="center"|<nowiki>--</nowiki>
!style="align: center;"|
|align="center"|<nowiki>--</nowiki>
{|border="1" frame=void rules=all width=100% cellpadding="0" cellspacing="0" align="left" style="margin: 0 0 0 0; background: #e5e5e5;"
|align="center"|<nowiki>--</nowiki>
|width=50% height=10px|&nbsp;
|align="center"|Before 1923
|width=50%|&nbsp;
|align="center"|<nowiki>--</nowiki>
|}
|align="center"|&nbsp;
|colspan="5" align="center"|
|align="center"|&nbsp;
|align="center"|&nbsp;
|align="center"|yes
|-
|-
|width=40|
|align="center"|<nowiki>--</nowiki>
{|border="1" frame=void rules=all width=100% cellpadding="0" cellspacing="0" align="center" style="margin: 0 0 0 0; background: #e5e5e5;"
|align="center"|<nowiki>--</nowiki>
|width=50% height=40px|&nbsp;
|align="center"|<nowiki>--</nowiki>
|<hr width=100%/>
|align="center"|<nowiki>--</nowiki>
|}
|align="center"|1923 -> 1977
<!-- end diagram lines -->
|align="center"|no
<!-- -->
|align="center"|no
|align="center" width=100|?? <!-- year -->
|align="center"|&nbsp;
|<hr width=40/>
|align="center"|If in origin as of 1/1/96
<!-- -->
|align="center"|yes
<!-- Event preceeded by a nonbreakingspace -->
<!-- -->
|align="left" colspan="3"|&nbsp;Leonardo Da Vinci writes the "Codex Madrid"
|-
|-
<!-- -->
|align="center"|<nowiki>--</nowiki>
<!-- start diagram lines -->
|align="center"|<nowiki>--</nowiki>
!style="align: center;"|
|align="center"|<nowiki>--</nowiki>
{|border="1" frame=void rules=all width=100% cellpadding="0" cellspacing="0" align="left" style="margin: 0 0 0 0; background: #e5e5e5;"
|align="center"|<nowiki>--</nowiki>
|width=50% height=10px|&nbsp;
|align="center"|After 1-Jan-1978
|width=50%|&nbsp;
|align="center"|no
|align="center"|no
|align="center"|&nbsp;
|align="center"|If in origin as of 1/1/96
|align="center"|yes
|}
|}
|colspan="5" align="center"|
|}
<!-- bottom of table -->
Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken






==VB Module for Extracting Contributions==
<pre>
Module Module1
    Dim url
    Dim CZ
    Dim wikipath
    Dim totalcdata
    Dim title
    Dim currentid
    Dim articleid
    Dim oldid
    Dim latestid
    Dim diffclass
    Sub Main()
        Dim T
        T = 0
        initCZ()
        title = "fire"
        url = wikipath + "/" + title
        CZ.navigate(url)
        Do Until CZ.readyState = 4
        Loop
        getcdata()
        articleid = Right(Mid(totalcdata, InStr(totalcdata, "wgArticleId"), 24), 9)
        currentid = Right(Mid(totalcdata, InStr(totalcdata, "CurRevisionId"), 26), 9)
        navtorecentdiff()
        Do
            getoldid()
            If latestid <> oldid Then
                getinsdiffchange()
                getdeldiffchange()
                navolddiff()
            End If
        Loop While latestid <> oldid
    End Sub
    Function initCZ()
        wikipath = "http://en.citizendium.org/wiki"
        CZ = CreateObject("InternetExplorer.Application")
        CZ.Toolbar = 0
        CZ.Visible = 1
        CZ.navigate(wikipath)
        Do Until CZ.readyState = 4
        Loop
        Return CZ
    End Function
    Function getcdata()
        Dim tags
        Dim thing
        Dim x
        Dim test
        x = 0
        tags = CZ.document.getElementsbyTagName("script")
        For Each Items In tags
            thing = tags.Item(x).innerHtml
            test = InStr(thing, "CDATA")
            If test <> 0 Then
                totalcdata = thing
                Exit For
            End If
            x = x + 1
        Next
        Return totalcdata
    End Function


    Function navtorecentdiff()
        url = wikipath + "?title=" + title + "&diff=prev&oldid=" + (Right(currentid, 9))
        CZ.navigate(url)
        Do Until CZ.readystate = 4


== test using Template:Timeline_Table ==
        Loop
        Return url
    End Function


{{Timeline_Table
    Function getoldid()
|                tlWidth=350
        Dim tags
|                tlTitle=The History of this Timeline Template
        Dim thing
|                  tlYear=05/29/2007
        Dim x
|                tlEvent=So far at the end of this day, this template still doesn't work correctly; trying to get it so I can add more than one date.
        Dim test
|                  tlYear=09/14/2007
|                tlEvent=still no worky.
}}


        x = 0
        tags = CZ.document.getElementsbyTagName("a")


<br/>
        For Each Items In tags
<br/><br/><br/><br/><br/><br/>
            thing = tags.Item(x).outerHtml
            test = InStr(thing, "oldid")
            If test <> 0 Then
                latestid = oldid
                oldid = Mid(thing, test + 6, 9)
                Exit For
            End If
            x = x + 1
        Next


==CSS Test==
        Return oldid
    End Function


    Function navolddiff()
        url = wikipath + "?title=" + title + "&diff=prev&oldid=" + oldid
        CZ.navigate(url)
        Do Until CZ.readystate = 4


<s>test</s>
        Loop
        Return url


@import url(/wiki?title=User:Robert_W_King/monobook.css);
    End Function


==New thing==
    Function getinsdiffchange()
{{Recursive
        Dim tags
|year1=1900
        Dim thing
|event1=something.
        Dim x
|year2=1901
        Dim test
|event2=some.
        Dim totalwrite
|year3=1902
|event3=sometime.
|year4=1903
|event4=somebody.
}}


        x = 0
        tags = CZ.document.getElementsbyTagName("ins")


==Test==
        For Each Items In tags
            thing = tags.Item(x).innerHtml
            test = InStr(thing, "class=diffchange")
            If thing <> Nothing Then
                diffclass = diffclass + "+" + "'" + thing + "'" + "; "
            End If
            x = x + 1
        Next
        totalwrite = title + " | " + articleid + " | " + latestid + " | " + diffclass + vbCrLf
        IO.File.AppendAllText(("c:\" + title + "_insdiffchange.txt"), totalwrite)
        diffclass = Nothing
        Return diffclass
    End Function


<div align="left" border="0" style="background-color: #cccccc; margin:0.5em; position:relative;display:table;">
    Function getdeldiffchange()
{|class=noprint width="100%" border="1" cellpadding="1" cellspacing="0" style="background:#ffffff;display:table;"
        Dim tags
|1||2||3||4||5||width=25px align=center bgcolor="#cccccc" style="white-space: nowrap; border-bottom:2px solid #eeeeee; border-top:2px solid #dddddd; border-right:2px solid #dddddd; border-left:2px solid #bbbbbb; position:relative; display:table;"|{{click|image=Subpages.png|link=CZ:Subpage Pilot |width=17px|height=17px}}
        Dim thing
|style="background-color: #FFFFff; border-bottom:2px solid #eeeeee;"|&nbsp;
        Dim x
|-
        Dim test
|colspan=20 style="padding: 5px 5px 5px 5px; background:#C4D2DF"|
        Dim totalwrite
{| height=25px align="right" border="0" cellpadding="2" cellspacing="0"
|{{clickurl|image=Print button.png|link=http://en.citizendium.org/wiki?title={{FULLPAGENAMEE}}&printable=yes|width=17px|height=17px}}
|{{click|image=Metadata.png|link=Template:{{BASEPAGENAME}}/Metadata|width=17px|height=17px}}
|{{click|image=Approval button.png|link={{BASEPAGENAME}}/Approval |width=17px|height=17px}}
|{{click|image=Unused button.png|link={{BASEPAGENAME}}/Unused|width=17px|height=17px}}
|}
|}</div>


==more test==
        x = 0
{|cellpadding="0" margin="0 0 0 0" border="0" cellspacing="0"
        tags = CZ.document.getElementsbyTagName("del")
|{{bowlingscoresheet
|rollone=1
|rolltwo=2
|frametotal=3
}}
|{{bowlingscoresheet
|rollone=3
|rolltwo=2
|frametotal=8
}}
|{{bowlingscoresheet
|rollone=9
|rolltwo=/
|frametotal=18
}}


|}
        For Each Items In tags
            thing = tags.Item(x).innerHtml
            test = InStr(thing, "class=diffchange")
            If thing <> Nothing Then
                diffclass = diffclass + "-" + "'" + thing + "'" + "; "
            End If
            x = x + 1
        Next
        totalwrite = title + " | " + articleid + " | " + latestid + " | " + diffclass + vbCrLf
        IO.File.AppendAllText(("c:\" + title + "_deldiffchange.txt"), totalwrite)
        diffclass = Nothing
        Return diffclass
    End Function


End Module
</pre>


==Recursive test==
==Excel VB Script version==
{{date1|test}}
<pre>
{{date3|test1}}
Function grabdiffdata()
{{!test}}
    Dim url
    Dim CZ
    Dim wikipath
    Dim totalcdata
    Dim title
    Dim currentid
    Dim articleid
    Dim oldid
    Dim latestid
    Dim diffclass
    Dim T
    Dim tags
    Dim thing
    Dim x
    Dim test
    Dim totalwrite


==Form test==
    T = 0


'''STEP 1. Create the "metadata template."'''  It's OK, you don't need to know what this means.  :-)
    wikipath = "http://en.citizendium.org/wiki"
<inputbox>
    Set CZ = CreateObject("InternetExplorer.Application")
type=create
    CZ.Toolbar = 0
default=Template:ARTICLE_NAME/Metadata
    CZ.Visible = 1
preload=Template:Blank metadata
    CZ.navigate (wikipath)
editintro='''See [[CZ:The Article Checklist]] and [[Template:Subpages]] for more instructions for filling this out!'''
        Do Until CZ.readyState = 4
buttonlabel=Create metadata template
        Loop
</inputbox>


'''STEP 2.  Create "approval" page.'''
    title = "fire"
<inputbox>
    url = wikipath + "/" + title
type=create
    CZ.navigate (url)
default=ARTICLE_NAME/Approval
        Do Until CZ.readyState = 4
preload=Template:Subpages_name
        Loop
editintro='''Just hit save!'''
buttonlabel=Create "approval" page
</inputbox>


'''STEP 3. Create "Talk" page.'''
    x = 0
<inputbox>
    Set tags = CZ.document.getElementsByTagName("script")
type=create
        For Each Items In tags
default=Talk:ARTICLE_NAME
            thing = tags.Item(x).innerHTML
preload=Template:Subpages_name
            test = InStr(thing, "CDATA")
editintro='''Just hit save!'''
            If test <> 0 Then
buttonlabel=Create "Talk" page
                totalcdata = thing
</inputbox>
                Exit For
            End If
            x = x + 1
        Next


'''STEP 4.  Start the article itself!'''
    articleid = Right(Mid(totalcdata, InStr(totalcdata, "wgArticleId"), 24), 9)
<inputbox>
    currentid = Right(Mid(totalcdata, InStr(totalcdata, "CurRevisionId"), 26), 9)
type=create
default=ARTICLE_NAME
preload=Template:Subpages_name
editintro='''Start your article on the line below <nowiki>{{subpages}}</nowiki>!'''
buttonlabel=Create new article
</inputbox>


    url = wikipath + "?title=" + title + "&diff=prev&oldid=" + (Right(currentid, 9))
    CZ.navigate (url)
        Do Until CZ.readyState = 4
        Loop


==Table==
        Do
{|border="1" width="100%" cellpadding="3" cellspacing="1" style="margin: 0 0 0 0; background:#efefef; wrap=yes"
            x = 0
|-
            Set tags = CZ.document.getElementsByTagName("a")
|align=center|[[Image:User Help Icon.png|25px]]
                For Each Items In tags
|align=center|[[Image:Go-next.png|10px]]
                    thing = tags.Item(x).outerHTML
|width=40%|<font-size=20>'''[[CZ:Media_Assets_Workgroup/Help_requests|I need a seasoned contributor to help me, I have no idea what to do!]]'''</font>
                    test = InStr(thing, "oldid")
|width=10%|
                    If test <> 0 Then
|align=center|[[Image:Crystal Clear action bookmark.png|25px]]
                        latestid = oldid
|align=center|[[Image:Go-next.png|10px]]
                        oldid = Mid(thing, test + 6, 9)
|width=40%|<font-size=20>'''[[Special:Upload|Skip the upload wizard]] (for seasoned contributors)'''</font>
                        Exit For
|-
                    End If
|colspan=7|Where did you obtain this media?
                x = x + 1
|-
                Next
|colspan=2 rowspan=2|I am the author and...
|colspan=5|:*'''[{{fullurl:Special:Upload|uselang=ownwork}} ...wish people to reuse my Work with few or no restrictions]'''&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold; font-style: italic; color: rgb(51, 204, 0);"><small>GOOD TO GO!</small></span>
|-
|colspan=5|:*'''[{{fullurl:Special:Upload|uselang=ownworkpro}} ...want to upload a Work of professional quality or rarity]'''&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold; font-style: italic; color: rgb(51, 204, 0);"><small>GOOD TO GO!</small></span>
|-
|colspan=7|'''Someone else made it...'''
|-
|[[Image:Flickr gamma Trademarked Logo small.png|50px]]
|[[Image:Go-next.png|15px]]
|colspan=5|'''[{{fullurl:Special:Upload|uselang=flickr}} From flickr]'''&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold; font-style: italic; color: rgb(51, 204, 0);"><small>GOOD TO GO!</small></span>
|-
|[[Image:Wikimedia Commons-logo no-text.png|40px]]
|[[Image:Go-next.png|15px]]
|colspan=5| '''[{{fullurl:Special:Upload|uselang=wikimedia}} Wikimedia Commons or Wikipedia]''' - it is an original Work by a Wikimedian, uploaded under their real name&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold; font-style: italic; color: rgb(51, 204, 0);"><small>GOOD TO GO!</small></span>
|-
|colspan=7|'''It came from a publication...'''
|-
|[[Image:Crystal Clear app linneighborhood.png|50px]]
|[[Image:Go-next.png|15px]]
|colspan=5|'''[{{fullurl:Special:Upload|uselang=all-reuseable}} Some other internet source that features re-usable media]'''&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold; font-style: italic; color: rgb(204, 153, 51);"><SMALL>HELP DEVELOP THIS SECTION!</SMALL></span><small><small><small>&nbsp;&nbsp;Go to [[CZ:Media Assets Workgroup/Development]].</small></small></small>
|-
|[[Image:US-GreatSeal-Obverse-sm.png|50px]]
|[[Image:Go-next.png|15px]]
|colspan=5|'''[{{fullurl:Special:Upload|uselang=pd-usgov}} A U.S. government online or print publication]'''&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold; font-style: italic; color: rgb(204, 153, 51);"><SMALL>HELP DEVELOP THIS SECTION!</SMALL></span><small><small><small>&nbsp;&nbsp;Go to [[CZ:Media Assets Workgroup/Development]].</small></small></small>
|-
|[[Image:Book and news.png|50px]]
|[[Image:Go-next.png|15px]]
|colspan=5|'''[{{fullurl:Special:Upload|uselang=pd-old}} Some book, newspaper, or other print publication, as a scan or screen capture]'''&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold; font-style: italic; color: rgb(204, 153, 51);"><SMALL>HELP DEVELOP THIS SECTION!</SMALL></span> <small><small><small>&nbsp;&nbsp;Go to [[CZ:Media Assets Workgroup/Development]].</small></small></small>
|-
|colspan=7|'''I have permission!'''
|-
|[[Image:By-permission-icon.png|50px]]
|[[Image:Go-next.png|15px]]
|colspan=5|'''[{{fullurl:Special:Upload|uselang=bypermission}} From someone who has given me written permission to use their copyrighted material]'''&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold; font-style: italic; color: rgb(51, 204, 0);"><small>GOOD TO GO!</small></span>
|-
|colspan=7|'''I am not sure...'''
|-
|[[Image:PD-questioned-icon.png|53px]]
|[[Image:Go-next.png|15px]]
|colspan=5|'''[{{fullurl:Special:Upload|uselang=pd-old}} Somewhere else, but its copyright has expired, or I think it may have]'''&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: bold; font-style: italic; color: rgb(204, 153, 51);"><SMALL>HELP DEVELOP THIS SECTION!</SMALL></span> <small><small><small>&nbsp;&nbsp;Go to [[CZ:Media Assets Workgroup/Development]].</small></small></small>
|-
|colspan=7|<BR><BIG>'''Other:'''</BIG><BR><BR>
|-
|[[Image:515px-Scales Of Justice.svg.png|50px]]
|[[Image:Go-next.png|15px]]
|colspan=5|'''[{{fullurl:Special:Upload|uselang=fairuse-author}} I am an <U>author</U> and need to make a fair use (fair dealing) claim]'''
|-
|[[Image:515px-Scales Of Justice.svg.png|50px]]
|[[Image:Go-next.png|15px]]
|colspan=5|'''[{{fullurl:Special:Upload|uselang=fairuse-editor}} I am an <U>editor</U> and need to make a fair use (fair dealing) claim]'''
|}
<BR>
<center><small><small><small>See [[CZ:Media|All media policies]]</small></small></small></center>
[[Category:Upload Wizard]]
[[Category:Media Assets Workgroup]]


==Template bonanza==
            If latestid <> oldid Then
                x = 0
                Set tags = CZ.document.getElementsByTagName("ins")
                    For Each Items In tags
                        thing = tags.Item(x).innerHTML
                        test = InStr(thing, "class=diffchange")
                        If thing <> Empty Then
                            diffclass = diffclass + "+" + "'" + thing + "'" + "; "
                        End If
                    x = x + 1
                    Next
                totalwrite = title + " | " + articleid + " | " + latestid + " | " + diffclass + vbCrLf
                'IO.File.AppendAllText(("c:\" + title + "_insdiffchange.txt"), totalwrite)
                diffclass = Empty
       
                x = 0
                Set tags = CZ.document.getElementsByTagName("del")
                For Each Items In tags
                    thing = tags.Item(x).innerHTML
                    test = InStr(thing, "class=diffchange")
                    If thing <> Empty Then
                        diffclass = diffclass + "-" + "'" + thing + "'" + "; "
                    End If
                    x = x + 1
                Next
                totalwrite = title + " | " + articleid + " | " + latestid + " | " + diffclass + vbCrLf
                'IO.File.AppendAllText(("c:\" + title + "_deldiffchange.txt"), totalwrite)
                diffclass = Empty
           
                url = wikipath + "?title=" + title + "&diff=prev&oldid=" + oldid
                CZ.navigate (url)
                    Do Until CZ.readyState = 4
                    Loop
        End If
        Loop While latestid <> oldid
 
End Function
</pre>

Latest revision as of 10:46, 7 March 2024


The account of this former contributor was not re-activated after the server upgrade of March 2022.


header thing

Citizendium [[CZ:{{{title}}}|{{{title}}}]]
| [[:Category:{{{title}}}|Other]]
Home
Getting Started Organization Technical Help Content Policy Article Lists
Initiatives Communication Editor Policy Editorial Council Constabulary
Main Page

Timeline

This happened (250 pixels wide)
something. something. something. something. (350)
something. something. something. something. something. something. something. something. something. something. something. something. something. something. something. something. (500)
This happened (250 pixels wide)
something. something. something. something. something. something. something. something. something. something. something. something. something. something. something. something. (250)
something. something. something. something. something. something. something. something. something. something. something. something. something. something. something. something. (500)
This other really long thing happened that I can't possibly use to describe in words, other than chicken, chicken, and chicken. (250 pixels wide)
something. something. (100)
something. something. something. something. something. something. something. something. something. something. something. something. something. something. something. something. (500)
This other really long thing happened that I can't possibly use to describe in words, other than chicken, chicken, and chicken. (250 pixels wide)






Sort test

5
4
3
2
1
0









pl test

Hover over me!

CNW test

Template:Cnw

U and D test

CCTemplate:D3xTemplate:D

AcTemplate:DeGTemplate:D

PD table

Unpublished Works
Author type Author status Date of Death Created date Was it Published? Has Copyright notice? Is registered? Is it a Corporate work? When PD As of 1 Jan 2008?
Named Dead Before 1938   n/a n/a no no Death + 70 yrs yes
-- Dead Before 1938 Before 1978 After 2002 n/a no   Death + 70 years Verify based on conditions
-- Dead Death unknown Before 1888 n/a n/a no   Creation + 120 yrs yes
Anonymous unknown unknown Before 1888 n/a n/a no no Creation + 120 yrs yes
Pseudonymous unknown unknown Before 1888 n/a n/a no no Creation + 120 yrs yes
For hire/corporate unknown unknown Before 1888 n/a n/a no yes Creation + 120 yrs yes
Published Works
-- -- -- -- Before 1923 n/a       yes
-- -- -- -- 1923 -> 1977 No CR notice       yes
-- -- -- -- 1978 -> 1-Mar-1989 No CR notice no     yes
-- -- -- -- 1923 -> 1963 Yes, not renewed       yes
Works published outside the US
-- -- -- -- Before 1923 --       yes
-- -- -- -- 1923 -> 1977 no no   If in origin as of 1/1/96 yes
-- -- -- -- After 1-Jan-1978 no no   If in origin as of 1/1/96 yes


VB Module for Extracting Contributions

Module Module1

    Dim url
    Dim CZ
    Dim wikipath
    Dim totalcdata
    Dim title
    Dim currentid
    Dim articleid
    Dim oldid
    Dim latestid
    Dim diffclass

    Sub Main()
        Dim T

        T = 0
        initCZ()
        title = "fire"
        url = wikipath + "/" + title
        CZ.navigate(url)
        Do Until CZ.readyState = 4

        Loop
        getcdata()

        articleid = Right(Mid(totalcdata, InStr(totalcdata, "wgArticleId"), 24), 9)
        currentid = Right(Mid(totalcdata, InStr(totalcdata, "CurRevisionId"), 26), 9)

        navtorecentdiff()

        Do
            getoldid()
            If latestid <> oldid Then

                getinsdiffchange()
                getdeldiffchange()
                navolddiff()
            End If

        Loop While latestid <> oldid

    End Sub
    Function initCZ()
        wikipath = "http://en.citizendium.org/wiki"
        CZ = CreateObject("InternetExplorer.Application")
        CZ.Toolbar = 0
        CZ.Visible = 1
        CZ.navigate(wikipath)
        Do Until CZ.readyState = 4
        Loop
        Return CZ
    End Function

    Function getcdata()
        Dim tags
        Dim thing
        Dim x
        Dim test

        x = 0
        tags = CZ.document.getElementsbyTagName("script")

        For Each Items In tags
            thing = tags.Item(x).innerHtml
            test = InStr(thing, "CDATA")
            If test <> 0 Then
                totalcdata = thing
                Exit For
            End If
            x = x + 1
        Next
        Return totalcdata
    End Function

    Function navtorecentdiff()
        url = wikipath + "?title=" + title + "&diff=prev&oldid=" + (Right(currentid, 9))
        CZ.navigate(url)
        Do Until CZ.readystate = 4

        Loop
        Return url
    End Function

    Function getoldid()
        Dim tags
        Dim thing
        Dim x
        Dim test

        x = 0
        tags = CZ.document.getElementsbyTagName("a")

        For Each Items In tags
            thing = tags.Item(x).outerHtml
            test = InStr(thing, "oldid")
            If test <> 0 Then
                latestid = oldid
                oldid = Mid(thing, test + 6, 9)
                Exit For
            End If
            x = x + 1
        Next

        Return oldid
    End Function

    Function navolddiff()
        url = wikipath + "?title=" + title + "&diff=prev&oldid=" + oldid
        CZ.navigate(url)
        Do Until CZ.readystate = 4

        Loop
        Return url

    End Function

    Function getinsdiffchange()
        Dim tags
        Dim thing
        Dim x
        Dim test
        Dim totalwrite

        x = 0
        tags = CZ.document.getElementsbyTagName("ins")

        For Each Items In tags
            thing = tags.Item(x).innerHtml
            test = InStr(thing, "class=diffchange")
            If thing <> Nothing Then
                diffclass = diffclass + "+" + "'" + thing + "'" + "; "
            End If
            x = x + 1
        Next
        totalwrite = title + " | " + articleid + " | " + latestid + " | " + diffclass + vbCrLf
        IO.File.AppendAllText(("c:\" + title + "_insdiffchange.txt"), totalwrite)
        diffclass = Nothing
        Return diffclass
    End Function

    Function getdeldiffchange()
        Dim tags
        Dim thing
        Dim x
        Dim test
        Dim totalwrite

        x = 0
        tags = CZ.document.getElementsbyTagName("del")

        For Each Items In tags
            thing = tags.Item(x).innerHtml
            test = InStr(thing, "class=diffchange")
            If thing <> Nothing Then
                diffclass = diffclass + "-" + "'" + thing + "'" + "; "
            End If
            x = x + 1
        Next
        totalwrite = title + " | " + articleid + " | " + latestid + " | " + diffclass + vbCrLf
        IO.File.AppendAllText(("c:\" + title + "_deldiffchange.txt"), totalwrite)
        diffclass = Nothing
        Return diffclass
    End Function

End Module

Excel VB Script version

Function grabdiffdata()
    Dim url
    Dim CZ
    Dim wikipath
    Dim totalcdata
    Dim title
    Dim currentid
    Dim articleid
    Dim oldid
    Dim latestid
    Dim diffclass
    Dim T
    Dim tags
    Dim thing
    Dim x
    Dim test
    Dim totalwrite

    T = 0

    wikipath = "http://en.citizendium.org/wiki"
    Set CZ = CreateObject("InternetExplorer.Application")
    CZ.Toolbar = 0
    CZ.Visible = 1
    CZ.navigate (wikipath)
        Do Until CZ.readyState = 4
        Loop

    title = "fire"
    url = wikipath + "/" + title
    CZ.navigate (url)
        Do Until CZ.readyState = 4
        Loop

    x = 0
    Set tags = CZ.document.getElementsByTagName("script")
        For Each Items In tags
            thing = tags.Item(x).innerHTML
            test = InStr(thing, "CDATA")
            If test <> 0 Then
                totalcdata = thing
                Exit For
            End If
            x = x + 1
        Next

    articleid = Right(Mid(totalcdata, InStr(totalcdata, "wgArticleId"), 24), 9)
    currentid = Right(Mid(totalcdata, InStr(totalcdata, "CurRevisionId"), 26), 9)

    url = wikipath + "?title=" + title + "&diff=prev&oldid=" + (Right(currentid, 9))
    CZ.navigate (url)
        Do Until CZ.readyState = 4
        Loop

        Do
            x = 0
            Set tags = CZ.document.getElementsByTagName("a")
                For Each Items In tags
                    thing = tags.Item(x).outerHTML
                    test = InStr(thing, "oldid")
                    If test <> 0 Then
                        latestid = oldid
                        oldid = Mid(thing, test + 6, 9)
                        Exit For
                    End If
                x = x + 1
                Next

            If latestid <> oldid Then
                x = 0
                Set tags = CZ.document.getElementsByTagName("ins")
                    For Each Items In tags
                        thing = tags.Item(x).innerHTML
                        test = InStr(thing, "class=diffchange")
                        If thing <> Empty Then
                            diffclass = diffclass + "+" + "'" + thing + "'" + "; "
                        End If
                    x = x + 1
                    Next
                totalwrite = title + " | " + articleid + " | " + latestid + " | " + diffclass + vbCrLf
                'IO.File.AppendAllText(("c:\" + title + "_insdiffchange.txt"), totalwrite)
                diffclass = Empty
        
                x = 0
                Set tags = CZ.document.getElementsByTagName("del")
                For Each Items In tags
                    thing = tags.Item(x).innerHTML
                    test = InStr(thing, "class=diffchange")
                    If thing <> Empty Then
                        diffclass = diffclass + "-" + "'" + thing + "'" + "; "
                    End If
                    x = x + 1
                Next
                totalwrite = title + " | " + articleid + " | " + latestid + " | " + diffclass + vbCrLf
                'IO.File.AppendAllText(("c:\" + title + "_deldiffchange.txt"), totalwrite)
                diffclass = Empty
             
                url = wikipath + "?title=" + title + "&diff=prev&oldid=" + oldid
                CZ.navigate (url)
                    Do Until CZ.readyState = 4
                    Loop
        End If
        Loop While latestid <> oldid
   
End Function