User:Mathglot/sandbox/Test pages

articles worked or working on

 * Secreto a voces
 * link to /test page two
 * Périgueux
 * Valencian - step one - adds a single word ==Introduction== to Valencian rev 675483550 of 23:13, 9 August 2015 to set off a new section
 * Valencian - step two - adds additional content to the lead, summarizing the article
 * Valenican - step three - Some of the "Introduction" section more properly belongs in other sections
 * California Scene Painting
 * Aleshia Brevard

Customized advisories
Hello, I'm Mathglot. Your recent edit to the page Article appears to have added incorrect information, so I have removed it for now. If you believe the information was correct, please cite a reliable source or discuss your change on the article's talk page. If you think I made a mistake, or if you have any questions, you can leave me a message on my talk page. Thank you.

Invocation of subpage with conditional test in it
Now here, we're gonna transclude (not link to),. Pay particular attention to the answer to question #3, which presumably is different when transcluded onto this page, than when examined directly on the subpage:

Do it!!

It's done!

Undesireable transclusion

 * /Sociology Header noinclude thing

Conditional transclusion
Get subpage Transclusion test one:  End of transclusion test one.

Template Help-me indentation bug
Disabled with nowiki:

Uw-notenglish
Welcome, and thank you for contributing the page Article-name to Wikipedia. While you have added the page to the English version of Wikipedia, the article is not in English. We invite you to translate it into English. It has been listed at Pages Needing Translation, but if it is not translated within two weeks, the article will be listed for deletion. Wilkommen, Bienvenue, Welcome!

Some section header here

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer eu diam vel erat vehicula auctor at tristique arcu. Sed blandit, arcu vitae aliquam cursus, tellus leo pellentesque eros, et lacinia erat nibh a ante. Nam eleifend congue aliquam. Nunc ornare quam at turpis maximus, vel faucibus ex vestibulum. Duis ac sapien condimentum, congue risus in, suscipit arcu. Aenean vel arcu risus. Sed ultrices consectetur sapien ut euismod. Nunc tempus euismod urna, ac fringilla sem condimentum volutpat. Sed tincidunt non lorem id sagittis. Etiam rhoncus ut neque sit amet tincidunt. Integer ut aliquet nisl, et ultricies orci. Integer sit amet velit purus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Sed consequat accumsan nisi, eu facilisis odio pulvinar sed. In hac habitasse platea dictumst. Aliquam vitae molestie elit. Nunc rhoncus augue et mollis cursus. Cras ut porttitor mauris, ut consequat massa. Ut aliquet iaculis eros in luctus.

Nopnt param

The 'nopnt' param seems to have no effect:

Welcome, and thank you for contributing the page Article-name to Wikipedia. While you have added the page to the English version of Wikipedia, the article is not in English. We invite you to translate it into English. Pages in foreign languages will not be kept here, and may be deleted if they are not translated into English. Wilkommen, Bienvenue, Welcome!

Template:Move notice test
This section and the one below it are here to provide test cases for testing the template ../Templates/Template:move notice. In brief, this template is for notifying users about a discussion about a pending move, analogous to the way Afd notice is used for deletion discussion notification. See the template doc for full details. Several test cases below show results of subst'ing the template, with various combinations of args:


 * No args - what happens?

The test below is the result of:

Move notice for ARTICLE NAME
A discussion is taking place as to whether the article ARTICLE NAME should be renamed TARGET NAME according to Wikipedia's policies and guidelines.

The article will be discussed at the article's talk page until a consensus is reached, and anyone is welcome to contribute to the discussion. The nomination will explain the policies and guidelines which are of concern. The discussion focuses on high-quality evidence and our policies and guidelines. Please read the article titling policy and the guideline regarding primary topics before participating in the discussion.

Users may edit the article during the discussion. However, do not remove the requested move notice from the top of the article. Mathglot (talk) 02:57, 29 October 2018 (UTC)

✅
 * Results and feedback:
 * What should happen? maybe the no-arg case should pop up a big red warning, like you see in some templates, when you use them incorrectly.


 * One arg - just the existing ("from") article name

The test below is the result of:
 * Sciences Po ~ :

Move notice for Sciences Po
A discussion is taking place as to whether the article Sciences Po should be renamed TARGET NAME according to Wikipedia's policies and guidelines.

