https://www.infra-repository.org/oiar-2013/index.php?title=Template:PAgraphic&feed=atom&action=historyTemplate:PAgraphic - Revision history2024-03-29T16:03:57ZRevision history for this page on the wikiMediaWiki 1.40.0https://www.infra-repository.org/oiar-2013/index.php?title=Template:PAgraphic&diff=440&oldid=prevJan Schoonderbeek: start2012-11-11T23:22:21Z<p>start</p>
<p><b>New page</b></p><div><noinclude><br />
[[Category:Templates]]<br />
This template creates the Graphic Representation section on a Pattern page. It takes the following named parameters:<br />
* ''graphic'': an uploaded image, such as is to show the pattern. This parameter is mandatory.<br />
* ''source'': an uploaded file (likely a .vsd Visio file), which is the source of the uploaded image. This parameter is optional.<br />
* ''size'': a wikitext parameter for the "Image" command, such as "400px" (width only) or "200x400px" (width by height). If left empty, the wiki will attempt to show the graphic in its original size.<br />
* ''title'': the "alternative" text, i.e. the text that is shown when the cursor hovers over the picture. If left empty, the graphic file name is used.<br />
* ''kind'': specify whether the graphic is a Pattern Type or Pattern Variant by using either ''Type'' or ''Variant''. If left empty, ''Type'' is assumed.<br />
<br />
To use the template, cut and paste the following code:<br />
<pre><nowiki>{{PAgraphic<br />
|graphic=<br />
|source=<br />
|size=<br />
|title=<br />
|kind=<br />
}}</nowiki></pre><br />
----<br />
</noinclude><br />
==Graphical Overview==<br />
{{#switch:{{{kind|Type}}}|variant|Variant={{#vardefine:kind|Variant}}|#default={{#vardefine:kind|Type}} }}This is the graphical representation of the infrastructure functions in this Pattern {{#var:kind}}, plus their main relations:<br />
<br><br />
[[File:{{{graphic|No graphic yet.png}}}|none|{{#if:{{{size|}}}|{{{size}}}{{!}}}}{{#if:{{{title|}}}|{{{title}}}|{{{graphic|No graphic yet}}}}}]]<br />
<br>{{#ifeq:{{#var:kind}}|Variant|[[File:Framed Pattern Variant legend.png|left|156px]]|[[File:Framed Pattern Type legend.png|left|156px]]}}{{#ifexist: File:{{{source|}}} |<small>(The [[:File:{{{source}}}|source file]] of this picture can be downloaded [[Media:{{{source}}}|here]]).</small><br>}}<br style="clear: both" /></div>Jan Schoonderbeek