Template:Pin/doc

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
-
This template is quite similar to [[Template:Poi]], the difference is that it doesn't break a paragraph and does not create headings, thus it could be used inside a paragraph ("inline").
+
This template is quite similar to [[Template:Poi]], the difference is that it doesn't break a paragraph and does not create headings, thus it could be used inside a paragraph ("inline"). Hence a difference in syntax.
To include it into a page copy & paste:
To include it into a page copy & paste:
-
<pre><nowiki>{{poi inline
+
<pre><nowiki>{{poi inline| type= | name= |||}}</nowiki></pre>
-
| type=
+
-
| name=
+
-
| pretext=
+
-
| coord= {{Coord|||N|||E}}
+
-
| text=
+
-
}}</nowiki></pre>
+
Example:
Example:
Line 17: Line 11:
| type= shopping
| type= shopping
| name= "ISA" grocery store
| name= "ISA" grocery store
-
| pretext= It is located (
+
|It is located (|{{coord|41|14.356|N|9|11.446|E|}}|) at the first crossing from the harbour on the Via del Porto}} (with Via Angioy and Via Petrini)
-
| coord= {{coord|41|14.356|N|9|11.446|E|}}
+
-
| text= ) at the first crossing from the harbour on the Via del Porto}} (with Via Angioy and Via Petrini)
+
* Something else  
* Something else  
Line 28: Line 20:
* "ISA" is the nearest minimarket from the harbour. {{poi inline
* "ISA" is the nearest minimarket from the harbour. {{poi inline
-
|type=shopping
+
| type= shopping
-
|name="ISA" grocery store
+
| name= "ISA" grocery store
-
|pretext=It is located (
+
|It is located (|{{coord|41|14.356|N|9|11.446|E|}}|) at the first crossing from the harbour on the Via del Porto}} (with Via Angioy and Via Petrini)
-
|coord={{coord|41|14.356|N|9|11.446|E|}}
+
-
|text=) at the first crossing from the harbour on the Via del Porto}} (with Via Angioy and Via Petrini)
+
* Something else
* Something else

Revision as of 17:07, 13 March 2015

This template is quite similar to Template:Poi, the difference is that it doesn't break a paragraph and does not create headings, thus it could be used inside a paragraph ("inline"). Hence a difference in syntax.

To include it into a page copy & paste:

{{poi inline| type= | name= |||}}

Example:

* A few small shops in the town. 

* "ISA" is the nearest minimarket from the harbour. {{poi inline
| type= shopping
| name= "ISA" grocery store
|It is located (|{{coord|41|14.356|N|9|11.446|E|}}|) at the first crossing from the harbour on the Via del Porto}} (with Via Angioy and Via Petrini)

* Something else 

Expands to:

  • A few small shops in the town.
  • "ISA" is the nearest minimarket from the harbour. Template:Poi inline (with Via Angioy and Via Petrini)
  • Something else
Personal tools
advertisement
Friends of Cruisers Wiki