The article will be discussed at the article's talk page until a consensus is reached, and anyone is welcome to contribute to the discussion. The nomination will explain the policies and guidelines which are of concern. The discussion focuses on high-quality evidence and our policies and guidelines. Please read the article titling policy and the guideline regarding primary topics before participating in the discussion.

Users may edit the article during the discussion. However, do not remove the requested move notice from the top of the article. Mathglot (talk) 02:57, 29 October 2018 (UTC)

✅
 * Results and feedback:
 * maybe this case should pop up a gentle (non-red?) warning, prompting them to add a TARGET page? Or not...


 * Two args - from & to

The test below is the result of:
 * Sciences Po ~ :

Move notice for Sciences Po
A discussion is taking place as to whether the article Sciences Po should be renamed Institut d'Études Politiques de Paris according to Wikipedia's policies and guidelines.

The article will be discussed at the article's talk page until a consensus is reached, and anyone is welcome to contribute to the discussion. The nomination will explain the policies and guidelines which are of concern. The discussion focuses on high-quality evidence and our policies and guidelines. Please read the article titling policy and the guideline regarding primary topics before participating in the discussion.

Users may edit the article during the discussion. However, do not remove the requested move notice from the top of the article. Mathglot (talk) 02:57, 29 October 2018 (UTC)

✅
 * Results and feedback:
 * this is the canonical usage example. Seems to work fine.

H2 header for this test

 * Three args - from & to, and header=3

The test below is the result of:
 * Sciences Po ~ :

Move notice for Sciences Po
A discussion is taking place as to whether the article Sciences Po should be renamed Institut d'Études Politiques de Paris according to Wikipedia's policies and guidelines.

The article will be discussed at the article's talk page until a consensus is reached, and anyone is welcome to contribute to the discussion. The nomination will explain the policies and guidelines which are of concern. The discussion focuses on high-quality evidence and our policies and guidelines. Please read the article titling policy and the guideline regarding primary topics before participating in the discussion.

Users may edit the article during the discussion. However, do not remove the requested move notice from the top of the article. Mathglot (talk) 02:57, 29 October 2018 (UTC)

✅
 * Results and feedback:
 * inclusion of the 'header=3' param has successfully demoted the header as desired.

WikiEd assignment
Testing for User:Mathglot/sandbox/Templates/Template:WikiEd assignment:

Invoke as


 * Example using  :


 * Example using  :
 * Note: normally this should be subst'd, or the value will change with time:


 * Example with no "term" param (should be same as with empty "term" param, and default to current year):
 * Note: normally this should be subst'd, or the value will change with time:

Example 1: no-collapse
Tests for ../Templates/Template:WikiEd banner shell:

Using:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt consequat nulla, non posuere sapien accumsan id. Proin et neque venenatis, auctor ante eu, volutpat risus. Phasellus faucibus porta posuere. Fusce faucibus turpis in pharetra eleifend. Vestibulum a facilisis metus, nec interdum nibh. Nunc congue erat id dignissim sagittis. Mauris vitae egestas lacus.

Donec condimentum orci facilisis augue ultricies scelerisque. Etiam quis lectus a ante ornare laoreet non sit amet nunc. Aenean pretium ut enim eu suscipit. Praesent eu viverra tortor, eu iaculis metus. Morbi tellus justo, gravida eu velit nec, dignissim iaculis mauris. Praesent convallis mauris vel dictum vehicula. Pellentesque vitae tellus purus.

Example 2: collapsed=yes
Tests for ../Templates/Template:WikiEd banner shell:

Using:
 * (remainder is as in Example 1 above)

Sed tellus est, pulvinar sit amet mi eu, feugiat porta lacus. Pellentesque nisl nisl, aliquam vel purus a, imperdiet lobortis est. Vestibulum eu condimentum justo, non accumsan ligula. Nam risus mauris, tincidunt ut magna vitae, luctus cursus sapien. Suspendisse congue, lorem ut placerat iaculis, ipsum velit convallis dui, non euismod eros ex sed mauris. Morbi quis viverra sapien, vel mattis dolor. Cras non dui mi. Aliquam ante tellus, dapibus id ante ut, sollicitudin luctus ante.

Dashboard.wikiedu.org assignment "is or was"
Testing template ../Templates/Dashboard.wikiedu.org assignment, which attempts to generate the correct tense verb for the combination of start_date, end_date, and term. (Term currently not included; will require some string processing.)

