Wiki: suggestion about Translation header
I was looking at the DefaultTemplate, in particular this bit at the top
(quoted for email):
##For Translators - to have a constantly up to date translation header in you page, you can just add a line like the following (with the comment's character at the start of the line removed)
##<<Include(DefaultTemplate, ,from="^##TAG:TRANSLATION-HEADER-START",to="^##TAG:TRANSLATION-HEADER-END")>>
##TAG:TRANSLATION-HEADER-START
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: [[DefaultTemplate|English]] - [[es/DefaultTemplate|Español]] - [[fr/DefaultTemplate|Français]] - [[sr/DefaultTemplate|српски]]-~
##TAG:TRANSLATION-HEADER-END
The intention of the instruction to use "Include" is so that the
translation header can be changed in one place and updates automatically
applied to all pages using it.
However, when someone creates a new page using DefaultTemplate, unless
they take special care to change it, they just include the above
verbatim. (See e.g. <https://wiki.debian.org/IRC>, although there's a
subtle misunderstanding in there…). This means they are not actually
transcluding the header from DefaultTemplate, and instead have a static
copy from page creation time.
If we want to transclude the translation header by default, I think we
would need to:
1. copy translation header and markers from DefaultTemplate to new page
2. (see below)
3. update the Include call in DefaultTemplate to reference that new page
4. change DefaultTemplate to have the Include uncommented by default and
remove the copy of the header and markers from DefaultTemplate's sources
However! That would break any pages that are currently using the Include
from DefaultTemplate. I don't know how many of such pages there are, or
how to count them. The missing step (2) above would be to update them to
reference the newly created page containing the translation header.
Since most pages are (I wager) not transcluding, I do not know what the
computational impact would be if they all started to do so. Could that
be a concern?
The reason I'm looking at this at all is I would like to add a link to
"/Discussion" into the header, to have it present on most pages
automatically (I've seen this done by-hand on one page or other but I
can't find it now)
--
Please do not CC me for listmail.
👱🏻 Jonathan Dowland
✎ jmtd@debian.org
🔗 https://jmtd.net
Reply to: