Template:Document format links

From PCSAR

(Difference between revisions)
Jump to: navigation, search
(New page: <noinclude>{{documentation}}</noinclude><includeonly><!-- -->(download/print: .pdf; edit: .odt<!-- -->{{#ifexist...)
Line 1: Line 1:
<noinclude>{{documentation}}</noinclude><includeonly><!--
<noinclude>{{documentation}}</noinclude><includeonly><!--
-
-->([[Media:{{{odt}}}.pdf|download/print]]: [[:Image:{{{odt}}}.pdf|.pdf]]; edit: [[:Image:{{{odt}}}.odt|.odt]]<!--
+
-->([[Media:{{{1}}}.pdf|download/print]]: [[:Image:{{{1}}}.pdf|.pdf]]<!--
-
-->{{#ifexist: Image:{{{odt}}}.rtf|<!--
+
-->{{#ifexist: Image:{{{1}}}.odt|<!--
-
--><nowiki></nowiki>; export: [[:Image:{{{odt}}}.rtf|.rtf]]<!--
+
--><nowiki></nowiki>; edit:<!--
 +
 
 +
--> [[:Image:{{{1}}}.odt|.odt]]<!--
 +
 
 +
-->}}<!--
 +
 
 +
-->{{#ifexist: Image:{{{1}}}.odg|<!--
 +
 
 +
--><nowiki></nowiki>; edit:<!--
 +
 
 +
--> [[:Image:{{{1}}}.odg|.odg]]<!--
 +
 
 +
-->}}<!--
 +
 
 +
-->{{#ifexist: Image:{{{1}}}.rtf|<!--
 +
 
 +
--><nowiki></nowiki>; export: [[:Image:{{{1}}}.rtf|.rtf]]<!--
-->}}<!--
-->}}<!--

Revision as of 15:48, 18 October 2015

This is the documentation for the template Template:Document format links

Template:Document format links/Doc:

The template {{Document format links|[b=]basename|description}} 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

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)


Implementation

Helper templates:


To see how this template is implemented, edit this page and examine the portion between <includeonly> and </includeonly>.

Personal tools