Note that "empty" param cases not written yet; e.g., start_date as opposed to no start_date param at all.

no start or end_date
No start or end_date usually means in the past, as the dashboard automatically assigns both; missing params (especially if  is present) probably means someone removed start and end_date and subsituted term for a completed course).

start_date, no end_date
The no end_date case wasn't tested for; this is an easy fix.

start_date, invalid end_date
Note: This test case generates a red template error  " " if an invalid date like '2017-13-32' is passed to it:

As of rev 915273391 an invalid date generates "is or was" instead of a template error. Although since the assignment templates are generated off the wiki ed dashboard, it may be overkill to explicitly test for invalid dates.

Conclusions
Works well enough for what it's designed for. Occurs to me now, that the concept may have utility beyond this one template. Rather than includeing the parser code to test for present/past dates here, there should be a new Template:Is or was (and Template:Are or were) that take some kind of date param, and isolate all the parser code there. Then, templates like Dashboard.wikiedu.org assignment can merely invoke it (as, ) which keeps the code simpler in the Wiki Ed Assignment template, as well as making the functionality more generally available to others.

In fact, there should be two: a Template:Is past which returns bool ('1' means argument passed was in the past), and then one or more templates that transclude it, so that Template:Is or was would invoke 'Is past' and then generate the proper string.

Themself
Test cases for ../Templates/Template:Themself.

F


 * PamD wrote it.
 * Flyer22 Reborn wrote it.
 * Flyer22 Reborn wrote it.
 * Flyer22 Reborn wrote it.

M


 * Bradv wrote it.
 * NealN wrote it.
 * NealN wrote it.
 * NealN wrote it.

no choice


 * Mathglot wrote it.
 * Fae wrote it.
 * Funcrunch wrote it.
 * Fae wrote it.
 * Funcrunch wrote it.
 * Funcrunch wrote it.

To USD round
Test cases for ../Templates/To USD round.

v1 test: compare To USD and sigfig with 'To USD round' v1 (copy of orig, stripped of arg3 'round'):
 * Expected: the two second-level bullets in each of these should be identical:
 * R$ 680 million
 * To USD: R$680 million.
 * Tplt:.
 * R$ 680 million
 * To USD: R$680 million.
 * algo:
 * Tplt:
 * R$ 680 million ($)
 * algo: R$680 million ($)
 * algo2: R$680 million ($)
 * Tplt:

Examples:
 * displays . That is, 5200 Mexican pesos would exchange to roughly  US dollars (to two signficant digits) at the 2018 exchange rate.
 * also displays.
 * displays.
 * displays.
 * displays 0.
 * displays since data for 2009 has not yet been defined. It will add the page to Category:Pages using an undefined year in


 * displays . # Some combos make no sense; USD doesn't have tenths of a cent.
 * displays . # Some combos make no sense; USD doesn't have tenths of a cent.
 * displays . # Some combos make no sense; USD doesn't have tenths of a cent.
 * displays . # Some combos make no sense; USD doesn't have tenths of a cent.
 * displays . # Some combos make no sense; USD doesn't have tenths of a cent.

Portuguese name
Before even getting into the new version, the existing version seems to be screwed up. It currently has an ifexpr on param one, but the doc lists it as required. OTOH, the ifexpr only moderates what the display of maternal name renders as, whereas the preceding string, the first or maternal family name is... is hard-coded and not dependent on the ifexpr, as it should be. Some tests:

More citations needed

 * More citations needed (live)

Live

 * More citations needed section (live)

