<div dir="ltr"><div><div><div><div><div><div>I have an idea that could make this feature really interesting for users.<br><br></div>We should reproduce a sort of label/ref latex mechanism along all wiki pages.<br></div>When a label it's create with our tag, the section of the page <span tabindex="-1" id="result_box" class="" lang="en"><span class="">to which it refers is saved in a table in db and made unique.<br></span></span></div><span tabindex="-1" id="result_box" class="" lang="en"><span class="">When another page use <content-ref label=> a link to the right content is created, without the need of knowing the right page. <br><br></span></span></div><span tabindex="-1" id="result_box" class="" lang="en"><span class="">To make things neat we should use a sort of "scope" for labels. When writing ref for a specific course the user should use a label like "/coursename/label". Doing so, similar labels won't conflict and they will be easier to use and categorize. <br><br></span></span></div><span tabindex="-1" id="result_box" class="" lang="en"><span class="">Then we can go further. Imagine a tool that read all the labels and made them searchable. We could also add metadata to label tag and made this information avaiable for queries. When someone wants to refer a theorem or a specific part, he has only to query to check if an existing content exists.<br><br></span></span></div><span tabindex="-1" id="result_box" class="" lang="en"><span class="">Alessandro, that could really interest you for semantics features.<br><br><br></span></span><div><div><div><span tabindex="-1" id="result_box" class="" lang="en"><span class=""><br><br></span></span><div><div><div><br><div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-18 0:56 GMT+01:00 Russell Greene <span dir="ltr"><<a href="mailto:russellgreene8@gmail.com" target="_blank">russellgreene8@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><br><div class="gmail_quote"><span class=""><div dir="ltr">On Sun, Jan 17, 2016 at 4:48 PM Davide Valsecchi <<a href="mailto:valsecchi.davide94@gmail.com" target="_blank">valsecchi.davide94@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Really good ideas! I have some comments to do<br><div class="gmail_extra"><br><div class="gmail_quote"></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-01-18 0:19 GMT+01:00 Russell Greene <span dir="ltr"><<a href="mailto:russellgreene8@gmail.com" target="_blank">russellgreene8@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hey all, last night I made an MediaWiki extension for doing content referencing. The idea is for this to be applied to figures, equations, anything that would want to be referenced back to later. <div><br></div><div>Everything here is on the GitHub repo, under the branch ContentRefrencer, give it a try!<br><div><br></div><div>Anything here is up for debate/change.</div><div><br></div><div><b>Motivation:</b></div><div><br></div><div>Reuse of content. This way one chapter that requires a certain proof or math equation, they can reference to there, where it is explained in more depth instead of explaining it again.</div><div><br></div><div><b>Syntax:</b></div><div><br></div><div>Currently there are two new tags, content and content-ref. </div><div><br></div><div>Example:</div><div><br></div><div><content name="Quadratic Formula" id=1.0></div><div><math> ... </math></div><div></content></div><div><br></div></div></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I think that it would be better to use a label instead of a numerical id. It would be remembered and referred easier. <br></div><div>Look at Latex ref/label, you are trying to recreate the same behavior.</div></div></div></div></blockquote></span><div>Okay! That should be really easy. I'll push that in a minute.</div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div></div><div>and then later</div><div><content-ref id=1.0>See Quadratic formula</content-ref></div><div><br></div><div>This will work for any <content> elements in that page. In order to reference to a different page, just add the page attribute to the <content-ref> element:</div></div><div><br></div><div><content-ref page="Physics/Quantum Mechanics" id=3>...</content-ref></div><div><br></div></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>It works impressively! I see that for now it displays: "Figure: $name". Why don't create a parameter for the type of reference? Like type=Figure or type=math.<br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div></div></div></div></blockquote><div><br></div></span><div>I totally agree. The "Figure: " was just for demonstration purposes. </div><span class=""><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"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>  </div></div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><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"><div dir="ltr"><div></div><div><b>Features:</b></div><div><b><br></b></div><div>So as of right now, this is very simple, and could live in a template, but there are more options with an extension. </div><div><br></div></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>You know that we are using templates for theorems and definitions and so on. Do you think that we could use your ref tag to create a link to them? We can insert a label/id in the template, or maybe include automatically al the content inside a <content> tag, but without your extension box. Maybe the box could be optional?</div></div></div></div></blockquote></span><div>One idea would be to include a <content> tag in the templates, so they can be referenced by a <content-ref>. This would keep the consistency that templates give, while also being referable.  </div><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> </div></div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> </div></div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><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"><div dir="ltr"><div></div><div><i>Hover</i><br>One feature I really want to figure out is showing the contents of the <content> tag when hovering over the corresponding <content-ref> tag. This would allow anyone to be able to see the content without even navigation outside the page. </div><div><br></div><div><i>dmath</i></div><div>One cool feature would to have support similar to this in the dmath tag, to make it easier to pass on to OCG.</div></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I think that for math we should pay a lot of attention. Maybe it would be possible to insert a label inside dmath tag and then make reference to it with your <content-ref> tag. Including math inside a <content> tag it's not optimal because I don't know how we could make OCG recognize the link.<br><br></div></div></div></div></blockquote></span><div>We have full control over what the <dmath> tag does, so anything is possible. I am not familiar with how OCG works, so I would need someone to hold my hand through that.</div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><div>I hope my suggestions could give you hints. I think that a general way to ref things is excellent, but we have to integrate it also in templates and math.<br><br></div><div>What do you think?<br><br><br></div><div>Davide<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"></blockquote></div></div></div><div dir="ltr"><div class="gmail_extra"><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"><div dir="ltr"><div><br></div><div>So what do you think? Is this something we need? Additional thoughts?</div><span><font color="#888888"><div><br></div><div>-Russell</div></font></span></div>
<br></blockquote></div></div></div><div dir="ltr"><div class="gmail_extra"><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">_______________________________________________<br>
WikiToLearn-Tech mailing list<br>
<a href="mailto:WikiToLearn-Tech@kde.org" target="_blank">WikiToLearn-Tech@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/wikitolearn-tech" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/wikitolearn-tech</a><br>
<br></blockquote></div><br></div></div>
</blockquote></span></div></div>
</blockquote></div><br></div></div></div></div></div></div></div></div></div>