Difference between revisions of "Template talk:IsIn"

From Hitchwiki
Jump to navigation Jump to search
Line 4: Line 4:
 
:You could call this a bug, but actualy, it is a logical dilema. Either use the isin in the redirecting page and ignore a potential isin in the page where the redirects points to, or doing it the other way round. It's not possible to do both.
 
:You could call this a bug, but actualy, it is a logical dilema. Either use the isin in the redirecting page and ignore a potential isin in the page where the redirects points to, or doing it the other way round. It's not possible to do both.
 
:-- hansm
 
:-- hansm
 +
 +
:No, sorry, I have been wrong. After having looked through the code, I know it better, now. It's right the opposit way as I have told: ''First'', it looks for an isin. If no isin is found, it checks whether the page is a redirect. If so, it follows the redirect, displays the level in italics and looks for an isin in the page the redirect points to. -- [[User:Hansm|Hansm]] 19:54, 14 June 2008 (CEST)

Revision as of 19:54, 14 June 2008

Works fine for example at Enschede or Rotterdam, same with Karlsruhe. Somehow it's not working with Hörstel, it only shows Nordrhein-Westfalen, not Europe > Germany. Rare? Same with Munich. platschisite, wikitalk 18:54, 14 June 2008 (CEST)

Both, Nordrhein-Westfalen and Bayern, are redirects into the category namespace. When building the bread crumbs trail, the software follows redirects before seeing the isin in the redirecting page. Thus, München isin Category:Bayern, not in Bayern! Since Category:Bayern has no higher level isin, the trail stops here.
You could call this a bug, but actualy, it is a logical dilema. Either use the isin in the redirecting page and ignore a potential isin in the page where the redirects points to, or doing it the other way round. It's not possible to do both.
-- hansm
No, sorry, I have been wrong. After having looked through the code, I know it better, now. It's right the opposit way as I have told: First, it looks for an isin. If no isin is found, it checks whether the page is a redirect. If so, it follows the redirect, displays the level in italics and looks for an isin in the page the redirect points to. -- Hansm 19:54, 14 June 2008 (CEST)