Jump to content

User:SamuelRiv/sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Sandboxin': harvnb-within-cite encyclopedia seems to throw no errors
FTN front page info 14 Oct 2024: one missing from correct ping
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{User sandbox}}
{{User sandbox}}
<!-- EDIT BELOW THIS LINE -->
<!-- EDIT BELOW THIS LINE -->

== Talk page stuff ==
=== FTN front page info 14 Oct 2024 ===

From [[WP:Fringe theories noticeboard]], as relates to an ongoing discussion at [[Wikipedia:Village_pump_(policy)#Fringe_Theories_Noticeboard,_religious_topics,_and_WP:CANVAS]]

*Threads that do not ping involved users
::Eyes needed on Genesis creation narrative: 9/12
::Draft about a fringe writer, not sure it can be saved: 9/26
::Wikipedia:Articles for deletion/Seed oil misinformation: 10/2
:::Seed oils: 10/2 (counted as one with above thread)
::Quirinius: 10/4
*Threads that correctly ping involved users
::Unidentified Anomalous Phenomena Disclosure Act, NPOV, FRINGE and UNDUE: 9/16
::Edgar Cayce: 9/17
::Frankism: 10/2
::"Historical race concepts" sidebar: 10/6
::Hypnotherapy: not very good or just misunderstood?: 10/8
::Great ape language
*Uncounted threads:
::Tukdam: 8/30 (should ping maybe, and uncertain if they do)
::2024-09 Yuri Bezmenov: 10/3 (asked help but no talk dispute)
::Can anyone get Newspapers.com access restored to Wikimedia Library (unrelated)
::Alaska Triangle (deleted; 2007)

In all, 6 threads on the current front page of FTN apparently notify involved editors correctly, while 4 threads do not.


== Sandboxin' ==
== Sandboxin' ==

{{Purge|Purge this page's server cache.}}


<!-- COMMENT OUT FOR NOW, LETTING PEOPLE IN TALK PAGE SEE MY WORK:

{{#categorytree:Grover_Cleveland}}

=== test span templates ===
testing {{citation needed span |tl cns |date=February 2020}} right here.

Doing the same with my opener: {{User:SamuelRiv/DraftTemplate2}}followed by closer{{User:SamuelRiv/DraftTemplate3}} and praying. (It worked the first time?)

Ok, VE is very very clever and sees the opener-closer template as a single editable template box. Let's try paragraphs:

{{User:SamuelRiv/DraftTemplate2}}When in the course

Of human events
Do I die?{{User:SamuelRiv/DraftTemplate3}}

Paragraphs don't work with spans and were also interesting. See for cns:

{{citation needed span|When cns succeeds

Or does it fail? Count the ways:
#first way
#no way
#highway
What more to say?|date=March 2020}}

And then let's try subst on my templates: opener <span class="cleanup-needed-content" style="padding-left:0.1em; padding-right:0.1em; color:var( --color-emphasized, #595959 ); border:1px solid #DDD;">followed by closer<nowiki></nowiki></span><!--

-->


<!--
{{category handler
|template=[[Category:Templates needing substitution checking]]
|nocat=
}}<!-

->{{Category handler
|main={{Fix/category
|cat-date=Category:Articles with unsourced statements
|cat=[[Category:All articles with unsourced statements]]
|cat-date2=
|cat2=
|cat-date3=
|cat3=
|date=
}}
|template={{#if:|{{#ifeq:{{{name}}}|{{ROOTPAGENAME}}||{{#if:||[[Category:Templates including undated clean-up tags]]}}}}}}
|subpage=no
}}<!-

->{{#if:
|
|<sup class="noprint Inline-Template Template-Fact" style="margin-left:0.1em; white-space:nowrap;">&#91;<i>{{#if:
|{{{pre-text}}}&#32;
}}[[Wikipedia:Cleanup|<span title="{{#invoke:decodeEncode|encode|s=Wikipedia:Cleanup {{#if:|({{{date}}})}}}}">cleanup needed (N.I.O.)</span>]]{{#if:
|&#32;{{{post-text}}}
}}</i>&#93;</sup>
}}<!--

|link=Wikipedia:Citation needed
|text=citation needed
|class=Template-Fact
|span-class=citation-needed-content
|title={{delink|{{{reason|This claim needs references to reliable sources.}}}}}
|date={{{date|}}}
|cat=[[Category:All articles with unsourced statements]]
|cat-date=Category:Articles with unsourced statements}}{{#ifeq:{{NAMESPACE}}|{{<includeonly>subst:</includeonly>NAMESPACE}}|<includeonly>[[Category:Pages with incorrectly substituted templates]]</includeonly>|}}
{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages containing citation needed template with unsupported parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Citation needed span]] with unknown parameter "_VALUE_"|ignoreblank=y |1 | date | reason | text }}}}

--> <!--and see?

And also subst on cns {{Citation needed span|for this text|date=April 2019}} here.




=== test page html ===
lorem ipsum

lorem ipsum

===template wrapper subst===
{{#invoke:citation/CS1|citation
|CitationClass=report
}}


===Random CS1 tests===

{{#invoke:Template wrapper|wrap
|_template = Cite_tech_report
|_alias-map = legislature:publisher,
|_exclude = article-type, articletype, act-type, number-type, index, number, odf,
|_reuse = title, type, article,
| article = {{#if: | }}
| title = ttl_p
| type = none
| {{#if: 155 | {{#if: ttl_p | type | title }} }} = {{#if: 155 | 155 }} }}

====others para====
* {{cite web |title=titl_para |others=othrs_para |date=2000-12-31 |url=https://google.com}}
*{{cite news |title=titl_para |others=othrs_para |date=2000-12-31 |url=https://google.com}}
*{{cite magazine |title=titl_para |others=othrs_para |date=2000-12-31 |url=https://google.com}}
*{{cite web |author=n.a. |title=blah_titel_blah |others=contr_list_here |date=2000-12-31 |url=https://google.com}}
*{{cite web |title=blah_titel_blah |contributor=nm_cntr_here |date=2000-12-31 |url=https://google.com}}

====formatting to allow title-link and url====
{{Parameter names example|_template=cite_tech_report |author=lfauthor_p |date=1911-08-30 |publisher=pblr_p |url=https://google.com |work=work_p}}

{{Parameter names example|_template=cite_book |author=lfauthor_p |date=1911-08-30 |publisher=pblr_p |url=https://google.com |work=work_p}}

{{Parameter names example|_template=cite_tech_report |chapter=chpr_p |chapter-url=https://france.fr |author=lfauthor_p |date=1911-08-30 |publisher=pblr_p |url=https://google.com |work=work_p}}

{{Parameter names example|_template=cite_tech_report |chapter=chpr_p |chapter-link=France |author=lfauthor_p |date=1911-08-30 |publisher=pblr_p |url=https://google.com |work=work_p}}

===Random tests===
* {{cite web |title=titl_para |others=othrs_para |date=2000-12-31 |url=https://google.com}}
*{{cite news |title=titl_para |others=othrs_para |date=2000-12-31 |url=https://google.com}}
*{{cite magazine |title=titl_para |others=othrs_para |date=2000-12-31 |url=https://google.com}}
*{{cite web |author=n.a. |title=blah_titel_blah |others=contr_list_here |date=2000-12-31 |url=https://google.com}}
*{{cite web |title=blah_titel_blah |contributor=nm_cntr_here |date=2000-12-31 |url=https://google.com}}
:
*{{citation |author=athr_p |title=ttl_p |periodical=priodcl_p |volume=XX |issue=3 |date=2000}}
*{{citation |author=athr_p |title=ttl_p |periodical=priodcl_p |issue=3 |date=2000}}
*{{citation |author=athr_p |title=ttl_p |series=sers_p |journal=jrl_p |volume=XX |issue=3 |date=2000}}
*{{citation |author=athr_p |title=ttl_p |series=sers_p |magazine=mag_p |volume=XX |issue=3 |date=2000}}
*{{citation |author=athr_p |title=ttl_p |series=sers_p |work=wrk_p |volume=XX |issue=3 |date=2000}}
*{{citation |author=athr_p |title=ttl_p |journal=jrl_p |volume=23 |date=2000}}
*{{citation |author=athr_p |title=ttl_p |journal=jrl_p |issue=3 |date=2000}}
*{{citation |author=athr_p |title=ttl_p |work=wrk_p |issue=3 |date=2000}}
*{{citation |author=athr_p |title=ttl_p |work=jrl_p |volume=XX |issue=3 |date=2000}}
*{{cite report |author=athr_p |title=ttl_p |work=jrl_p |volume=XX |issue=3 |date=2000}}
*{{cite_tech_report |author=athr_p |title=ttl_p |work=jrl_p |volume=XX |issue=3 |date=2000}}
*{{citation |author=athr_p |title=ttl_p |series=sers_p |volume=XX |issue=3 |date=2000}}
*{{cite report |author=athr_p |title=ttl_p |series=sers_p |volume=XX |issue=3 |date=2000}}
*{{cite report |author=athr_p |title=ttl_p |journal=jrl_p |volume=XX |issue=3 |date=2000}}
*{{cite_tech_report |author=athr_p |title=ttl_p |journal=jrl_p |volume=XX |issue=3 |date=2000}}
:
*{{cite_thesis |author=athr_p |title=ttl_p |date=2000 |number=155 |docket=208837 |id=10}}
*{{cite_thesis|author=athr_p |title=ttl_p |date=2000 |docket=208837 |id=10}}
*{{cite_thesis|author=athr_p |title=ttl_p |date=2000 |number=155 |id=10}}
*{{cite_thesis|author=athr_p |title=ttl_p |date=2000 |number=155 |docket=208837}}
:
*{{cite_report |author=athr_p |title=ttl_p |date=2000 |number=155 |docket=208837 |id=10}}
*{{cite_report |author=athr_p |title=ttl_p |date=2000 |docket=208837 |id=10}}
*{{cite_report |author=athr_p |title=ttl_p |date=2000 |number=155 |id=10}}
*{{cite_report |author=athr_p |title=ttl_p |date=2000 |number=155 |docket=208837}}
:docket is not param in cite_tech_report
*{{cite_tech_report |author=athr_p |title=ttl_p |date=2000 |number=155 |docket=208837 |id=10}}
*{{cite_tech_report |author=athr_p |title=ttl_p |date=2000 |id=10}}
*{{cite_tech_report |author=athr_p |title=ttl_p |date=2000 |number=155 |id=10}}
*{{cite_tech_report |author=athr_p |title=ttl_p |date=2000 |number=155 }}

===Draft template===
*{{cite tech report |author=athr_p |title=ttl_p |type=epyt_p |publisher=pblr_p |date=2000}}
*{{cite tech report |author=athr_p |title=ttl_p |type=epyt_p |publisher=pblr_p |date=2000 |type= }}
*{{cite tech report |author=athr_p |title=ttl_p |type=epyt_p |publisher=pblr_p |date=2000 |title= }}


<code><nowiki> {{subst:Parameters|code|base={{subst:BASEPAGENAME}}}} </nowiki></code>

; tl-Cite_act rework
{{Parameter names example|_template=User:SamuelRiv/DraftTemplate|odf|title|trans-title|script-title|legislature|article|article-type|articletype|type|index|number|date|year|content|span-class|citation|dimensions|medium|1}}

{{test case|_template=Cite_techreport|_template2=Cite_report|_template3=Cite_document|_template4=Cite_web|_template5=Cite_book|_template6=Cite_act|_showcode=true
|chapter=Ch7 |title=NoTitle |author=William Fakester |date=May 1999 |publisher=FakePress Ltd. |volume=XXIII |issue=31 |id=THX-1138 |type=Engraving |url=https://www.google.com |at=verso}}

{{test case |_template1=Cite_act |_template2=User:SamuelRiv/DraftTemplate |article=II |article-type=Annex |date=20 March 2000 |index=2000/13/EC |legislature=The European Parliament |pages=29–42 |title=The approximation of the laws of the Member States... |type=Directive |url=http://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CELEX:32000L0013&from=EN}}

<!--
{{test case|_template1=Cite_techreport|_showcode=true|_showtemplate2=no
|title=NoTitle |author=Bill Fakester |date=1999 |publisher=FakePress |volume=XXIII |type=Engraving |at=verso}}

{{test case|_template=Cite_report|_showcode=true|_showtemplate2=no
|title=NoTitle |author=Bill Fakester |date=1999 |publisher=FakePress |volume=XXIII |type=Engraving |at=verso}}

{{test case|_template=Cite_document|_showcode=true|_showtemplate2=no
|title=NoTitle |author=Bill Fakester |date=1999 |publisher=FakePress |volume=XXIII |type=Engraving |at=verso}}

{{test case|_template=Cite_web|_showcode=true|_showtemplate2=no
|title=NoTitle |author=Bill Fakester |date=1999 |publisher=FakePress |volume=XXIII |type=Engraving |url=https://www.google.com |at=verso}}

{{test case|_template=Cite_act|_showcode=true|_showtemplate2=no
|title=NoTitle |author=Bill Fakester |date=1999 |publisher=FakePress |volume=XXIII |type=Engraving |at=verso}}
-->

; Citation span
<!--
{{tlp|User:SamuelRiv/DraftTemplate |content{{=}}<var>content</var> |span-class{{=}}<var>span-class</var> |citation{{=}}<var>citation</var> |dimensions{{=}}<var>dimensions</var> |type{{=}}<var>type</var> |medium{{=}}<var>medium</var> |1{{=}}<var>1</var>}}

{{Parameter names example|_template=User:SamuelRiv/DraftTemplate|content|span-class|citation|dimensions|type|medium|1}}


* Plain text: {{User:SamuelRiv/DraftTemplate|content=lorem ipsum blah blah|span-class=spanclass here|citation=ref_text_cit}} Aftertext.
* Ref tags: {{User:SamuelRiv/DraftTemplate|content=lorem ipsum blah blah|span-class=spanclass here|citation=<ref>noted below</ref>}}Aftertextnospace.
* tag w {{tl|r}} use: {{User:SamuelRiv/DraftTemplate|content=lorem ipsum blah blah|span-class=spanclass here|citation={{r |RefName}} }}; {{User:SamuelRiv/DraftTemplate|content=lorem ipsum blah blah|span-class=spanclass here|citation={{r |n=RefName5 |p=346 |qp=p |q=Quote from page 346 |a=q}} }} Aftertext.
* ref tag w CS1 (check metadata): {{User:SamuelRiv/DraftTemplate|content=Apples corp blah blah|span-class=spanclass here|citation=<ref>{{cite book |editor-last=Edwards |editor-first=J. |title=Apple collection |date=1900 |publisher=Apple Corp}}</ref>}} Aftertext.
* Nesting tl w plain text: {{User:SamuelRiv/DraftTemplate|content=Outer lorem {{User:SamuelRiv/DraftTemplate|content=Inner lorem ipsum|citation=ref_inner}} ipsum blah blah|citation=ref_outer}} Aftertext.
:* {{User:SamuelRiv/DraftTemplate|content=Outer lorem {{User:SamuelRiv/DraftTemplate|content=Inner lorem ipsum|citation=<ref>inner note</ref>}} ipsum blah blah|citation=<ref>outer note</ref>}} Aftertext.
-->

=== Other templates ===
<!--
{{tl|Remove first word}} (sep = :)

{{Remove first word |ECLI:EU:C:2016:718|sep=:}}
{{Remove first word |ECLI:EU:C:2016:718|sep=:}}

{{markup|
<nowiki>{{Remove first word |ECLI:EU:C:2016:718|sep=:}}</nowiki>|{{Remove first word |ECLI:EU:C:2016:718|sep=:}}}}<!-- Template:Mra -->


<!-- ERROR CHECKING:
<!-- ERROR CHECKING:
Line 12: Line 251:
{{cite journal|author=Bob|title=Blind mice|journal=Big Stuff|date=1900-01-01|issn=((abcd))}}
{{cite journal|author=Bob|title=Blind mice|journal=Big Stuff|date=1900-01-01|issn=((abcd))}}
-->
-->
<!--

;Collections citing:
=== Collections citing ===
<code><nowiki>
<code><nowiki>
{{cite encyclopedia |author=Bob Ross |article=Bobbin' for apples |encyclopedia={{harvnb|Edwards|1900}}}}
{{cite encyclopedia |author=Bob Ross |article=Bobbin' for apples |encyclopedia={{harvnb|Edwards|1900}}}}
... ...
----
{{cite book |editor-last=Edwards |editor-first=J. |title=Apple collection |date=1900 |publisher=Apple Corp}}
{{cite book |editor-last=Edwards |editor-first=J. |title=Apple collection |date=1900 |publisher=Apple Corp}}
</nowiki></code>
</nowiki></code>
Line 23: Line 262:


{{cite book |editor-last=Edwards |editor-first=J. |title=Apple collection |date=1900 |publisher=Apple Corp}}
{{cite book |editor-last=Edwards |editor-first=J. |title=Apple collection |date=1900 |publisher=Apple Corp}}

=== ParserFunction testing: ===
<code><nowiki>
{{#count:'''''stuff to test'''''|''}} --(not supported on en:WP in favor of lua templates)
...
{{#if:true|A|B}} --(non-string stuff supported still)
...
* {{subst:#invoke:String|count|'''''stuff to test'''''|''}} --(subst fails in tl:mra)
</nowiki></code>

{{markup|
<nowiki>
* {{#invoke:String|count|'''stuff to test'''|''}}
* {{#invoke:String|count|'''''stuff to test'''''|''}}
* 4
* {{#if:true|A|B}}
</nowiki>|
* {{#invoke:String|count|'''stuff to test'''|''}}
* {{#invoke:String|count|'''''stuff to test'''''|''}}
* 4
* {{#if:true|A|B}}}}<!-- Template:Mra -->


===Ref list===
{{reflist|refs=
<ref name="RefName">Reference text (0).</ref>
}}


<!--
===Section link fun===
Per [[Wikipedia:Village_pump_(policy)#Letter-like_unicode_characters_in_quotes_and_cites|VP thread]] and previous [[Help:Link]] mayhem, let's try to break more section wikilinking:

===like <nowiki>{{#if{{{{{{omg|1}}}|1}}}|{{{2|}}} }}</nowiki> why?!===
the original template complaint: note that to do the code in the section heading you have to enclose in nowiki tags, which then are thankfully not literal in the section heading

===e.g. 𝑼𝒏𝒊𝒄𝒐𝒅𝒆===
blah
===Letterlike Symbols ℂℹℙℍ℮ℛ ===
yo
===Enclosed Alphanumerics ⒽⒺⓁⓁⓞ===
ccc
=== upside down text ɐᴉpǝdᴉʞᴉM===
dooop
===zalgo e.g. ẓͭa͚͍̓̊͗ͅl̠̺̥̃̒̐ğ̲͖̱̍͊o͍̫̜̒͑͛ ===
There, we'll test this from user page I guess.


Tested on User page:
* [[User:SamuelRiv/sandbox#e.g. 𝑼𝒏𝒊𝒄𝒐𝒅𝒆]]
* [[User:SamuelRiv/sandbox#Enclosed Alphanumerics ⒽⒺⓁⓁⓞ]]
* [[User:SamuelRiv/sandbox#upside down text ɐᴉpǝdᴉʞᴉM]]
* [[User:SamuelRiv/sandbox#zalgo e.g. ẓͭa͚͍̓̊͗ͅl̠̺̥̃̒̐ğ̲͖̱̍͊o͍̫̜̒͑͛]]

These all work fine without need for percent-encoding. Good job WMF. (We didn't test RTL scripts, or RTL scripts in bdi spans, or templated, but whatevs they're probably fine.)

-->

Latest revision as of 16:39, 14 October 2024

Talk page stuff

[edit]

FTN front page info 14 Oct 2024

[edit]

From WP:Fringe theories noticeboard, as relates to an ongoing discussion at Wikipedia:Village_pump_(policy)#Fringe_Theories_Noticeboard,_religious_topics,_and_WP:CANVAS

  • Threads that do not ping involved users
Eyes needed on Genesis creation narrative: 9/12
Draft about a fringe writer, not sure it can be saved: 9/26
Wikipedia:Articles for deletion/Seed oil misinformation: 10/2
Seed oils: 10/2 (counted as one with above thread)
Quirinius: 10/4
  • Threads that correctly ping involved users
Unidentified Anomalous Phenomena Disclosure Act, NPOV, FRINGE and UNDUE: 9/16
Edgar Cayce: 9/17
Frankism: 10/2
"Historical race concepts" sidebar: 10/6
Hypnotherapy: not very good or just misunderstood?: 10/8
Great ape language
  • Uncounted threads:
Tukdam: 8/30 (should ping maybe, and uncertain if they do)
2024-09 Yuri Bezmenov: 10/3 (asked help but no talk dispute)
Can anyone get Newspapers.com access restored to Wikimedia Library (unrelated)
Alaska Triangle (deleted; 2007)

In all, 6 threads on the current front page of FTN apparently notify involved editors correctly, while 4 threads do not.

Sandboxin'

[edit]

Purge this page's server cache.



Citation span

Other templates

[edit]

Ref list

[edit]
Cite error: A list-defined reference named "RefName" is not used in the content (see the help page).