Copy of rev 956943948
More citations needed (pointing to Mathglot/sandbox,a copy of Template rev 956943948 (Moxy's version of 04:51, May 16, 2020 )

Copy of rev 696856250 from 2015
More citations needed (pointing to Mathglot/sandbox, a copy of Template rev 696856250 (SMcCandlish version of 12:11, December 26, 2015 )

Further ill



 * vertical-align options










 * Skipped arg because one or more wikis have the same name as en-wiki would



t.b.a.
 * Skipped arg because one or more wikis have the same name as each other, but diff than en-wiki would

t.b.a.
 * Two interwikis with diff names from each other, and from English name

Expected: red link, + 3 interwikis with different target names
 * Different names in three interwikis, no English article

Expected: blue link, + 2 interwikis with different target names
 * Different names in two interwikis, English term is a redirect











Expected: should give
 * Missing page name

Expected: should give
 * Missing interlanguage link

Expected: Paris –  (blue link on en-wiki only; no interlanguage links)
 * Article exists

Expected: local link is blue; interwikis visible and work as usual
 * Redirect exists, article doesn't

dablinks mockup
Here's a real dablinks for comparison:

Dablinks using its ambox code, and borrowing from Expand language for the collapse part: 1 and 2 are in there (like Expand language, but that must be for child templates) but don't do anything:

Here's an inline Ambox:

Copied the Ambox to new template /Templates/Dablinks. Here are two calls to it:

Test links from War of 1812:

Expected in this version: the show/hide link shows up again, and boilerplate 'Foo', but no links shown. Test links from War of 1812:

Test links from Khan Kandi, Germi:

Draft template Uw-gentle-medrs test

 * Information.svg Hi Mathglot/sandbox, I'm Mathglot. Thanks for your contributions to Wikipedia. I noticed that you recently made additions to articles  where you added a citation to a source.  Thank you for respecting Wikipedia's policy on WP:Verifiability and for using citations!  Unfortunately, in articles related to medical topics the standard for content and sourcing is even higher than for articles in general, and the references you added did not meet that standard, and may have been removed.  Please have a look at WP:MEDRS to learn about the quality standards for medical sourcing.  You might also want to take a look at WP:WikiProject Medicine. If you have any questions related to sourcing of medical issues, you can ask at the WikiProject Medicine Talk page.
 * Information.svg Hi Mathglot/sandbox, I'm Mathglot. Thanks for your contributions to Wikipedia. I noticed that you recently made additions to articles  where you added a citation to a source.  Thank you for respecting Wikipedia's policy on WP:Verifiability and for using citations!  Unfortunately, in articles related to medical topics the standard for content and sourcing is even higher than for articles in general, and the references you added did not meet that standard, and may have been removed.  Please have a look at WP:MEDRS to learn about the quality standards for medical sourcing.  You might also want to take a look at WP:WikiProject Medicine. If you have any questions related to sourcing of medical issues, you can ask at the WikiProject Medicine Talk page.


 * 1) Vulcan anesthesiology
 * Information.svg Hi Mathglot/sandbox, I'm Mathglot. Thanks for your contributions to Wikipedia. I noticed that you recently made additions to articles  where you added a citation to a source.  Thank you for respecting Wikipedia's policy on WP:Verifiability and for using citations!  Unfortunately, in articles related to medical topics the standard for content and sourcing is even higher than for articles in general, and the references you added did not meet that standard, and may have been removed.  Please have a look at WP:MEDRS to learn about the quality standards for medical sourcing.  You might also want to take a look at WP:WikiProject Medicine. If you have any questions related to sourcing of medical issues, you can ask at the WikiProject Medicine Talk page.
 * 1) Vulcan anesthesiology
 * Information.svg Hi Mathglot/sandbox, I'm Mathglot. Thanks for your contributions to Wikipedia. I noticed that you recently made additions to articles  where you added a citation to a source.  Thank you for respecting Wikipedia's policy on WP:Verifiability and for using citations!  Unfortunately, in articles related to medical topics the standard for content and sourcing is even higher than for articles in general, and the references you added did not meet that standard, and may have been removed.  Please have a look at WP:MEDRS to learn about the quality standards for medical sourcing.  You might also want to take a look at WP:WikiProject Medicine. If you have any questions related to sourcing of medical issues, you can ask at the WikiProject Medicine Talk page.

Expand language display customization

 * /Expand language display customization, ideas and proof of concept after this Tfd.

afd top box
no arg (Afd top box):

arg but no article (Afd top box|art=fofofofofo):

arg never nominated (Afd top box|art=World War II):

arg=Jimmy Wales (Afd top box|art=Jimmy Wales):

arg = redir (Afd top box|art=RBG):

Municipalities of Alberta
Performance test at the page below /Municipalities of Alberta test Mathglot (talk) 08:41, 31 January 2022 (UTC)

Str rep
/Dogs chase cats, tester for str rep stuff.

FAC page rev. 1184648286
The link below leads to a copy of Featured article candidates rev. 1184648286 of 19:39, 11 November 2023:


 * /FAC rev. 1184648286

FAC page load time proposal
/FAC page load time proposal

Sfnlink test pages

 * /LDR with nested sfn
 * /LDR with nested sfn 2
 * /LDR markup sfn 2
 * /LDR markup sfnlink 2