Difference between revisions of "Template:Info Govt"

From WikiCorporates
Jump to navigation Jump to search
m
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
<table class="politicians">
+
<table class="politicians"><!--
 +
--><tr><th colspan="2"><!--
 +
--><hr style="background-color: #0061b0;"/><!--
 +
--><div class="title">[[File:HM-Government-Arms.svg|41x34px]]&nbsp;Governme&nbsp;[[File:Flag-{{{flag|UK}}}.svg|37x22px]]</div><!--
 +
--><hr style="background-color: #0061b0;"/><!--
 +
--></th></tr>
 +
<tr><th colspan="2">{{{logo}}}</th></tr>
 
<tr><th colspan="2">
 
<tr><th colspan="2">
−
<hr class="plain"/>
+
<hr style="background-color:{{{dept-colour|blue}}};"/>
−
<div class="title">Government</div>
+
<div style="font-size:120%;">{{{dept-type|Ministerial Department}}}</div>
−
<hr class="plain"/>
+
<hr style="background-color:{{{dept-colour|blue}}};"/>
 
</th></tr>
 
</th></tr>
−
<tr><th>{{{image}}}</th></tr>
+
<tr><td colspan="2">{{{blurb}}}</td></tr>
−
<tr><th>
+
<tr><td colspan="2"><div style="padding:0; text-align:center; font-size:100%; font-weight:bold; border-top:1px solid {{{dept-colour|blue}}}; border-bottom:1px solid {{{dept-colour|blue}}}; background:{{{bg-colour}}};">Contact</div></td></tr>
−
<hr style="background-color:{{{colour}}};"/>
+
<tr><td>Website:</td><td>{{{website}}}</td></tr>
−
<div style="font-size:110%;">{{{dept-type}}}</div>
+
{{#if:{{{facebook|}}}|<tr><td>Facebook:</td><td>{{{facebook}}}</td></tr>|}}
−
<div style="font-size:86%;">{{{website}}}</div>
+
{{#if:{{{twitter|}}}|<tr><td>Twitter:</td><td>{{{twitter}}}</td></tr>|}}
−
<hr style="background-color:{{{colour}}};"/>
+
{{#if:{{{instagram|}}}|<tr><td>Instagram:</td><td>{{{instagram}}}</td></tr>|}}
−
</th></tr>
+
{{#if:{{{linkedin|}}}|<tr><td>LinkedIn:</td><td>{{{linkedin}}}</td></tr>|}}
−
<tr><td>{{{blurb}}}</td></tr>
+
{{#if:{{{youtube|}}}|<tr><td>YouTube:</td><td>{{{youtube}}}</td></tr>|}}
−
<!-- People -->
+
<!-- Page Contents -->
−
<tr><td><div class="mw-collapsible mw-collapsed" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}">
+
<tr><td colspan="2" style="text-align:center; padding-left:0; font-size:105%;">
−
<div class="fold-head" style="font-size:100%; border-top:1px solid {{{colour}}}; border-bottom:1px solid {{{colour}}}; background:linear-gradient({{{colour}}}, #ffffff);">{{{people-type}}}</div>
+
{{#if:{{{pcontents|}}}|
−
<div class="mw-collapsible-content mw-collapsed" style="padding:0.2em 0px 0.4em; text-align:left;">
+
<div style="border-top:1px solid {{{dept-colour|blue}}}; border-bottom:1px solid {{{dept-colour|blue}}}; background-color:{{{bg-colour}}}; margin:0.4em 0; box-shadow:0px 2px 3px #a0a0a0; font-weight:bold;">Page Contents</div>
−
{{{people-list}}}
+
{{{pcontents}}}
−
</div>
+
|}}
−
</div></td></tr>
 
−
<!-- Executive Agencies -->
 
−
<tr><td><div class="mw-collapsible" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}">
 
−
<div class="fold-head" style="font-size:100%; border-top:1px solid {{{colour}}}; border-bottom:1px solid {{{colour}}}; background:linear-gradient({{{colour}}}, #ffffff);">{{{agency-type-1}}}</div>
 
−
<div class="mw-collapsible-content" style="padding:0.2em 0px 0.4em; text-align:left;">
 
−
{{{agency-list-1}}}
 
−
</div>
 
−
</div></td></tr>
 
−
<!-- Executive Non-Departmental Public Bodies -->
 
−
<tr><td><div class="mw-collapsible" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}">
 
−
<div class="fold-head" style="font-size:100%; border-top:1px solid {{{colour}}}; border-bottom:1px solid {{{colour}}}; background:linear-gradient({{{colour}}}, #ffffff);">{{{agency-type-2}}}</div>
 
−
<div class="mw-collapsible-content" style="padding:0.2em 0px 0.4em; text-align:left;">
 
−
{{{agency-list-2}}}
 
−
</div>
 
−
</div></td></tr>
 
−
<!-- Contact -->
 
−
<tr><td><div class="mw-collapsible mw-collapsed" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}">
 
−
<div class="fold-head" style="font-size:100%; border-top:1px solid #00ad93; border-bottom:1px solid #00ad93; background:linear-gradient({{{colour}}}, #ffffff);">{{{agency-type-3}}}</div>
 
−
<div class="mw-collapsible-content" style="padding:0.2em 0px 0.4em; text-align:left;">
 
−
{{{agency-list-3}}}
 
−
</div>
 
−
</div></td></tr>
 
−
<!-- Other Bodies -->
 
−
<tr><td><div class="mw-collapsible mw-collapsed" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}">
 
−
<div class="fold-head" style="font-size:100%; border-top:1px solid {{{colour}}}; border-bottom:1px solid {{{colour}}}; background:linear-gradient({{{colour}}}, #ffffff);">{{{agency-type-4}}}</div>
 
−
<div class="mw-collapsible-content" style="padding:0.2em 0px 0.4em; text-align:left;">
 
−
{{{agency-list-4}}}
 
−
</div>
 
−
</div></td></tr>
 
 
<!-- Footer -->
 
<!-- Footer -->
−
<tr><td style="padding:0.4em 0.3em 0 0.3em; border-top:1px solid #aaa;">
+
<hr style="background-color:{{{dept-colour|blue}}};"/>
−
<div style="text-align:center; font-size:86%;">Wikipedia: {{{wp-page}}}</div>
+
{{#if:{{{wikipedia|}}}|<div class="wp" style="font-size:80%; padding-top:5px;">{{{wikipedia}}}</div>|}}
 
</td></tr>
 
</td></tr>
 
</table><noinclude>{{doc2}}</noinclude>
 
</table><noinclude>{{doc2}}</noinclude>

Latest revision as of 22:16, 9 December 2020




HM-Government-Arms.svg Governme Flag-UK.svg

{{{logo}}}

Ministerial Department

{{{blurb}}}
Contact
Website:{{{website}}}

[edit] Documentation

Template for Govt Ministries and Departments.

Working Examples

Images, Colours and Sizes

Guidelines on using Govt logos:

Sizes:

  • 3-liner: if last line has no descenders, then h = 100 else h = 104
  • 2-liner: if last line has no descenders, then h = 77 else h = 82
  • 1-liner: if last line has no descenders, then h = ? else h = 60 (all 1st lines have descenders)

The Coat of Arms is taken from HM-Government.svg (WP's all-singing, all-dancing Coat of Arms is here: WP)
The top two bars get HM Government's colour: #0061b0. I think I'm going to have to make the Coat of Arms + "Government" into one image, because the Arms won't position correctly in Chrome.
Departments/Agencies/etc/: some have their own colours, others don't. A Department's Agencies etc. inherit their parent's colours. Add new colour entries to the list as they are created. A complete list of Depts and Agencies is here: https://www.gov.uk/government/organisations; get the colour from each dept's page via inspect element.

Ministerial Departments

Non-Ministerial Departments

  • Food Standards Agency:  #007749  +  #eff6f3 

Agencies and Public Bodies

  • Default colour: #000000

High Profile Groups

  • Default colour: #000000

Band Colours

We have a 1px line across the top and bottom of the band of the main colour, plus a background colour. Choosing the bg colour isn't trivial. Here are the steps to follow:

  1. Goto http://www.color-hex.com/color/e5f6f4
  2. Say the main colour is #00ad93; input this at the top of the page and click "Get Info"
  3. In the "Tints" section, click on the last colour at the far right, ie. #e5f6f4
  4. On the next page, again in the "Tints" section, choose the 5th tint, eg. #eff9f8

Add them to the table(s) above as we figure them out. Main colour first; background colour second.

Modifications ToDo

  1. How to show a sub-department's parent, and that it belongs to the parent dept...
  2. Add "Acronym" to the list of fields??

Here is the entirety of the table, as it is used in an article:

{{Info Govt
|colour = #00ad93
|bgcolour = #eff9f8
|image  = [[img|Govt-Department-of-Health-and-Social-Care.png|160|123}}
|dept-type = Ministerial Department
|website   = [https://www.gov.uk/government/organisations/department-of-health Gov.uk Website]
|blurb     = The Department of Health and Social Care (DHSC) is responsible for govt policy on health and social care in England. It is supported by 28 agencies and public bodies.
|people-type = Ministers & Civil Servants
|people-list =
==== Ministers: ====
* [[Jeremy Hunt]], Secretary of State for Health and Social Care (''Health Secretary'')
* [[Stephen Barclay]], Minister of State for Health (''Health Minister'')
* [[Steve Brine]], Parliamentary Under Secretary of State for Public Health and Primary Care
* ... ...
==== Civil Servants: ====
* [[Chris Wormald|Sir Chris Wormald]] KCB, Permanent Secretary
|agency-type-1 = [[#High Profile Groups|High Profile Groups]]
|agency-type-0 =
* [[#Healthcare UK|Healthcare UK]]
* ... ...
|agency-type-1 = [[#Executive Agencies|Executive Agencies]]
|agency-list-1 =
* [[#Medicines and Healthcare Products Regulatory Agency|Medicines and Healthcare Products Regulatory Agency]]
* [[#Public Health England|Public Health England]]
|agency-type-2 = [[#Executive N/D Public Bodies|Executive N/D Public Bodies]]
|agency-list-2 =
* [[#Care Quality Commission (CQC)|Care Quality Commission (CQC)]]
* [[#Health Education England|Health Education England]]
* [[#Health Research Authority|Health Research Authority]]
* [[#Human Fertilisation and Embryology Authority (HFEA)|Human Fertilisation and Embryology Authority (HFEA)]]
* ... ...
|agency-type-3 = [[#Advisory N/D Public Bodies|Advisory N/D Public Bodies]]
|agency-list-3 =
* [[#Administration of Radioactive Substances Advisory Committee|Administration of Radioactive Substances Advisory Committee]]
* [[#Commission on Human Medicines|Commission on Human Medicines]]
* [[#NHS Pay Review Body|NHS Pay Review Body]]
* [[#Advisory Committee on Clinical Excellence Awards|Advisory Committee on Clinical Excellence Awards]]
* ... ...
|agency-type-4 = [[#Other Bodies|Other Bodies]]
|agency-list-4 =
* [[#Accelerated Access Review|Accelerated Access Review]]
* [[#Morecambe Bay Investigation|Morecambe Bay Investigation]]
* ... ...
|wp-page = {{wpl|Department of Health and Social Care}}
}}

Timeline

Use the same format as in Department_for_Business,_Energy_and_Industrial_Strategy#Timeline.