Difference between revisions of "Template:External"

From ChoralWiki
Jump to navigation Jump to search
(added documentation)
(updates)
 
Line 1: Line 1:
 {{filepath:Network.png}}
+
&nbsp;{{filepath:Network.png}}<includeonly>[[Category:External links]]</includeonly><noinclude>
<includeonly>[[Category:External links]]</includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]]<br>
+
{{DisplayBox|title=Documentation|text=
<div><div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #1188ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
 
<center><big>'''Documentation'''</big></center>
 
  
This template displays the image "Network.png" to indicate to users that the the link following it is external to CPDL server(s). It also adds the page to [[:Category:External links]].
+
This template displays the image "[[:file:Network.png|Network.png]]" to indicate to users that the link following it is external to CPDL server(s). It also adds the page to [[:Category:External links]].
  
 
'''Syntax:'''
 
'''Syntax:'''
Line 12: Line 10:
 
which outputs:
 
which outputs:
  
{{external}}[http://www.example.com/ {{pdf}}] {{external}}[http://www.example2.net/ {{mid}}]
+
&nbsp;{{filepath:Network.png}}[http://www.example.com/ {{pdf}}] &nbsp;{{filepath:Network.png}}[http://www.example2.net/ {{mid}}]
  
  
'''Note:''' If the external site is the same for all files for the edition, simply use [[Template:Net]], not this template:
+
'''Note:''' If the external site is the same for all files for the edition, simply use {{tl|net}}, not this template:
  
 
<tt><nowiki>[http://www.example.com/ {{net}}]</nowiki></tt>
 
<tt><nowiki>[http://www.example.com/ {{net}}]</nowiki></tt>
</div>
+
}}
 +
 
 +
[[Category:External link templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 00:30, 25 May 2014

 Network.png

Documentation

This template displays the image "Network.png" to indicate to users that the link following it is external to CPDL server(s). It also adds the page to Category:External links.

Syntax:

{{external}}[http://www.example.com/ {{pdf}}] {{external}}[http://www.example.net/ {{mid}}]

which outputs:

 Network.pngIcon_pdf.gif  Network.pngIcon_snd.gif


Note: If the external site is the same for all files for the edition, simply use {{net}}, not this template:

[http://www.example.com/ {{net}}]