Template:Pub/doc: Difference between revisions
Created page with "This is a '''publication template'''. A brief explanation of these templates follows. === How to use the template? === * Use <code><nowiki>{{Pub}}</nowiki></code> to hyperlink to a CAP publication. * The correct usage is: <code><nowiki>{{Pub|''Pub Type''|''Pub Number''}}</nowiki></code>. ''Pub Type'' may be one of: CAPM, CAPP, CAPR, CAPS, or CAPVA. === Example === <nowiki>{{Pub|CAPR|10-1}}</nowiki> <noinclude> {{documentation}} Category:Template documentation <..." |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Basic usage== | |||
The box below shows the most common parameters that are accepted by {{Tl|Pub}}. The purpose of each is described below. | |||
<syntaxhighlight lang="wikitext" style="overflow:auto;"> | |||
{{Pub|type|number}} | |||
</syntaxhighlight> | |||
=== | ==Common parameters== | ||
=== ''Pub type'' === | |||
The ''Pub type'' parameter specifies the type of the publication (e.g., CAPM, CAPR, CAPP, CAPS, CAPVA, AFH, AFI, AFMAN, AFPAM, DAFH, DAFI, DAFMAN, DAFPAM). | |||
=== | === ''Pub number'' === | ||
The ''Pub number'' parameter specifies the number of the publication. | |||
< | == TemplateData == | ||
{{ | {{TemplateData header|noheader=1}} | ||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Pub type", | |||
"description": "The type of publication.", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"AFH", | |||
"AFI", | |||
"AFMAN", | |||
"AFPAM", | |||
"CAPM", | |||
"CAPP", | |||
"CAPR", | |||
"CAPS", | |||
"CAPVA", | |||
"DAFH", | |||
"DAFI", | |||
"DAFMAN", | |||
"DAFPAM" | |||
] | |||
}, | |||
"2": { | |||
"label": "Pub number", | |||
"description": "The number of the publication.", | |||
"type": "string" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"type", | |||
"number" | |||
] | |||
} | |||
</templatedata> | |||
[[Category: | <includeonly>{{sandbox other|| | ||
<!-- Add categories below this line, and interwikis at Wikidata --> | |||
[[Category:Publication templates]] | |||
</ | }}</includeonly> |
Latest revision as of 18:12, 7 April 2024
Basic usage
The box below shows the most common parameters that are accepted by {{Pub}}. The purpose of each is described below.
{{Pub|type|number}}
Common parameters
Pub type
The Pub type parameter specifies the type of the publication (e.g., CAPM, CAPR, CAPP, CAPS, CAPVA, AFH, AFI, AFMAN, AFPAM, DAFH, DAFI, DAFMAN, DAFPAM).
Pub number
The Pub number parameter specifies the number of the publication.
TemplateData
TemplateData for Pub
<templatedata> { "params": { "1": { "label": "Pub type", "description": "The type of publication.", "type": "string", "suggestedvalues": [ "AFH", "AFI", "AFMAN", "AFPAM", "CAPM", "CAPP", "CAPR", "CAPS", "CAPVA", "DAFH", "DAFI", "DAFMAN", "DAFPAM" ] }, "2": { "label": "Pub number", "description": "The number of the publication.", "type": "string" } }, "paramOrder": [ "type", "number" ] } </templatedata>