Template:Funding: Difference between revisions

new format
No edit summary
 
(new format)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:FundingName (label=Name)|Funder (label=Funding Organization)|Amount|Purpose|Details}}
{{#template_params:FundingName (label=Name)
{{#cargo_declare:_table=Funding|FundingName=Page|Funder=Page|Amount=Integer|Purpose=Wikitext|Details=Wikitext}}
|Funder (label=Funding Organization)
|Amount
|Purpose
|Details
}}
{{#cargo_declare:_table=Funding
|FundingName=Page
|Funder=Page
|Amount=Integer
|Purpose=Wikitext
|Details=Wikitext
}}
</noinclude><includeonly>{{#cargo_store:_table=Funding}}
</noinclude><includeonly>{{#cargo_store:_table=Funding}}
{{#template_display:_format=infobox}}
</includeonly><noinclude>
==Table details==
</noinclude>
{| class="wikitable" border="1" style="float:right; width:300px"
| style="text-align: center; background-color:#f7f781;" colspan="2" | '''{{PAGENAME}}'''
|-
| style="background:#FFEBAD; color:arsenic" align="right" | '''Funding Organization: '''
| {{#if:{{{Funder|}}}|[[{{{Funder|}}}]]}}
|-
| style="background:#FFEBAD; color:arsenic" align="right" | '''Amount: '''
| {{#if:{{{Amount|}}}|[[{{{Amount|}}}]]}}
|}<noinclude>
==Lead section==
</noinclude>'''{{PAGENAME}}''' was funded by [[{{{Funder|}}}]] for the amount of {{{Amount|}}}.
 
<h2>Purpose</h2>
{{#cargo_query:
tables=Organization
|fields=Purpose
|where=_pageName = "{{PAGENAME}}"
|format=list
}}
 
<h2>Details</h2>
{{#cargo_query:
tables=Organization
|fields=Details
|where=_pageName = "{{PAGENAME}}"
|format=list
}}
[[Category:Funding]]
[[Category:Funding]]
</includeonly>
</includeonly>