A Wiki in the Desert
Log in

Difference between revisions of "Template:ATechResource"

From A Wiki in the Desert
(Created page with "<noinclude>''Allows the displaying of Resource Needed on Technology pages'', requires a table first Usage: * <NOWIKI>{{ATechResource | Resource | Quantity}}</NOWIKI> : : Whe...")
 
m (Pluralizing the "Template" category. Categories should be plural)
Line 20: Line 20:
  
 
</noinclude><includeonly>{{ATechRow|{{#ifexist: {{{1}}} | [[{{{link|{{{1|None}}}}}}|{{{1|None}}}]] | {{#ifexist: {{{3}}} | [[{{{link|{{{3|None}}}}}}|{{{1|None}}}]] | {{{1}}} }}}}|{{{2|?}}}}}</includeonly><noinclude>
 
</noinclude><includeonly>{{ATechRow|{{#ifexist: {{{1}}} | [[{{{link|{{{1|None}}}}}}|{{{1|None}}}]] | {{#ifexist: {{{3}}} | [[{{{link|{{{3|None}}}}}}|{{{1|None}}}]] | {{{1}}} }}}}|{{{2|?}}}}}</includeonly><noinclude>
[[Category: Template]] {{DEFAULTSORT:{{SUBPAGENAME}}}}
+
[[Category: Templates]] {{DEFAULTSORT:{{SUBPAGENAME}}}}
 
</noinclude>
 
</noinclude>

Revision as of 09:21, 7 August 2018

Allows the displaying of Resource Needed on Technology pages, requires a table first

Usage:

  • {{ATechResource | Resource | Quantity}}
Where the resource has a main page, but the resource requirement is more detailed, such as a Quality 2k Test Tube, place the main resource item at the end:
  • {{ATechResource | Resource with detail | Quantity | Resource without detail}}

Example:

  • {{ATechResource | Boards | 1000}} produces:
Boards 1000
  • {{ATechResource | Quality 2k Test Tube | 10 | Test Tube }} produces
Quality 2k Test Tube 10