Template:For Sale: Difference between revisions

From WikiDemocracy
Jump to navigation Jump to search
(Undo revision 1495 by Kirk (talk))
Tag: Undo
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:
|Price=
|Price=
|Description=
|Description=
|Zip_code=
|Contact=
|Contact=
|Image=
|Image=
Line 12: Line 13:
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
{{#cargo_declare:_table=For_Sale|Items=List (,) of Text|Price=List (,) of Float|Description=Text|Contact=Text|Image=File}}
{{#cargo_declare:_table=For_Sale|Items=List (,) of Text|Price=List (,) of Float|Description=Text|Zip_code=String|Contact=Text|Image=File}}
</noinclude><includeonly>{{#cargo_store:_table=For_Sale|Items={{{Items|}}}|Price={{{Price|}}}|Description={{{Description|}}}|Contact={{{Contact|}}}|Image={{{Image|}}} }}{| class="wikitable"
</noinclude><includeonly>{{#cargo_store:_table=For_Sale|Items={{{Items|}}}|Price={{{Price|}}}|Description={{{Description|}}}|Zip_code={{{Zip_code|}}}|Contact={{{Contact|}}}|Image={{{Image|}}} }}{| class="wikitable"
! Item/s for sale
! Item/s for sale
| {{#arraymap:{{{Items|}}}|,|x|[[x]]}}
| {{#arraymap:{{{Items|}}}|,|x|x}}


|-
|-
! Asking price
! Asking price
| {{#arraymap:{{{Price|}}}|,|x|[[x]]}}
| {{#arraymap:{{{Price|}}}|,|x|x}}


|-
|-
! Description
! Description
| {{{Description|}}}
| {{{Description|}}}
|-
! Zip code
| {{{Zip_code|}}}
|-
|-
! Method of contact
! Method of contact
Line 30: Line 34:
! Photo
! Photo
| {{#if:{{{Image|}}}|[[File:{{{Image|}}}]]}}
| {{#if:{{{Image|}}}|[[File:{{{Image|}}}]]}}
|}
|}[[Category:Classified]][[Category:For Sale]]
</includeonly>
</includeonly>

Latest revision as of 15:17, 26 July 2019

This is the "For Sale" template. It should be called in the following format:

{{For Sale
|Items=
|Price=
|Description=
|Zip_code=
|Contact=
|Image=
}}

Edit the page to see the template text. This template defines the table "For_Sale". This table has not been created yet.