shortcut for Wikipedia
Maybe wp is the better shortcut for Wikipedia (than wikipedia)?
-- Rg 08:44, 1 August 2012 (PDT)
I can add it as an additional option. The reason for using 'wikipedia' is that it is a standard interwiki identifier.
--Tigersharke 18:57, 1 August 2012 (PDT)
-- Rg 08:09, 3 August 2012 (PDT)
shortcut for the FreeBSD Handbook
(Tigersharke, by the way, thanks for your great (and "speedy") work to create such templates.)
--Rg 07:08, 12 August 2012 (PDT)
This can be done, BUT, what would be the shortcut word?? I suppose we could assume fbsdph - Porter's Handbook, fbsdh - Handbook, fbsddh - Developer's Handbook, how are those?
--Tigersharke 14:37, 12 August 2012 (PDT)
I am "simple": I am nominating
hb. :-) Are there any shorter shortcuts out there? :-D
--Rg 17:44, 12 August 2012 (PDT)
created (not alternate) text for shortcuts
Please, do not hate me for this idea. :-D
Can you manage it, that if there is no alternate text (
|txt=$alternate text) by using the template Citelink, the template creates a "right" text by default.
Do you know what I mean?
If I use the the template in the following way
the result is
But in my way of thinking the optimal result is
, which is a composition of a default text for every shortcut (FreeBSD Wiki in this case) + ": " + the title of site (by using the page url (of
Please see this idea as a constructive input for make your good templates even more better. :-)
--Rg 07:39, 12 August 2012 (PDT)
The trouble with automating the FreeBSD Wiki: + Url format, is that
at best it would be a third field, unless fbsd: were to be parsed to return this new link format. I do not want to take away the txt= option. This may not be true, but it is definitely a challenge.
--Tigersharke 14:31, 12 August 2012 (PDT)
Am I wrong, or is
|txt=$alternate text a (indirect) obligation and not a option (if we are apply the template by using a shortcut)? If we do not use this (direct), we have to write an (also) alternate text (without
|txt=) at the end, or not?
I was talking of the case, that there is (independent of the purpose) no alternate text existing.
At the moment the result of different articlesis the same "default" text (by having a different topic).
(One again, because I am not sure:) Do you know what I mean?
If you are make the users doing write a alternate text for naming the topic: No Problem! :-) I am only interested that you can follow my chain of thought.
--Rg 18:28, 12 August 2012 (PDT)
I think I understand your original concept, but it will be a while before I figure out how to implement it, especially within the same template. I can certainly test for a modified shortcut word which includes the ':' as a flag to cause the alternate format. The trouble is that the test would be in the ourInterwiki template which gets used in three places within the citelink template, but the effect would only be in one place, the alternate text for the link.
For understanding how any template works and what is required, perhaps test variations on a scratch page such as your userpage or something. There is a small degree of fallback for the variables. It will use what is available to it, of txt, url, "1" which is the first not assigned value, "2", or "3". I also usually try to add some feedback to help editors see their mistakes in a less subtle way. Play with using (not modifying) any of the templates to see how the order of the data passed to them changes things, how assignments to variables or lack of them changes things. Mediawiki markup is rather powerful but simplistic (meaning the special characters that the parser does special things with is few) which adds to the power while also adding to the challenge due to necessary designed-in complexity.
BTW: you may have noticed I was scuffing my forehead against the OurInterwiki template to try to enable a way to show the shortcuts without having to re-type them inside the citelink template description portion.
And just as you wonder if you are saying things clearly and are understood, so do I hope the same.
--Tigersharke 02:30, 13 August 2012 (PDT)
<ref>tags exist, but no
<references/>tag was found