Difference between revisions of "Template:Build Guide"

From Autopilot Wiki
Jump to: navigation, search
 
(34 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
<pre>
 
<pre>
 
{{Build Guide
 
{{Build Guide
 +
|Image=
 
|Modality=
 
|Modality=
 
|Build Guide Type=
 
|Build Guide Type=
 
|Short Description=
 
|Short Description=
|Uses Material(s)=
 
|Uses Part(s)=
 
 
|Creator=
 
|Creator=
 
|Version=
 
|Version=
 
|Submitted Date=
 
|Submitted Date=
 
|Uses Tool(s)=
 
|Uses Tool(s)=
 +
|Uses Schematic(s)=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
+
</noinclude><includeonly>
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
+
{{{Materials|}}}
 +
{{{Tools|}}}
 +
{{#if: {{{Image|}}} |
 +
{{#set:
 +
  Has Image=File:{{{Image}}}
 +
}}
 +
<div class="flex-row row">
 +
<div class="col-xs-12 col-md-8 col-lg-8">
 +
[[File:{{{Image}}}{{!}}class=img-responsive]]
 +
</div>
 +
<div class="col-xs-12 col-md-4 col-lg-4">
 +
|}}
 +
<blockquote>[[Has Description::{{{Short Description|}}}]]</blockquote>
 +
{| {{#if: {{{Image|}}} |
 +
style="border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; padding: 0.2em; text-align:left;width: 100%;font-family:monospace;"
 +
|
 +
style="width: 25em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;font-family:monospace;"
 +
}}
 
|-
 
|-
 
! Modality
 
! Modality
Line 24: Line 41:
 
! Build Guide Type
 
! Build Guide Type
 
| [[Has Build Guide Type::{{{Build Guide Type|}}}]]
 
| [[Has Build Guide Type::{{{Build Guide Type|}}}]]
|-
 
! Short Description
 
| [[Has Description::{{{Short Description|}}}]]
 
 
|-
 
|-
 
! Creator
 
! Creator
Line 36: Line 50:
 
! Submitted Date
 
! Submitted Date
 
| {{{Submitted Date|}}}
 
| {{{Submitted Date|}}}
|-
 
! Uses Part(s)
 
| {{#arraymap:{{{Uses Part(s)|}}}|,|x|[[Uses Part::x]]}}
 
|-
 
! Uses Material(s)
 
| {{{Materials|}}}
 
|-
 
| Uses Tool(s)
 
| {{{Tools|}}}
 
 
|}
 
|}
 +
{{#if:{{{Image|}}}|</div></div>|}}
  
 +
<div {{ Ingredients_Panel }} >
 
== Ingredients ==
 
== Ingredients ==
  
 +
<div class="flex-row row">
 +
<div class="col-xs-12 col-md-6 col-lg-6">
 +
{{#if: {{{Uses Part(s)|}}} |
 +
=== [[Parts]] ===
 +
 +
{{#arraymap:{{{Uses Part(s)|}}}|,|x|* [[Uses Part::x]]|\n}}
 +
|}}
 +
</div>
 +
<div class="col-xs-12 col-md-6 col-lg-6">
 +
{{#if: {{{Uses Schematic(s)|}}} |
 +
=== [[Schematics]] ===
 +
{{#arraymap:{{{Uses Schematic(s)|}}}|,|x|* [[Uses Schematic::x]]|\n}}
 +
|}}
 +
</div>
 +
</div>
 +
 +
{{#if: {{#ask:
 +
  [[-Has subobject::{{FULLPAGENAME}}]]
 +
  [[Subobject Type::Material]]}} |
 
=== [[Materials]] ===
 
=== [[Materials]] ===
  
Line 56: Line 82:
 
   |mainlabel=-
 
   |mainlabel=-
 
   |?Subobject Of=Name
 
   |?Subobject Of=Name
   |?Material Kind
+
   |?Material Quantity=Quantity
   |?Quantity
+
   |?Material Dimensions=Dimensions
   |?Dimensions
+
  |?Manufactured By=Manufacturer
   |?Manufacturer
+
   |?Has Product ID=Product ID
   |?Product ID
+
   |?Has USD Price=Price
   |?Datasheet
+
   |?Has Product Page=Page
 +
   |?Has Datasheet=Datasheet
 
   | default=No Materials Found
 
   | default=No Materials Found
 +
  |format=plainlist
 +
  |link=none
 +
  |introtemplate=Materials_ShortURL_Header
 +
  |template=Materials_ShortURL
 +
  |outrotemplate=Materials_ShortURL_Footer
 
}}
 
}}
 +
|}}
  
=== [[Parts]] ===
+
{{#if: {{#ask:[[-Has subobject::{{FULLPAGENAME}}]]
 +
  [[Subobject Type::Tool]]}} |
 +
=== [[Tools]] ===
  
=== [[Tools]] ===
+
{{#ask:
{{{Tools|}}}
+
  [[-Has subobject::{{FULLPAGENAME}}]]
 +
  [[Subobject Type::Tool]]
 +
  |mainlabel=-
 +
  |?Subobject Of=Name
 +
  |?Tool Kind
 +
  |?Dimensions
 +
  |?Manufactured By=Manufacturer
 +
  |?Has Product ID=Product ID
 +
  |?Has Datasheet=Datasheet
 +
  |format=broadtable
 +
  |class=smwtable-clean sortable
 +
}}
 +
|}}
  
 +
</div>
  
 
[[Category:Build Guide]]
 
[[Category:Build Guide]]
 
</includeonly>
 
</includeonly>

Latest revision as of 22:28, 26 May 2022

This is the "Build Guide" template. It should be called in the following format:

{{Build Guide
|Image=
|Modality=
|Build Guide Type=
|Short Description=
|Creator=
|Version=
|Submitted Date=
|Uses Tool(s)=
|Uses Schematic(s)=
}}

Edit the page to see the template text.