Template:Funding: Difference between revisions

From USApedia
No edit summary
 
(includeonly)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:FundingName (label=Name)|Funder (label=Funding Organization)|Amount|Purpose|Details}}
{{#template_params:
{{#cargo_declare:_table=Funding|FundingName=Page|Funder=Page|Amount=Integer|Purpose=Wikitext|Details=Wikitext}}
FundingName (label=Name)
|Funder (label=Funding Organization)
|Amount
|Purpose
|Details
}}
==Cargo declaration==
{{#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=Funding
|fields=Purpose
|where=_pageName = "{{PAGENAME}}"
|format=list
}}
 
<h2>Details</h2>
''<small>{{#ifexist:{{PAGENAME}}/Details|Edit at [[{{PAGENAME}}/Details]]|Copy contents to [[{{PAGENAME}}/Details]] and put <nowiki>{{:PAGENAME/Details}}</nowiki> in the form's details field.}}</small>''
 
{{#cargo_query:
tables=Funding
|fields=Details
|where=_pageName = "{{PAGENAME}}"
|format=list
}}
<includeonly>
[[Category:Funding]]
[[Category:Funding]]
</includeonly>
</includeonly>

Latest revision as of 14:07, 15 November 2024

This is the "Funding" template.

It should be called in the following format:

{{Funding
|FundingName=
|Funder=
|Amount=
|Purpose=
|Details=
}}

Edit the page to see the template text.

Cargo declaration

This template defines the table "Funding". View table.

Table details

Funding
Funding Organization:
Amount:

Lead section

Funding was funded by [[]] for the amount of .

Purpose

No results

Details

Copy contents to Funding/Details and put {{:PAGENAME/Details}} in the form's details field.

No results