Difference between revisions of "Template talk:Mrm"
(→Code cruft?: new section) |
|||
Line 47: | Line 47: | ||
, | , | ||
[[File:Parcel_lght_A.png|link=Maturity{{#var:lang}}]] '''[[Maturity{{#var:lang}}|Adult]]''' | [[File:Parcel_lght_A.png|link=Maturity{{#var:lang}}]] '''[[Maturity{{#var:lang}}|Adult]]''' | ||
--[[User:Boroondas Gupte|Boroondas Gupte]] 13:10, 5 March 2010 (UTC) | --[[User:Boroondas Gupte|Boroondas Gupte]] 13:10, 5 March 2010 (UTC) |
Revision as of 06:10, 5 March 2010
Link deeper
Could we have these templates link right to the respective specific section of Maturity? Like so:
General/PG , Moderate/Mature , Adult
i18n
This deeplinking wouldn't work for the translated pages to which these templates link when {{#var:lang}}
is set, when the sections are named differently, there. The deeplinking wouldn't do any harm, as browsers silently ignore non-existent anchors and still take you to the right document. They would just not jump to any specific section. But there are at least two possibilities to get it fully working for translated pages, too:
Manual anchors
Place manual anchors around the section titles and keep those for the translations:
<div id="mrm"><!-- Do NOT remove or alter this anchor when translating! Feel free to change the section title, though. --> ==Was sind als „Mature“ eingestufte Regionen, Gruppen, Events und Anzeigen?== </div>
Redirects
Have Template:mrm link to Maturity Rating Moderate{{#var:lang}} and make that a redirect to the right section of Maturity{{#var:lang}} for each language:
- Maturity Rating Moderate/de would redirect to Maturity/de#Was sind als „Mature“ eingestufte Regionen, Gruppen, Events und Anzeigen?
- Maturity Rating Moderate/es would redirect to Maturity/es#¿Qué quiere decir la calificación "Mature" que se aplica a Regiones, grupos, eventos y anuncios?
- Maturity Rating Moderate would redirect to Maturity#Moderate/Mature
(Analogous Template:mrg and Template:mra would link to Maturity Rating General{{#var:lang}} and Maturity Rating Adult{{#var:lang}}, respectively, and the corresponding redirects would have to be created.)
The redirects for a specific language would need to be updated when the section titles in the corresponding translation of Maturity are changed. HTML Comments could be placed in Maturity and its translations to remind editors of that.
--Boroondas Gupte 13:00, 5 March 2010 (UTC)
Code cruft?
Btw., are the {{{1|...}}}
around the link captions and the |
at the end of the image tags needed? I seem to get exactly the same HTML code with and without them:
with: General/PG , Moderate/Mature , Adult
without: General/PG , Moderate/Mature , Adult
--Boroondas Gupte 13:10, 5 March 2010 (UTC)