Template talk:dsc header
Can we change it to be more copy & paste friendly? e.g. instead of saying "defined in X" do as a source code segment so it shows like
#include <cstdint>
So we can copy & paste much more easily.
To Admins: a request to restore the links to std headers (with solution).
Dear Admins and Bureaucrats! Please restore direct links to the std headers by updating dsc_header wiki-template. You only need to replace the current wiki-code with the following:
|- class="t-dsc-header"
| colspan="2" | <div>{{#if: {{{1|}}} | Defined in header <code>{{dcl list header/link|{{trim|{{{1}}}}}}}</code>{{{2|}}} }} </div>
{{dsc guard}}<!--
--><noinclude>
{{documentation | Template:dsc/doc}}
</noinclude>
Historically the linking to the headers was implemented but then was "disabled", as can be seen in this log entry, because at that time (~2012/2013) a lot of <headers> were still missing. Times change, so now it makes sense to restore direct links to <headers> back, please.
The effect can be seen at e.g. Utility library page. All statements like
- "Defined in header
<compare>" will be changes to - "Defined in header
<compare>" (with the link).
References:
- https://en.cppreference.com/w/Template_talk:dsc_header (the page to update)
- https://en.cppreference.com/w/Template:dcl_header (a similar template)
--Space Mission (talk) 23:03, 21 January 2021 (PST) : )