<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>20119</bug_id>
          
          <creation_ts>2012-11-28 15:44:19 +0000</creation_ts>
          <short_desc>use custom page title in generated see-also xrefs</short_desc>
          <delta_ts>2012-11-28 20:36:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>webplatform.org</product>
          <component>infrastructure</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mike Sierra">letmespellitoutforyou</reporter>
          <assigned_to name="Doug Schepers">schepers</assigned_to>
          <cc>komoroske</cc>
    
    <cc>team-webplatform-admin</cc>
          
          <qa_contact name="public-webplatform-bugs list">public-webplatform-bugs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78997</commentid>
    <comment_count>0</comment_count>
    <who name="Mike Sierra">letmespellitoutforyou</who>
    <bug_when>2012-11-28 15:44:19 +0000</bug_when>
    <thetext>See apis/css-regions/NamedFlow for example. The See Also section features two &apos;css-regions&apos;. These are stub titles to pages under /apis and /tutorials. XRefs should reflect custom titles &quot;CSS Regions API&quot; and &quot;Using CSS Regions to flow content through a layout.&quot;

That problem, plus the fact that the tutorial sorted last in a long list of See Also links, led me to add a manual link to the tutorial with a hard-coded title.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79010</commentid>
    <comment_count>1</comment_count>
    <who name="Alex Komoroske">komoroske</who>
    <bug_when>2012-11-28 16:42:18 +0000</bug_when>
    <thetext>When I looked at that page, it looked (vaguely) right to me--the &quot;Using CSS Regions to flow content through a layout&quot; article is in the bottom section with the right title.

Sometimes SMW does some aggressive caching so after you first edit you don&apos;t see the right values, but a few hours later it looks right. Generally you can go to Tools &gt; Refresh on those types of pages to manually force it to regenerate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79012</commentid>
    <comment_count>2</comment_count>
    <who name="Mike Sierra">letmespellitoutforyou</who>
    <bug_when>2012-11-28 16:52:13 +0000</bug_when>
    <thetext>You&apos;re probably seeing the one-off &quot;Other articles&quot; link that I added by hand. The category-generated &quot;css-regions&quot; link between &quot;getNamedFlows&quot; and &quot;Other articles&quot; should appear with the custom title.  The other &quot;css-regions&quot; link above &quot;CSSRegionStyleRule&quot; should appear as &quot;CSS Regions API&quot;.  I appreciate the point about caching, but this never appears correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79015</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Komoroske">komoroske</who>
    <bug_when>2012-11-28 16:59:03 +0000</bug_when>
    <thetext>I see what&apos;s going on. I need to update Template:See_Also_Section to select Page_Title in the query, and then Template:See_Also_Item to use that value if provided.

I&apos;ll do this later today, hopefully.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79016</commentid>
    <comment_count>4</comment_count>
    <who name="Mike Sierra">letmespellitoutforyou</who>
    <bug_when>2012-11-28 17:07:25 +0000</bug_when>
    <thetext>No rush, just noting one of the many little things that should get done sooner or later. ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79040</commentid>
    <comment_count>5</comment_count>
    <who name="David Kirstein (Frozenice)">frozenice</who>
    <bug_when>2012-11-28 20:20:27 +0000</bug_when>
    <thetext>I changed those 2 templates, because I had them open as part of my investigation of #20120 anyway.

See_Also_Item now uses: [[{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2|}}}|}}]]
(showing the full link instead of &quot;Article&quot; if no 2nd parameter gets passed)

And See_Also_Section now selects Page_Title instead of API_name.

I hope that&apos;s okay with you, Alex.

Looking at the &quot;Related articles&quot; section of apis/css-regions/NamedFlow, there are 2 articles without a Property:Page_title. Actually there are tons of articles that don&apos;t include Template:Page_Title, could be a task for the bot to fix that.

If the list now looks okay to you Mike, you can remove the additional link to the tutorial. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79043</commentid>
    <comment_count>6</comment_count>
    <who name="Mike Sierra">letmespellitoutforyou</who>
    <bug_when>2012-11-28 20:36:10 +0000</bug_when>
    <thetext>Those 2 pages are legacy pages that I&apos;ll flag for removal. Thanks

Re the rest, I logged a bug #20121 requesting templates provide more contextual info in see-also lists about interface members.  I can hand-code each as a custom title, but ideally it should be auto-generated.  I have roughly zero idea of how much templates can accomplish.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>