https://bugzilla.wikimedia.org/show_bug.cgi?id=12396

Krinkle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #9 from Krinkle <[email protected]> 2011-05-08 21:28:30 UTC ---
(In reply to comment #8)
> @Alexandre Emsenhuber:
> 
> ---
> Also a problem wouldbe parameter substitution: {{Some template|link=[[Some
> page]]}} or {{Link|page=Some page}} where Template:Link contains something 
> like
> "[[{{{page}}}]]", for those two cases, should the link be considered as 
> comming
> from the page, or the template? (first example might be easier than the second
> one)
> --
> 
> Those cases should clearly be considered as coming from the page calling
> Template:Link, since "some page" is linking data stored in the calling page,
> not the template.

Yeah, that's easy to say for a human. But a piece of software is likely not
going to able to distiguish that.

for example:

Template:Foo contains:
> This is a [[department]] [[portal]].
> ----
> {{#ifeq: {{{type|normal}}} | special | Welcome to the [[special]]
> department. | Welcome to the department page of the [[normal people]].}}

Department:Special contains:
> {{Foo|type=special}}
> Blablablabla.
> [[Category:Departments|Special]]

Does the link to [[special]] come from the template or from the article ?
The answer to this doesn't matter and likely not obvious, but untill the parser
has been rewritten and world piece has been made I dont think such advanced
extractions can be made from a simple page with templates.

That doesn't mean we can't do any extractions at all. A simple way to approach
this bug's goal would be to compare links generated from {{Foo}} to whatever
the template call was (eg. {{Foo}}), and whatever was added consider that
caused by the article, and the rest to be coming from the template and thus
further down the tree on WhatLinksHere.

(things to keep in mind though are constructions with <includeonly> and the
like, and comparisons to {{PAGENAME}} etc.)

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to