×
Create a new article
Write your page title here:
We currently have 230 articles on Farthest Frontier. Type your article name above or create one of the articles listed here!



    Farthest Frontier

    User:Jamespapp/sandbox/InfoboxResource: Difference between revisions

    Content added Content deleted
    mNo edit summary
    mNo edit summary
     
    (44 intermediate revisions by the same user not shown)
    Line 1: Line 1:
    <includeonly>{| class="wikitable" style="float: right; padding: 5px; background: #eaecf0; border: 3px solid #000000; width: 30%; margin-left: 3px"
    <includeonly>{| class="wikitable" style="float: right; padding: 5px; background: #eaecf0; border: 3px solid #000000; width: 30%; margin-left: 3px"
    ! colspan="2" | {{#if:{{{subj|}}}|{{{subj}}}|{{PAGENAME}}}}
    ! colspan="2" | {{#if:{{{subj|}}}|{{{subj}}}|{{#explode:{{PAGENAME}}|/|-1}}}}
    |-
    |-
    ! colspan="2" | [[{{{img|File:Blank.png}}}|200px]]
    ! colspan="2" | {{#if:{{{img|}}}|{{#set:img={{{img}}}}}}}[[{{{img|File:Blank.png}}}|200px]]
    |-
    |-
    ! style="text-align: left;" | Item category
    ! style="text-align: left;" | Category
    | {{{category}}}
    | {{{category}}}
    |-
    ! style="text-align: left;" | Item Subcategory
    | {{{subcategory}}}
    |-
    |-
    ! style="text-align: left;" | Produced by
    ! style="text-align: left;" | Produced by
    | {{#set:produced_by={{{produced_by}}}}}{{User:Jamespapp/sandbox/SMW/InfoboxItem/csv links from csv|{{{produced_by}}}}}
    | [[{{#replace:{{#replace:{{#replace:{{{produced_by}}}|,|~^], [^~}}|~^|]}}|^~|[}}]]
    |-
    |-
    ! style="text-align: left;" | Cost
    ! style="text-align: left;" | Cost
    | {{#if:{{{cost|}}}|{{#set:cost={{{cost}}}}}{{User:Jamespapp/sandbox/SMW/InfoboxResources|{{{cost}}}|c}}|N/A}}
    |
    {{{cost|N/A}}}
    |-
    |-
    ! style="text-align: left;" | Produces
    ! style="text-align: left;" | Produces
    | {{#if:{{{produces|}}}|{{#set:produces={{{produces}}}}}{{User:Jamespapp/sandbox/SMW/InfoboxResources|{{{produces}}}|p}}|N/A}}
    |
    {{{produces|N/A}}}
    |-
    |-


    ! style="text-align: left;" | Ingredient for
    ! style="text-align: left;" | Ingredient&nbsp;for
    | {{#if:{{{ingredient_for|}}}|{{#set:ingredient_for={{{ingredient_for}}}}}{{User:Jamespapp/sandbox/SMW/InfoboxItem/csv links from csv|{{{ingredient_for}}}}}|N/A}}
    | {{{ingredient_for}}}<br />''Work here pending the <code><nowiki>{{#replace...</nowiki></code> bug fix.''
    |-
    |-
    ! style="text-align: left;" | Used by
    ! style="text-align: left;" | Used by
    | {{#if:{{{used_by|}}}|{{#set:used_by={{{used_by}}}}}{{User:Jamespapp/sandbox/SMW/InfoboxItem/csv links from csv|{{{used_by}}}}}|N/A}}
    | {{{used_by}}}
    |-
    |-
    ! style="text-align: left;" | Constructs
    ! style="text-align: left;" | Constructs
    | {{#if:{{{constructs|}}}|{{#set:constructs={{{constructs}}}}}{{User:Jamespapp/sandbox/SMW/InfoboxItem/csv links from csv|{{{constructs}}}}}|N/A}}
    | {{{constructs}}}
    |-
    |-
    ! style="text-align: left;" | Stored in
    ! style="text-align: left;" | Stored in
    | {{#if:{{{stored_in|}}}|{{#set:stored_in={{{stored_in}}}}}{{User:Jamespapp/sandbox/SMW/InfoboxItem/csv links from csv|{{{stored_in}}}}}|N/A}}
    | {{{stored_in}}}
    |-
    |-
    ! style="text-align: left;" | Lifespan (in months)
    ! style="text-align: left;" | Lifespan
    | {{#if:{{{lifespan|}}}|[[lifespan::{{{lifespan}}}]]|N/A}} <!-- we MIGHT want to set this to ZERO instead of not setting it at all to make it more easily queried??? -->
    | {{#if:{{{lifespan|}}}|[[lifespan::{{{lifespan}}}]] months|{{#set:lifespan=0}}N/A}}
    |-
    |-
    ! style="text-align: left;" | Notes
    ! style="text-align: left;" | Notes
    | {{#if:{{{notes|}}}|[[Notes::{{{notes}}}]]}}
    | {{#if:{{{notes|}}}|[[notes::{{{notes}}}]]}}
    |}
    |}
    [[Category:{{{category}}}, {{lc:{{{subcategory}}}}}]]
    [[Category:{{{category}}}]]<!--
    [[Category:Resources, produced, by {{#replace:{{#replace:{{#replace:{{{produced_by}}}|,|~^], [^~}}|~^|]}}|^~|[Category:Resources, produced, by&nbsp;}}]]<!--
    {{User:Jamespapp/sandbox/SMW/InfoboxItem/links from csv|{{{produced_by}}}|Category:Resources, produced, by&nbsp;}}
    {{User:Jamespapp/sandbox/SMW/InfoboxItem/links from csv|{{{ingredient_for}}}|Category:Resources, ingredient, for&nbsp;}}
    [[Category:Resources, produced, by {{#replace:{{{produced_by}}}|,|]], [[Category:Resources, produced, by<nowiki> </nowiki>}}]] little trick to retain the trailing space in the replacing term -->
    {{User:Jamespapp/sandbox/SMW/InfoboxItem/links from csv|{{{used_by}}}|Category:Resources, used, by&nbsp;}}
    {{User:Jamespapp/sandbox/SMW/InfoboxItem/links from csv|{{{constructs}}}|Category:Resources, constructs,&nbsp;}}
    {{User:Jamespapp/sandbox/SMW/InfoboxItem/links from csv|{{{stored_in}}}|Category:Resources, stored, in&nbsp;}}-->
    </includeonly><noinclude>{{/doc}}</noinclude>
    </includeonly><noinclude>{{/doc}}</noinclude>

    Latest revision as of 19:30, 7 September 2023

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.