There is also a template for the sharing link. The WikiTree Sourcer extension will generate a citation that includes both that and the template for the record link like this:
Maurice was in a military record on 16 October 1940 in East Hampton, Middlesex, Connecticut, United States.<ref>
'''Military''':
"U.S., World War II Draft Cards Young Men, 1940-1947"<br/>
National Archives at St. Louis; St. Louis, Missouri; Wwii Draft Registration Cards For Connecticut, 10/16/1940-03/31/1947; Record Group: Records of the Selective Service System, 147; Box: 45<br/>
{{Ancestry Sharing|2859905|7b22746f6b656e223a2264465157526f38412b396a7835756741782f346b38356e4150675159314454356d443956677a576e6563593d222c22746f6b656e5f76657273696f6e223a225632227d}} - {{Ancestry Record|2238|11807136}} (accessed 1 April 2023)<br/>
Name: Maurice Joseph Bransfield; Race: White; Age: 34; Relationship to Draftee: Self (Head); Birth Date: 19 Sep 1906; Birth Place: East Hampton, Connecticut, USA; Residence Place: East Hampton, Middlesex, Connecticut, USA; Registration Date: 16 Oct 1940; Registration Place: East Hampton, Middlesex, Connecticut, USA; Employer: N N Hill Brass Company; Height: 5 5; Weight: 125; Complexion: Light; Hair Color: Brown; Eye Color: Blue; Next of Kin: Maurice Bransfield; <br/>Household Members (Name) Relationship:<br/>Maurice Joseph Bransfield Self (Head)<br/>Maurice Bransfield Father.
</ref>
You can generate a sharing template from the sharing link manually by taking the two numbers from the URL and putting them in the template. So:
https://www.ancestry.com/sharing/2859905?mark=7b22746f6b656e223a2264465157526f38412b396a7835756741782f346b38356
e4150675159314454356d443956677a576e6563593d222c22746f6b656e5f76657273696f6e223a225632227
&clickref=1101lwGP89vS%2C1101lwGP89vS&adref=&o_xid=01011l4xx5&o_lid=01011l4xx5&o_sch=Affiliate+External
becomes:
{{Ancestry Sharing|2859905|7b22746f6b656e223a2264465157526f38412b396a7835756741782f346b38356
e4150675159314454356d443956677a576e6563593d222c22746f6b656e5f76657273696f6e223a225632227d}}
Note: I had to insert some line breaks in the above to make it all showup in G2G. These links and templates used to be a lot shorter but Ancestry made a change in November 2022 that made them huge.
I have inserted the citation into the linked profile for you. There are many options in WikiTree Sourcer for how to format citations and what to include in them.