<div dir="ltr"><div dir="ltr">On Mon, 2 Sep 2019 at 12:16, s8evq <<a href="mailto:s8evq@runbox.com">s8evq@runbox.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Okay, this project is done. I have made the transclusion on the four pages:<br>
<br>
<a href="https://wiki.openstreetmap.org/wiki/Hiking" rel="noreferrer" target="_blank">https://wiki.openstreetmap.org/wiki/Hiking</a><br>
<a href="https://wiki.openstreetmap.org/wiki/Walking_Routes" rel="noreferrer" target="_blank">https://wiki.openstreetmap.org/wiki/Walking_Routes</a><br>
<a href="https://wiki.openstreetmap.org/wiki/Tag:route%3Dhiking" rel="noreferrer" target="_blank">https://wiki.openstreetmap.org/wiki/Tag:route%3Dhiking</a><br>
<a href="https://wiki.openstreetmap.org/wiki/Tag:route%3Dfoot" rel="noreferrer" target="_blank">https://wiki.openstreetmap.org/wiki/Tag:route%3Dfoot</a></blockquote><div><br></div><div>Thanks for putting in the effort.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
A minor issue is perhaps the layout of Tag:route=hiking and Tag:route=foot. Probably because of the transclusion, the table only start under the ValueDescription template. This results in quite some white space on the page.<br></blockquote><div><br></div><div>I'm not sure what bit you mean because, at a quick glance, I don't see a white space problem.</div><div>I'm probably missing it. So take a look at <a href="https://en.wikipedia.org/wiki/Wikipedia:Transclusion">https://en.wikipedia.org/wiki/Wikipedia:Transclusion</a></div><div>at the bit about selective transclusion (which may not apply to what you're doing, I'm not</div><div>sure) which says:</div><div><br></div><div style="margin-left:40px"><b>This selective transclusion method often adds a line break above
and/or below the section transclusion, depending upon the source and
target document markup; to avoid this issue, wrap the selective
transclusion template in a <code>{{<a href="https://en.wikipedia.org/wiki/Template:Trim" title="Template:Trim">trim</a>}}</code> template.</b> In other words, use the following modifications to the transclusion code listed immediately above: <br></div><div style="margin-left:40px"><br></div><div style="margin-left:40px"><ul><li>Code for transcluding a section in the body of an article: <code>{{trim|{{#section-h:PAGENAME|SECTIONNAME}}}}</code></li><li>Code for transcluding the lead of an article: <code>{{trim|{{#section-h:PAGENAME}}}}</code></li></ul></div></div><div class="gmail_quote">So whatever you're doing, try wrapping it in a trim and see if that fixes it. It probably won't,</div><div class="gmail_quote">and I expect somebody to tell me what an idiot I am for thinking it might.<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">However, what I did spot is that all four pages have route=hiking and route=foot in the relation</div><div class="gmail_quote">table. It's somewhat confusing to see an explanation of route=foot in a page about hiking</div><div class="gmail_quote">and an explanation of route=hiking in a page about walking. I haven't tried it but I believe</div><div class="gmail_quote">this may be fixable.</div><div class="gmail_quote"><br></div><div class="gmail_quote">I think the fix involves passing parameters to the template and conditionals within</div><div class="gmail_quote">the template. But I may be missing something and it's actually a lot harder, a</div><div class="gmail_quote">lot different or both a lot harder and a lot different. So you'll have to read the <br></div><div class="gmail_quote">documentation and experiment (and eventually give up in frustration).</div><div class="gmail_quote"><br></div><div class="gmail_quote">I think you can do something like this on the four pages:</div><br><div class="gmail_quote" style="margin-left:40px">{{Template:Tagging_scheme_for_hiking_and_foot_route_relations|walking=yes|hiking=no}}</div><div class="gmail_quote"><br></div><div class="gmail_quote">and then in your template</div><div class="gmail_quote"><br></div><div class="gmail_quote" style="margin-left:40px">{{ifeq: {{{walking|yes}}} | <table row about walking tag}}</div><div class="gmail_quote" style="margin-left:40px">{{ifeq: {{{hiking|yes}}} | <table row about hiking tag}}</div><div class="gmail_quote"><br></div><div class="gmail_quote">See <a href="https://en.wikipedia.org/wiki/Help:Conditional_expressions">https://en.wikipedia.org/wiki/Help:Conditional_expressions</a> for help with conditionals.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Try it with ordinary text not in a table first. I may have some of that completely wrong, but</div><div class="gmail_quote">eventually you should get it working. And then you have to get it working in an actual table,</div><div class="gmail_quote">which is complicated. It's complicated because the table row separator is | and the</div><div class="gmail_quote">#ifeq separator is also | and things get confused. How to deal with that is discussed at</div><div class="gmail_quote"><a href="https://en.wikipedia.org/wiki/Help:Conditional_tables">https://en.wikipedia.org/wiki/Help:Conditional_tables</a> Good luck with understanding that.</div><div class="gmail_quote"><br></div><div class="gmail_quote">-- <br></div><div class="gmail_quote">Paul</div><div class="gmail_quote"><br></div></div>