Jump to content

Template talk:Infobox U.S. presidential document

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Dennis Bratland (talk | contribs) at 02:49, 9 February 2017 (Requests: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

WikiProject iconUnited States Template‑class
WikiProject iconThis template is within the scope of WikiProject United States, a collaborative effort to improve the coverage of topics relating to the United States of America on Wikipedia. If you would like to participate, please visit the project page, where you can join the ongoing discussions.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

Moving discussion

@Dennis Bratland and CatapultTalks: Since the talk page for Executive Order 13769 is so busy (especially until the archiving clears away inactive threads), would we be able to move the discussion over here? I'm also going to put notices on a few WikiProjects for input (e.g. WP:US). — Sasuke Sarutobi (talk) 12:18, 7 February 2017 (UTC)[reply]

Firstly, I have tried to integrate some of the simpler suggestions first, so I have generalised it to "Presidential Documents" (as that appears to be what the Federal Register lists them as) and added a switch using the following types:
With regards to the image - the size is currently unchanged from the Great Seal on {{Infobox U.S. legislation}}, but I can certainly make it smaller. To be honest, I'm actually looking at integrating a switch for the image so that the Presidential seal is only displayed if the image field is blank, and a specified image displayed otherwise (a similar function is detailed at the bottom of the documentation for {{Infobox legislation}}, so it looks straightforward to add). The Federal Register URL will likewise be switched to automatically link to the Federal Register's copy of the document (the function is currently hardcoded for EOs and doesn't display the number in the link text). I'll then be adding documentation when the list of fields is expanded and more stable.
I have also notified the following WikiProjects of this in order to invite further comment:
Is there anything else to immediately do, or any other projects that I should notify? — Sasuke Sarutobi (talk) 12:41, 7 February 2017 (UTC)[reply]
Looks good. I don't see any reason not to move this into the regular namespace and switch it out from the legislation infobox on the Trump executive orders. It doesn't have any glaring flaws, and improvements can be incorporated in the usual way.

I don't think it should display "Type: unknown". Saying "unknown" implies that this is an unanswered question, left to future scientists to uncover perhaps with larger telescopes or supercolliders. Most of the time, it is known, just not to the Wikipedia editor who filled in these blanks. If we don't have a piece of data, the field normally defaults to not appearing on the page at all. An "Other" type might be needed, but if we're not sure it should just not be there.

I actually favor having a seal there in all cases, because it provides recognizable branding that puts it in context immediately, that it's part of the US executive branch. But that function can be served with a seal that is only 30-80 pixels wide. --Dennis Bratland (talk) 19:51, 7 February 2017 (UTC)[reply]

Thank you. I'll work on polishing it ready for the move and I can easily change the "type: unknown" behaviour; to be honest, it is essentially a vestige of the code that I'd copied from {{Infobox legislation}} to enact the switch (the infamous "Status" field, as it happens).
So the tasks that I have to do ready for the move are:
  1. Resize the seal checkY
  2. Finish the coding for the type field to be invisible if not specified (or perhaps even invisible if an unknown parameter is used) checkY
  3. Fix the code for the EO number to display in the link text (optional) checkY
Once moved, I'll also put together the basic documentation. — Sasuke Sarutobi (talk) 23:39, 7 February 2017 (UTC)[reply]

Now moved. I'll have a look at experimenting with how the image fields are added. I also think that I may need to move the long title to being placed immediately beneath the short title; because the short title is inherited from the page title if left blank, it means that it will only mention the Executive Order number when placed on those pages. — Sasuke Sarutobi (talk) 09:22, 8 February 2017 (UTC)[reply]

Test with Executive Order 13769 information

I've tested it at this revision of the template sandbox. This transcludes the version currently in this template's sandbox, so not all the features are yet live (I need to set up certain image parameters that are currently hard- or part-coded). There's a couple of formatting things I haven't been able to duplicate from {{Infobox legislation}}, notably the size of the subheader or the centering of the summary. Please let me know what you think. — Sasuke Sarutobi (talk) 19:03, 8 February 2017 (UTC) Please let me know what you think. — Sasuke Sarutobi (talk) 19:03, 8 February 2017 (UTC)[reply]

Requests

  • Can we fix the two images to use the |upright= parameter in Wikipedia:Extended image syntax. The WP:IMGSIZE explainst that it's usually best to scale images relative to the user's thumbnail size setting, which varies with their display or device. For landscape lead images, upright=1.35 is usually good, and for portrait, 1.0. Since we can't be sure which will be used in an article, we should add a field to set it to 1.35 or 1.2 or whatever works. --Dennis Bratland (talk) 02:49, 9 February 2017 (UTC)[reply]