Template talk:Portal header

From Wikisource
Jump to navigation Jump to search

Classification changes[edit]

If necessary, to remove the classification elements: 1) Change this code:

| class="gen_header_backlink" | {{Portal Parent
 | class     = {{{class|}}
 | subclass1 = {{{subclass1|}}}
 | subclass2 = {{{subclass2|}}}
 | number    = {{{number|}}}
 | midclass  = {{{midclass|}}}
}}{{{parent|}}}

back to this code:

| class="gen_header_backlink" | {{{parent|}}}

2) Change this code:

{| class="portal_notes"
|- 
|<!--
   -->{{Portal Class
       | class     = {{{class|}}}
       | subclass1 = {{{subclass1|}}}
       | subclass2 = {{{subclass2|}}}
       | number    = {{{number|}}}
}}<!--

   Sister project links
   -->{{Plain sister

back to this code:

{| class="portal_notes"
|- 
|<!--

   Sister project links
   -->{{Plain sister

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)[reply]

Tracking category/ies[edit]

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)[reply]

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)[reply]
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)[reply]

created preload[edit]

As we update the fields in the header, we will need to update the framework that is loaded in Template:Portal header/preloadbillinghurst sDrewth 04:37, 16 January 2011 (UTC)[reply]

Need to rejig #if statements for Wikidata[edit]

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:headerbillinghurst sDrewth 03:43, 26 August 2015 (UTC)[reply]

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)""[reply]
yes, beautifully. — billinghurst sDrewth 07:52, 28 August 2015 (UTC)[reply]

Not cascading Category:Portals into subsidiary templates[edit]

@Inductiveload: 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)[reply]

@Billinghurst: I think forcecat=n will do this: diff. Inductiveloadtalk/contribs 06:36, 1 September 2021 (UTC)[reply]

Protected edit request : Change to use {{bold}} for formatting title.[edit]

{{edit protected}}

line (approx). Existing line Replacement
26 | title = '''{{{title|{{SUBPAGENAME}}}}}'''<!-- | title = {{bold|{{{title|{{SUBPAGENAME}}}}}}}<!--

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

@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)[reply]
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)[reply]
If |title= is empty, this template should pass '''{{SUBPAGENAME}}''' 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)[reply]
Noted. but I think what it gets from some templates is title="" (ie blank, not empty). ShakespeareFan00 (talk) 08:34, 9 May 2023 (UTC)[reply]