Jump to content

Template talk:Infobox French commune: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
Template-protected edit request on 11 March 2019: forgot something: Module:Check for unknown parameters
Line 45: Line 45:
== Template-protected edit request on 11 March 2019 ==
== Template-protected edit request on 11 March 2019 ==


{{edit template-protected|Template:Infobox French commune|answered=no}}
{{edit template-protected|Template:Infobox French commune|answered=yes}}
Please replace the current version of the infobox with [[Special:Permalink/887142859|the current sandbox version]]. This will add the possibility to use this infobox for settlements that are part of a commune, including former communes. It adds a caption and line showing wich commune it is part of, and hides the INSEE code (but uses the INSEE code, or the department code instead, to get the correct region, department and map). See [[Template:Infobox_French_commune/testcases#Test_6|test case 6]] for a demonstration of this new functionality. This edit changes
Please replace the current version of the infobox with [[Special:Permalink/887142859|the current sandbox version]]. This will add the possibility to use this infobox for settlements that are part of a commune, including former communes. It adds a caption and line showing wich commune it is part of, and hides the INSEE code (but uses the INSEE code, or the department code instead, to get the correct region, department and map). See [[Template:Infobox_French_commune/testcases#Test_6|test case 6]] for a demonstration of this new functionality. This edit changes


Line 73: Line 73:
::Thanks! [[User:Markussep|Markussep]] <sup>[[User talk:Markussep|Talk]]</sup> 13:39, 12 March 2019 (UTC)
::Thanks! [[User:Markussep|Markussep]] <sup>[[User talk:Markussep|Talk]]</sup> 13:39, 12 March 2019 (UTC)
::Ah, I see I have to add the fields "commune" and "type" to the list of known parameters for Module:Check for unknown parameters. I did it in the sandbox just now, could you update that too? [[User:Markussep|Markussep]] <sup>[[User talk:Markussep|Talk]]</sup> 13:46, 12 March 2019 (UTC)
::Ah, I see I have to add the fields "commune" and "type" to the list of known parameters for Module:Check for unknown parameters. I did it in the sandbox just now, could you update that too? [[User:Markussep|Markussep]] <sup>[[User talk:Markussep|Talk]]</sup> 13:46, 12 March 2019 (UTC)
:[[File:Yes check.svg|20px|link=|alt=]] '''Done'''<!-- Template:ETp --> -- <span style="text-shadow:0 0 1px #8dd">''/[[User:Alex 21|<span style="color:#008">Alex</span>]]/[[User talk:Alex 21|<sub style="color:#008">21</sub>]]''</span> 13:58, 12 March 2019 (UTC)

Revision as of 13:58, 12 March 2019

WikiProject iconFrance: French communes Template‑class
WikiProject iconThis template is within the scope of WikiProject France, a collaborative effort to improve the coverage of France on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
This template is within the scope of WikiProject French communes, a project which is currently considered to be inactive.

Polynesia: specific parameters?

I have cleaned up the tracking tracking category. The 40 or so pages left have these two parameters, so far unknown in the template: |administrative subdivision= and |commune center=. See for example Hiva-Oa.

They seem to be specific for French Polynesia communes.

  • |commune center= looks like the actual village or town. To add?

I am not an expert in this, so I leave it. pls ping me if you want further contact. - DePiep (talk) 10:24, 12 March 2018 (UTC)[reply]

Time zone & UTC DST not working

Infobox French commune
CountryFrance
Time zoneUTC+01:00 (CET)
 • Summer (DST)UTC+02:00 (CEST)

The template emits erroneous output if parameters |time zone DST= and |utc offset DST= are used. I suspect an OR pipe is missing between the 4th and the 5th sets of brackets in the treatment of those parameters. Further, the defaults for |utc offset= and |utc offset DST= ought to be "+01:00" and "+02:00" (sans quotes), respectively, not "+1" and "+2". -- Michael Bednarek (talk) 12:51, 25 November 2018 (UTC)[reply]

 Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. Izno (talk) 14:54, 25 November 2018 (UTC)[reply]
Michael Bednarek, thank you for finding the typos. should be fixed now. Frietjes (talk) 18:35, 25 November 2018 (UTC)[reply]
Frietjes, thank you for fixing both. -- Michael Bednarek (talk) 01:43, 26 November 2018 (UTC)[reply]

Please disambiguate Marne

Please disambiguate MarneMarne (department) following its page move, as I have done in the sandbox. Certes (talk) 16:32, 5 January 2019 (UTC)[reply]

Done. Dekimasuよ! 16:43, 5 January 2019 (UTC)[reply]

Template-protected edit request on 11 March 2019

Please replace the current version of the infobox with the current sandbox version. This will add the possibility to use this infobox for settlements that are part of a commune, including former communes. It adds a caption and line showing wich commune it is part of, and hides the INSEE code (but uses the INSEE code, or the department code instead, to get the correct region, department and map). See test case 6 for a demonstration of this new functionality. This edit changes

| settlement_type = {{{commune status|}}}

into:

| settlement_type = {{ safesubst:#if: {{{commune|}}} | {{{type|part}}} of {{Link if exists|{{{commune}}} }} | {{{commune status|}}} }}

and

| postal_code_type = [[INSEE code|INSEE]]/Postal code
| postal_code = {{ safesubst:#if:{{{insee|{{{INSEE|}}}}}} | [https://www.insee.fr/fr/statistiques/1405599?geo=COM-{{{insee|{{{INSEE}}}}}} {{{insee|{{{INSEE}}}}}}] / }}{{{postal code|}}}

into:

| postal_code_type = {{ safesubst:#if: {{{commune|}}} | Postal code | [[INSEE code|INSEE]]/Postal code }}
| postal_code = {{ safesubst:#if: {{{commune|}}} | {{{postal code|}}} | {{ safesubst:#if:{{{insee|{{{INSEE|}}}}}} | [https://www.insee.fr/fr/statistiques/1405599?geo=COM-{{{insee|{{{INSEE}}}}}} {{{insee|{{{INSEE}}}}}}] / }}{{{postal code|}}} }}

and adds:

| subdivision_type6 = {{ safesubst:#if: {{{commune|}}} | [[Communes of France|Commune]] }}
| subdivision_name6 = {{{commune}}}

The field "type" can be used to describe the status of the settlement, for instance "commune déléguée". It defaults to "part". Markussep Talk 10:24, 11 March 2019 (UTC)[reply]

 Done -- /Alex/21 13:15, 12 March 2019 (UTC)[reply]
Thanks! Markussep Talk 13:39, 12 March 2019 (UTC)[reply]
Ah, I see I have to add the fields "commune" and "type" to the list of known parameters for Module:Check for unknown parameters. I did it in the sandbox just now, could you update that too? Markussep Talk 13:46, 12 March 2019 (UTC)[reply]
 Done -- /Alex/21 13:58, 12 March 2019 (UTC)[reply]