Template talk:Portal header

Classification changes
If necessary, to remove the classification elements: 1) Change this code: | class="gen_header_backlink" | {{Portal Parent | class    = {{{class|}} | subclass1 =  | subclass2 =  | number    =  | midclass  = {{{midclass|}}} }} back to this code: | class="gen_header_backlink" |  2) Change this code: {| class="portal_notes" | class    = | subclass1 = {{{subclass1|}}} | subclass2 = {{{subclass2|}}} | number   = {{{number|}}} }}{{Plain sister back to this code: {| class="portal_notes" This should make it easier to undo these changes if they cause any problems and a simple undo is not possible (ie. if further edits have been made to the template). - AdamBMorgan (talk) 21:22, 4 November 2010 (UTC)
 * {{Portal Class
 * {{Portal Class
 * {{Plain sister
 * {{Plain sister

Tracking category/ies
Is it worth adding some tracking categories to cover where pages are moved to keep track of what has been classified? Or even a review capacity as presuming that our classification is against a standard so we know that it has been checked against the desired standard. — billinghurst  sDrewth  02:04, 7 November 2010 (UTC)
 * The classification templates already add Category:Unclassified Portals if no class if specified (at time of writing, this just contains two disambiguation pages). I can add more.  What review process do you think would be best? Should there just be Category:Unreviewed Portals/Category:Portals needing review or would Category:Reviewed Portals be useful as well? (There are some portals I've classified but I'm not sure about; Portal:Disney especially.) - AdamBMorgan (talk) 03:40, 7 November 2010 (UTC)
 * For the suggested review capacity, I've created Category:Portals needing review and the template portal review. The header will automatically categorise all portals until the parameter "reviewed" is set.  The portal review template can record information about the classification, the original classifier and the reviewer. - AdamBMorgan (talk) 02:34, 12 November 2010 (UTC)

created preload
As we update the fields in the header, we will need to update the framework that is loaded in Template:Portal header/preload — billinghurst  sDrewth  04:37, 16 January 2011 (UTC)

Need to rejig #if statements for Wikidata
The #if statements need to be rejigged here so that if there is a reference at Wikidata that the plain sister rendering of links shows without having to force one of the parameters in the template. Presunmably it is the same switcheroo that we did as discussed on Template talk:header — billinghurst  sDrewth  03:43, 26 August 2015 (UTC)
 * Applied the same change to this template as was applied to the main Header template. Is it working? -- George Orwell III (talk) 01:27, 28 August 2015 (UTC)""
 * yes, beautifully. — billinghurst  sDrewth  07:52, 28 August 2015 (UTC)

Not cascading Category:Portals into subsidiary templates
Can you please look at the best way to stop the cascading of Category:Portals to subsidiary templates like Template:Person and Template:National if they set a category that links into the parent portal. Thanks. — billinghurst  sDrewth  04:17, 1 September 2021 (UTC)


 * I think will do this: . Inductiveload— talk/contribs 06:36, 1 September 2021 (UTC)

Protected edit request : Change to use bold for formatting title.
edit protected

This solves an issue with a blank being passed from a higher level template. ShakespeareFan00 (talk) 07:44, 9 May 2023 (UTC)


 * @ShakespeareFan00: Do you have a page that demonstrates the problem? At first blush that code looks like it has the appropriate fallback to not spit out broken markup if fed empty parameters. Xover (talk) 07:54, 9 May 2023 (UTC)
 * I don't have an exact example, but I noted this issue here https://en.wikisource.org/w/index.php?title=Template:Person&diff=prev&oldid=13198378 which I fixed using a different approach. ShakespeareFan00 (talk) 07:58, 9 May 2023 (UTC)
 * If title is empty, this template should pass  to header/main block. In other words, so far as I can tell this fix isn't actually needed. Xover (talk) 08:30, 9 May 2023 (UTC)
 * Noted. but I think what it gets from some templates is title="" (ie blank, not empty). ShakespeareFan00 (talk) 08:34, 9 May 2023 (UTC)