Content added Content deleted
No edit summary
No edit summary
 
(148 intermediate revisions by the same user not shown)
Line 6: Line 6:
|PolicyID=
|PolicyID=
|Policy=
|Policy=
|Category=
|PCategory=
|SubCategory=
|Description=
|Description=
|CharterItem=
|CharterItem=
Line 12: Line 13:
|Stream=
|Stream=
|Approval=
|Approval=
|OriginalPolicy=
|Status=
|PolicyPaper=
|SupportDocs1=
|SupportDocs2=
|SupportDocs3=
|UpdatedBy=
|DateUpdated=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
{{#cargo_declare:_table=Policies
{{#cargo_attach:_table=Policies
|PolicyID=String
|PolicyID=String
|Policy=Text
|Policy=Text
|PCategory=String
|Category=String
|SubCategory=String
|Description=Text
|Description=Text
|CharterItem=String
|CharterItem=String
Line 24: Line 34:
|Stream=String
|Stream=String
|Approval=String
|Approval=String
|OriginalPolicy=String
|Status=String
|PolicyPaper=String
|SupportDocs1=String
|SupportDocs2=String
|SupportDocs3=String
|UpdatedBy=String
|DateUpdated=Date
}}
}}
</noinclude><includeonly>
</noinclude><includeonly>
{{#seo:
|title= Rise Policy
|keywords= Rise,Policies
|description={{{policy|}}}
|image=https://static.miraheze.org/campaignlabwiki/1/1b/Rise_logo_square_300px.png
|twitter:image:src=https://static.miraheze.org/campaignlabwiki/1/1b/Rise_logo_square_300px.png
|og:url= {{fullurl:{{PAGENAME}}}}
|og:type=article
|fb:app_id=567080903808582
|google-site-verification=GEeHhcxoHWZ4EbFBudyILoYe21RElCR1PFdaJs2iiS8
}}
{{#cargo_store:_table=Policies
{{#cargo_store:_table=Policies
|PolicyID={{{policyid|}}}
|PolicyID={{{policyid|}}}
|Policy={{{policy|}}}
|Policy={{{policy|}}}
|PCategory={{{pcategory|}}}
|Category={{{category|}}}
|SubCategory={{{subcategory|}}}
|Description={{{description|}}}
|Description={{{description|}}}
|CharterItem={{{charteritem|}}}
|CharterItem={{{charteritem|}}}
Line 35: Line 65:
|Stream={{{stream|}}}
|Stream={{{stream|}}}
|Approval={{{approval|}}}
|Approval={{{approval|}}}
|OriginalPolicy={{{originalpolicy|}}}
|Status={{{status|}}}
|PolicyPaper={{{policypaper|}}}
|SupportDocs1={{{supportdocs1|}}}
|SupportDocs2={{{supportdocs2|}}}
|SupportDocs3={{{supportdocs3|}}}
|UpdatedBy={{{updatedby|}}}
|DateUpdated={{{dateupdated|}}}
}}
}}
__NOTOC__{{PAGEBANNER:Simpler Rise Logo2.png|pgname=Stream: {{{stream|}}}|origin=1,0}}<div style="margin-right:3%;margin-left:3%"><div style="font-size:130%">
__NOTOC__{{DISPLAYTITLE:{{{pcategory|}}}}}
<div style="margin-right:18%;margin-left:18%">
{| style="width: 30%;margin-left: 40px;text-align:center"
|- style="background-color:#ffffcc;"
[[File:Website Banner2.jpeg|900px|link=Main Page]]
| style="width:50%"|[[Special:RunQuery/Search_Policies|Back ]] || [[{{PAGENAME}}PIF|PIF]]
|}
</div>
{{Legend Box2|Policy}}
{{Legend Box2|Policy}}
{|
{{{policyid|}}} {{{policy|}}}</br></br>
|- style="vertical-align:top;"
|style="padding-right:1em;width:5em;"| '''Policy ID:'''
|style="padding-right:2em;"| {{{policyid|}}}
|style="padding-right:1em;width:5.4em;"| '''Policy:'''
|style="padding-right:2em;"| {{{policy|}}}
|- style="vertical-align:top;"
|&nbsp;||
|- style="vertical-align:top;"
|style="padding-right:1em;"| '''Category:'''
|style="padding-right:2em;"| {{#sub:{{{category|}}} |3}}
|style="padding-right:1em;width:5.4em;"| '''SubCategory:'''
| {{#sub:{{{subcategory}}}|2}}
|}
</br>
{{Legend Box Off2}}
{{Legend Box Off2}}
{{Legend Box2|Description}}
{{Legend Box2|Description and Support Documents}}
{{{description|...}}}</br></br>
{{{description|}}}</br></br>
{|
|-
| style="vertical-align:top; padding-right:10em" | {{#if: {{{policypaper|}}} |Policy Paper {{#tip-info: Click on image to view the policy paper in the Policy Hub. Once you have opened the policy paper in the Policy Hub, you can open the pdf in your browser by clicking on the file}}</br> <span class="newwin">[[File:{{{policypaper|}}}|page=1|100px|Policy Paper {{{policyid|}}}|border|]] | }}</span>
| style="vertical-align:top;" | {{#if: {{{supportdocs1|}}} |Support Documents {{#tip-info: Click on image to view the supporting document in the Policy Hub. Once you have opened the supporting document in the Policy Hub, you can open the pdf in your browser by clicking on the file}}</br> <span class="newwin">[[File:{{{supportdocs1|}}}|page=1|100px|Supporting Document {{{supportdocs1}}}|border]] | }}</span>
| style="vertical-align:top;" | {{#if: {{{supportdocs2|}}} |</br><span class="newwin">[[File:{{{supportdocs2|}}}|page=1|100px|Supporting Document {{{supportdocs2}}}|border]] | }}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| style="vertical-align:top;" | {{#if: {{{supportdocs3|}}} |</br><span class="newwin">[[File:{{{supportdocs3|}}}|page=1|100px|Supporting Document {{{supportdocs3}}}|border]] | }}</span>
|}
{{Legend Box Off2}}

{{Legend Box2|Corresponding Key Policy}}
{{#cargo_query:
|tables=Key_Policies
|where=_pageName="{{{keypolicyid|}}}"
|fields=PCategory,CONCAT( '[[', "{{{keypolicyid|}}}", '|', KeyPolicy, ']]')
|format=template
|template=Cargo Query CoR
|default=''A Key Policy hasn't been attached to this policy yet''
}}
{{Legend Box Off2}}
{{Legend Box Off2}}


Line 54: Line 128:
|fields=Charter_of_Rights.CharterItem,Charter_of_Rights.Description
|fields=Charter_of_Rights.CharterItem,Charter_of_Rights.Description
|format=template
|format=template
|template=Cargo Query CoR
|template=Cargo Query Universal
|default=''A Charter article hasn't been attached to this policy yet''
}}
}}
{{Legend Box Off2}}
{{Legend Box Off2}}

{{Legend Box2|Amendments}}
{{#cargo_query:
|tables=Amendments
|where=PolicyHeader="{{PAGENAME}}"
|fields=Type, CONCAT( '[[', _pageName, '|', Description, ']]' )
|format=template
|template=Cargo Query Universal
}}
{{Legend Box Off2}}<br>


<div style="font-size:130%">
<div style="font-size:130%">
{| style="width: 100%;margin-left: 40px;"
{| style="width: 30%;margin-left: 40px;text-align:center"
|- style="background-color:#ffffcc;"
|-
| style="width:50%"|[[Special:RunQuery/Search_Policies|Back ]] || [[{{PAGENAME}}PIF|PIF]]
| [[{{{keypolicyid|}}}|Back]]|| [[{{PAGENAME}}PIF|PIF]] || {{#formlink:form=Amendments|link text=Amend|link type=text|query string=Amendments[policyheader]={{PAGENAME}}|reload|returnto={{PAGENAME}} }} || New
|}
|}
</div>
</div>
</div>
</div>

<!-- {{#formlink:form=Add_Benefit|link text=Add New Benefit|link type=button|query string=Benefits[benefitheader]={{PAGENAME}}|reload|returnto={{PAGENAME}} }}<br> -->


[[Category:Policies]]
[[Category:Policies]]

Latest revision as of 20:44, 15 August 2022

This is the "to get cargo code" template. It should be called in the following format:

{{to get cargo code
|PolicyID=
|Policy=
|Category=
|SubCategory=
|Description=
|CharterItem=
|KeyPolicyid=
|Stream=
|Approval=
|OriginalPolicy=
|Status=
|PolicyPaper=
|SupportDocs1=
|SupportDocs2=
|SupportDocs3=
|UpdatedBy=
|DateUpdated=
}}

Edit the page to see the template text. This template adds rows to the table "Policies", which is not declared by any template. View table.