Template:Web

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(Created page with "{{if |test={{{1|}}} |then=[{{{1}}} {{if |test={{{2|}}} |then={{{2}}}|else={{{1}}}}}]}}<noinclude> {{Web/doc}} </noinclude>")
Line 1: Line 1:
-
{{if |test={{{1|}}}
+
<includeonly>[{{{1}}} {{if |test={{{2|}}}
-
|then=[{{{1}}} {{if |test={{{2|}}}
+
|then={{{2}}}|else={{{1}}}}}]</includeonly><noinclude>
-
|then={{{2}}}|else={{{1}}}}}]}}<noinclude>
+
{{doc}}
-
{{Web/doc}}
+
</noinclude>
</noinclude>

Revision as of 09:03, 7 March 2015

Copy & paste:

{{web||}}

This template can be used make an web address visible at the simple external links.

Compare a traditional:

[http://www.portosantateresa.com/]

Which renders to:
[1]

While:

{{web|http://www.portosantateresa.com/}}

Expands to:

http://www.portosantateresa.com/

As a convenience another form of this template mimics a traditional syntax:

{{web|http://www.portosantateresa.com/|Marina web address}}

Expands to:

Marina web address

Personal tools
advertisement
Friends of Cruisers Wiki