Template:Document format links/Doc
From PCSAR
(Difference between revisions)
												
			
			| Line 1: | Line 1: | ||
| - | {{template doc|<nowiki>basename</nowiki>}}  | + | {{template doc|<nowiki>basename|description</nowiki>}}  | 
produces links to a document in several formats.  | produces links to a document in several formats.  | ||
| - | {{demo|<nowiki>DocName {{document format links|Doc-103-individuals-log}}</nowiki><!--  | + | {{demo table|  | 
| - | + | {{demo row|<nowiki>DocName {{document format links|Doc-103-individuals-log}}</nowiki><!--  | |
| + |        -->|        DocName {{document format links|Doc-103-individuals-log}}  | ||
}}  | }}  | ||
| + | {{demo row|<nowiki>{{document format links|Doc-103-individuals-log|DocName}}</nowiki><!--  | ||
| + |        -->|        {{document format links|Doc-103-individuals-log|DocName}}  | ||
| + | }}  | ||
| + | }}  | ||
| + | |||
| + | ; basename : name excluding the "Image:", "File:" or "Media:" and excluding the file suffix.  | ||
| + | ; description : (optional) description to be included before links  | ||
Revision as of 22:53, 4 January 2018
The template {{Document format links|basename|description}}
produces links to a document in several formats.
| 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)
 
  | 
- basename
 - name excluding the "Image:", "File:" or "Media:" and excluding the file suffix.
 - description
 - (optional) description to be included before links
 

