Template talk:W

From Wikimedia Commons, the free media repository
Jump to: navigation, search
Fairytale Trash Questionmark No.svg

This template was nominated for deletion on but was kept.
The deletion debate is here. Please consider that decision before you re-nominate it.


العربية | বাংলা | Čeština | Dansk | Deutsch | English | Español | فارسی | Suomi | Français | Galego | עברית | Magyar | Italiano | 日本語 | 한국어 | Lëtzebuergesch | Македонски | മലയാളം | Plattdüütsch | Nederlands | Norsk bokmål | Polski | Português | Русский | Slovenščina | Svenska | Türkçe | Українська | +/−

Documentation[edit]

{{edit protected}} Please move the documentation to a {{documentation}} subpage. Rd232 (talk) 21:29, 26 June 2011 (UTC)

✓ Done But you could have created the documentation subpage by yourself, leaving just the final protected page edit to an admin… --Mormegil (talk) 12:27, 30 June 2011 (UTC)
Thanks. Didn't occur to me, as on non-protected pages I do both things together. Rd232 (talk) 12:31, 30 June 2011 (UTC)

Required expansions[edit]

  1. The template would give an easy access also to main pages when transclusion was allowed with the page name empty: {{{1|}}} (with pipe) instead of {{{1}}}.
  2. It seems better documented when parameter 3 is inserted, instead of replacing the redundant "w". Or is the piping a "cheaper" (server friendly) way for replacing empty parameters?

The code should be simply
[[:{{#if:{{{3|}}}|{{{3}}}:|w:}}{{{1|}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]]
If there are any questions, everything is explained at {{Wpd}}, a candidate for deletion.

If it seems better, safesubst may be inserted:
[[:{{<includeonly>safesubst:</includeonly>#if:{{{3|}}}|{{{3}}}:|w:}}{{{1|}}}{{<includeonly>safesubst:</includeonly>#if:{{{2|}}}|{{!}}{{{2}}}}}]]

Template U[edit]

{{U}} (has not yet a talk page) would function better with a small extension. At the moment it is internationalized with the named parameter LANG= instead with 3= as all the other templates. The extension ensures that older invocations with LANG= work as well as newer ones with 3=. The complete coding is provided there. If it seems better, safesubst may be inserted at any of the three #if:, or piping may be used istead.

Another advantage might be to divide it into the mere code, and the (unprotected) documentation page, which I shall maintain then. -- sarang사랑.svg사랑 12:04, 27 February 2012 (UTC)

I didn't understand the first part of that. But I've transcluded the documentation page you created, and you can create the template talk page Template talk:U for further discussion. Rd232 (talk) 22:10, 27 February 2012 (UTC)
OK, ✓ Done both. Rd232 (talk) 04:41, 29 February 2012 (UTC)

Main galleries:[edit]

Should "Wikipedia" be added before the source for this template to provide context? Hyacinth (talk) 22:46, 20 March 2012 (UTC)

I don't think we really want to change the behaviour of a template like that, and making it an option is probably not useful. Rd232 (talk) 09:45, 21 March 2012 (UTC)
Not in the template itself by default. --AVRS (talk) 10:21, 21 March 2012 (UTC)

"En:" vs. Template:W[edit]

What is the point of this template when one can use "en:"? The difference should be pointed out by Template:W/doc. Hyacinth (talk) 06:59, 30 April 2012 (UTC)

For example User:Hyacinth vs. User:Hyacinth ([[en:User:Hyacinth|User:Hyacinth]] vs. {{w|User:Hyacinth}}). Hyacinth (talk) 07:55, 11 May 2012 (UTC)

Not to mention w: works as well. User:Hyacinth ([[w:User:Hyacinth|]]) –Krinkletalk 20:29, 9 June 2012 (UTC)
Works, but duplicates the name when you save. --AVRS (talk) 11:25, 10 June 2012 (UTC)
Not to put too fine a point on it, but so what? Powers (talk) 18:54, 8 December 2012 (UTC)
That makes the source text harder to read. --AVRS (talk) 19:14, 8 December 2012 (UTC)
No more than "{{W|...}}" does, does it? Powers (talk) 19:52, 9 December 2012 (UTC)