User:<ip> pages do not get treated the same as User:<username>. We will update user pages so this is the case and make sure the toolbar always shows.
=== Description
T201339 made it possible to navigate to the empty-state of a non-existent/redlink userpage, and therefore reach contributions, talk, etc. However this fix did not solve the issue for **IP** non-existent/redlink userpages. Additionally we would like the toolbar to be shown on non-existent/redlink userpages.
When clicking on an IP redlink, one should land on the empty-state of the IP userpage, rather than being prompted to create it.
=== Design
| redlink userpage | redlink IP userpage
| {F28578846} | {F28578849}
= Acceptance criteria
[] Always show the page actions on a user page (AMC & non-AMC)
[] If a user page exists (e.g. https://en.m.wikipedia.org/wiki/User:127.0.0.1) then the talk/contributions/upload bar and page actions bar shows (AMC & non-AMC)
[] If a user page doesn't exist but is an IP address (e.g. https://en.m.wikipedia.org/wiki/User:66.87.68.6) then the talk/contributions/upload bar shows as well as the page actions and the call to action (to edit the page) is shown. (AMC & non-AMC)
= QA steps:
[] https://en.m.wikipedia.org/wiki/User:127.0.0.1 should show a bar containing "talkThe "User" namespace page on mobile should be verified to continue to work as expected. In general, the flowchart in the comments below outlines the correct behaviour for the user namespace page.
[] Confirm that the page-actions menu is present on user pages for: existing users, non-existing users, contributionsIP users, and "own" user page when logged in.
[] Confirm The "talk contributions uploads" menu appears underneath the page-actions menu.
[] https://en.m.wikipedia.org/wiki/User:66.87.68.6 should showConfirm all user page contain the large gray box saying "No user page..."talk, contributions, create auploads" menu for all user page"s.
[] Confirm that https://en.m.wikipedia.org/wiki/User:66.87.68.6 has a bar containing "talkIP user pages that have not been created, contributions,show the large gray box saying "No user page... uploads"create a page"
[] Confirm that aIP user page with no content shows the page actions bar https://it.m.wikipedia.org/wiki/Utente:Alex_Hollenders that //have// been created, still show the content of the page.
An IP user page is something like: https://en.m.wikipedia.org/wiki/User:127.0.0.1 or https://en.m.wikipedia.org/wiki/User:66.87.68.6
= Developer notes
SkinUserPageHelper::isUserPage is the problem here. It checks if a user exists
User::isIP should also be used here to make the treatment work.
An update to SkinMinerva::isAllowedPageAction will be needed to remove the disabling of page actions