Template talk:Official website
![]() | Template:Official website is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This is the talk page for discussing improvements to the Official website template. |
|
Archives: 1, 2, 3, 4Auto-archiving period: 3 months ![]() |
![]() | This template was considered for deletion on 13 August 2009. The result of the discussion was "speedy keep". |
|
||||
This page has archives. Sections older than 92 days may be auto-archived by Lowercase sigmabot III if there are more than 4. |
Dead links
[edit]What's the correct way to mark a {{official website}} as a dead link? -- Mikeblas (talk) 16:35, 9 March 2021 (UTC)
- This comes up over and over in the talk archives. The last discussion of any note is Template_talk:Official_website/Archive_3#Dead_links. Some people say if the link is dead it should be deleted entirely from Wikipedia and not replaced with an archive URL. I don't understand that thinking. It is further complicated by Wikidata. IMO I would delete the template and replace it with
{{webarchive}}
using the|title=
arg to give the same wording eg.{{webarchive |url=https://web.archive.org/web/20210309010101/https://example.com|date=2021-03-09|title=Official website}}
which produces:- Official website at the Wayback Machine (archived 2021-03-09)
- -- GreenC 16:49, 9 March 2021 (UTC)
- FWIW, P856 supports inclusion of an archive URL property like the citations templates do (example), but this template does not make use of it. If I knew template code well enough, I would boldly adjust to treat it as the citation templates do, but since I do not I simply record that wish here so maybe someone else will try it. —KGF0 ( T | C ) 02:00, 10 July 2021 (UTC)
- It's true and called archive URL (P1065). Is there someone out there who indeed knows module code well enough and has admin rights to edit it? You can use the example of (Q27978783#P856) and Scorpia (journalist)#External links. -Cardace (talk) 20:34, 15 July 2022 (UTC)
- Done. You can see the staged changes at Template:Official website/sandbox, although I've yet to update the documentation and add test cases. Once that's done, I'll submit an edit request. — Alhadis (talk) 07:37, 12 February 2025 (UTC)
- It's true and called archive URL (P1065). Is there someone out there who indeed knows module code well enough and has admin rights to edit it? You can use the example of (Q27978783#P856) and Scorpia (journalist)#External links. -Cardace (talk) 20:34, 15 July 2022 (UTC)
- I also support adding
|archive-url=
support. ~Kvng (talk) 14:04, 7 June 2022 (UTC)|archive-url=
is a CS1|2 argument name. I don't think we should use that key name, unless it is a CS1|2 template, to avoid confusion about which arguments the template supports. -- GreenC 19:54, 28 March 2023 (UTC)- I'm not sure what confusion that would cause. But it seems like this template emits its own HTML code. Why is that? Why doesn't it call {{cite web}} with appropriate parameters? -- Mikeblas (talk) 20:29, 31 March 2024 (UTC)
- If it keeps coming up, perhaps some text should be included in the documentation to explain what to do with a dead official website (both in the case of a completely dead site and in the case of an updated URL)? Rowing007 (talk) 19:46, 28 March 2023 (UTC)
- I support archive capability as well. ɱ (talk) 21:46, 19 June 2023 (UTC)
- I came here from Space Station 76#External links, and all I want to say is: Ditto. —ReadOnlyAccount (talk) 01:09, 23 December 2023 (UTC)
- I have modified the documentation to include advice about dead links. -- Mikeblas (talk) 20:41, 31 March 2024 (UTC)
- I support archive capability as well. ɱ (talk) 21:46, 19 June 2023 (UTC)
- FWIW, P856 supports inclusion of an archive URL property like the citations templates do (example), but this template does not make use of it. If I knew template code well enough, I would boldly adjust to treat it as the citation templates do, but since I do not I simply record that wish here so maybe someone else will try it. —KGF0 ( T | C ) 02:00, 10 July 2021 (UTC)
Wikidata language parameter or host-language selection not yet implemented
[edit]We still don't seem to have proper handling of websites with multiple languages when getting data from Wikidata. Both:
automatic use of the host wiki language by default(done; see below Boud (talk) 16:18, 21 December 2024 (UTC)); and- a parameter to override the host wiki language;
are needed.
Previous discussions:
- 2010 to 2016 - issue repeatedly mentioned
- March 2018 - request for parameter
- August 2018 - there seems to be a working proposal
Is there any progress? or a workaround? Boud (talk) 16:04, 21 December 2024 (UTC)
There does appear to be a piece of code in Module:Official website to select the English language if available:
-- Finds whether a Wikidata property is qualified as being in English. local function isEnglish(prop) local ret = quickPcall(function () for i, lang in ipairs(prop.qualifiers.P407) do if lang.datavalue.value['numeric-id'] == 1860 then return true end end return false end) return ret == true end
but it doesn't seem to have an effect. This looks like a bug. Boud (talk) 16:09, 21 December 2024 (UTC)
- It does work for me(TM). What remains to be programmed, it looks like to me, is to add a parameter that, if set, overrides the automatically chosen, if available, English-language value. Boud (talk) 16:18, 21 December 2024 (UTC)
Official blog template
[edit]I want someone to create an 'official blog' template using similar code as this. Wikidata has a property for it under official blog URL (P1581) and bare link versions are sometimes used, such as in the article Anna's Archive. Juwan (talk) 02:29, 11 April 2025 (UTC)
- Beware that indiscriminate use of such a template may violate WP:ELMINOFFICIAL, which warns against multiple links. For multi-national corporations, you also get the joy of deciding which country's blog gets to be officially blessed by Wikipedia. Stepho talk 22:42, 11 April 2025 (UTC)
Template-protected edit request on 7 September 2025
[edit]![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Change www.lopezquezon.gov.ph to https://livelopez.gov.ph/ Jksnchz (talk) 10:29, 7 September 2025 (UTC)
- @Jksnchz:
Not done: this is the talk page for discussing improvements to the template
{{Official website}}
. If possible, please make your request at the talk page for the article concerned. If you cannot edit the article's talk page, you can instead make your request at Wikipedia:Requests for page protection#Current requests for edits to a protected page. taavi (talk!) 11:33, 7 September 2025 (UTC)