Template talk:W

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

This template was nominated for deletion on but was kept.
If you are thinking about re-nominating it for deletion, please read that discussion first.


العربية | বাংলা | Č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)
https://commons.wikimedia.org/wiki/Template_talk:W
commons.wikimedia.org
crawl=CC-MAIN-2015-32
33377
application/http; msgtype=response
sha1:V27NTSAG6RSS3WN4YYWOXRFR2N3GHMAE
<urn:uuid:bb39036f-2042-4941-8dba-75bc729d501b>
2015-07-31T13:58:22Z
208.80.154.224
sha1:SLYXAUEGZ6XHGUQPCEDIAGB2IKNN5L6Y
<urn:uuid:4579c717-3986-40a3-b6dd-c77883034fa3>
https://commons.wikimedia.org/wiki/Template_talk:W
response
<urn:uuid:45659a88-9360-4b9c-a5b1-b0ba3e7d56c6>
robots: classic
hostname: ip-10-236-191-2.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2015-32
operator: CommonCrawl Admin
description: Wide crawl of the web for August 2015
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf