Template:Pub/doc: Difference between revisions
m Mclarty moved page Template:Pub documentation to Template:Pub/doc without leaving a redirect |
No edit summary |
||
Line 14: | Line 14: | ||
</noinclude> | </noinclude> | ||
{{Documentation subpage}} | |||
<!-- Please add categories to the /doc subpage, and interwikis at Wikidata (see Wikipedia:Wikidata) --> | |||
{{Lua|Module:Message box}} | |||
{{Mbox templates (small)}} | |||
==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). | |||
=== ''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": [ | |||
"CAPM", | |||
"CAPP", | |||
"CAPR", | |||
"CAPS", | |||
"CAPVA" | |||
] | |||
}, | |||
"2": { | |||
"label": "Pub number", | |||
"description": "The number of the publication.", | |||
"type": "string" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"type", | |||
"number" | |||
] | |||
} | |||
</templatedata> | |||
<includeonly>{{sandbox other|| | |||
<!-- Add categories below this line, and interwikis at Wikidata --> | |||
[[Category:Publication templates]] | |||
}}</includeonly> |
Revision as of 14:48, 23 January 2024
This is a publication template. A brief explanation of these templates follows.
How to use the template?
- Use
{{Pub}}
to hyperlink to a CAP publication. - The correct usage is:
{{Pub|''Pub Type''|''Pub Number''}}
. Pub Type may be one of: CAPM, CAPP, CAPR, CAPS, or CAPVA.
Example
{{Pub|CAPR|10-1}}
Lua error in Module:Documentation at line 144: message: type error in message cfg.container (string expected, got nil).
This is a documentation subpage for Template:Pub. It contains usage information, categories and other content that is not part of the original Template page. |
[[Category:Template documentation pages{{#translation:}}]]
This template uses Lua: |
Message box meta-templates | |
---|---|
template | context |
{{Ambox}} | article |
{{Cmbox}} | category |
{{Imbox}} | image |
{{Tmbox}} | talk |
{{Fmbox}} | footer / header |
{{Ombox}} | other pages |
{{Mbox}} | auto-detect |
{{Asbox}} | article stub |
{{Dmbox}} | disambiguation |
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).
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": [ "CAPM", "CAPP", "CAPR", "CAPS", "CAPVA" ] }, "2": { "label": "Pub number", "description": "The number of the publication.", "type": "string"
}
}, "paramOrder": [ "type", "number" ] } </templatedata>