Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Sandbox/Perryprog/xlink/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Module rating|pre-alpha}} == Background == Eventually I want the loose equivalent of a {{tl|xsign}} for all the different special-link-templates I use (I tend to avoid the external link syntax). The end goal is to be able to say something like {{tlc|subst:xlink|URL here}}, and depending on the pattern the URL matches it would emit wikitext (assuming substitution works out wellβI wouldn't be surprised if it's impossible) for either {{tl|diff2}}, {{tl|diff4}}, {{tl|oldid}}, and others as time goes on. Small shorter-term TODO: * Actually learn how substitution depth works and all that jazz. (See {{diff2|1000008988|here}}, which was from substituting the #invoke call.) * Given <code>[DiffURL label]</code>, emit {{tlx|diff2|id|label}} * Given <code>[DiffURL#section label]</code>, emit {{tlx|diff2|id|section|label}} * Have a less-strict match (e.g., URL param order) for diff-urls with <code>oldid=prev</code>. * Switch to {{tl|diff4}} if a numerical value for <code>oldid</code> is present. ** And also check if that template or its docs needs fixing, because every time I use it I get the parameters backwards... Longer-term TODO: * A lot. <!-- <code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|''function_name''}}</code> --> <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | <!-- Categories below this line, please; interwikis at Wikidata --> }}</includeonly>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Diff2
(
edit
)
Template:Module rating
(
edit
)
Template:Tl
(
edit
)
Template:Tlc
(
edit
)
Template:Tlx
(
edit
)
Module:Arguments
(
edit
)
Module:Template link general
(
edit
)