Template:Document format links/Doc
From PCSAR
(Difference between revisions)
												
			
			| Line 1: | Line 1: | ||
| - | {{template doc|<nowiki>basename|description</nowiki>}}  | + | {{template doc|<nowiki>[b=]basename|description</nowiki>}}  | 
produces links to a document in several formats.  | produces links to a document in several formats.  | ||
| + | == Parameters ==  | ||
| + | ; basename : name excluding the "Image:", "File:" or "Media:" and excluding the file suffix.  | ||
| + | :; b= : (optional) if included, '''description''' will default to the same value.  | ||
| + | ; description : (optional) description to be included before links  | ||
| + | == Examples ==  | ||
{{demo table|  | {{demo table|  | ||
{{demo row|<nowiki>DocName {{document format links|Doc-103-individuals-log}}</nowiki><!--  | {{demo row|<nowiki>DocName {{document format links|Doc-103-individuals-log}}</nowiki><!--  | ||
| Line 9: | Line 14: | ||
       -->|        {{document format links|Doc-103-individuals-log|DocName}}  |        -->|        {{document format links|Doc-103-individuals-log|DocName}}  | ||
}}  | }}  | ||
| + | {{demo row|<nowiki>{{document format links|b=Doc-103-individuals-log}}</nowiki><!--  | ||
| + |        -->|        {{document format links|b=Doc-103-individuals-log}}  | ||
}}  | }}  | ||
| - | + | {{demo row|<nowiki>{{document format links|b=Doc-103-individuals-log|DocName}}</nowiki><!--  | |
| - | + |        -->|        {{document format links|b=Doc-103-individuals-log|DocName}}  | |
| - | + | }}  | |
| + | }}  | ||
| + | == Implementation ==  | ||
| + | Helper templates:  | ||
| + | * [[template:Document format links/Core]]  | ||
Current revision
The template {{Document format links|[b=]basename|description}}
produces links to a document in several formats.
[edit] Parameters
- basename
 -  name excluding the "Image:", "File:" or "Media:" and excluding the file suffix.
- b=
 - (optional) if included, description will default to the same value.
 
 
- description
 - (optional) description to be included before links
 
[edit] Examples
| You type... | You get... | 
|---|---|
 DocName {{document format links|Doc-103-individuals-log}} 
 | DocName (download/print: .pdf; edit: .odt; export: .rtf) | 
 {{document format links|Doc-103-individuals-log|DocName}} 
 | DocName (download/print: .pdf; edit: .odt; export: .rtf) | 
 {{document format links|b=Doc-103-individuals-log}} 
 | Doc-103-individuals-log (download/print: .pdf; edit: .odt; export: .rtf) | 
 {{document format links|b=Doc-103-individuals-log|DocName}} 
 |          DocName (download/print: .pdf; edit: .odt; export: .rtf)
 
  | 
[edit] Implementation
Helper templates:

