Difference between revisions of "Šablóna:Mbox/core"

From Wazeopedia
(converging to one version of the About page)
m (26 revízií)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Waze is a 100% free turn-by-turn GPS navigation application that provides real-time traffic updates, plus all kinds of cool social and geo-gaming elements that actually make commuting fun. Wazers can actively update one another on traffic, police traps, construction, speedcams, and more. And because it's user-generated, the more people who use it, the better (and more addictive) it gets!
+
<table style="
 +
  border: 1px solid rgb(170, 170, 170);
 +
  margin: 4px 5%;
 +
  border-collapse: collapse;
 +
  background: none repeat scroll 0% 0% rgb(249, 249, 249);
 +
{{{style|}}}">
 +
<tr>
 +
{{#switch:{{{image|}}}
 +
| none = <td class="mbox-empty-cell"></td>  <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
 +
| #default =
 +
  <td style="
 +
  border: medium none;
 +
  padding: 2px 0px 2px 0.9em;
 +
  text-align: center;
 +
">{{
 +
  #switch:{{{small|}}}
 +
  | left = <!-- Don't use the DIV -->
 +
  | #default = <div style="width: {{{imagewidth||52px}}};">
 +
  }}
 +
  {{#if: {{{image|}}}
 +
  | {{{image}}}
 +
  | [[File:{{#if: {{{filename|}}} | {{{filename}}} | {{#switch:{{{type|}}}
 +
    | critical    = Mbox warning.png
 +
    | warning      = mbox warning yellow.png
 +
    | important    = Mbox important.png
 +
    | caution      = Mbox caution.png
 +
    | speculation  = Mbox speculation.png
 +
    | move        = Mbox move.png
 +
    | protection  = Mbox protection.png
 +
    | license      = Mbox license.png
 +
    | construction = Mbox construction yellow.png
 +
    | neweditor    = Mbox new editor.png
 +
    | mail        = Mbox mail.png
 +
    | forum        = Gnome-system-users.svg.png
 +
    | cleanup      = Edit-clear.png
 +
    | wiki        = wikitext.png
 +
    | notice      <!-- notice = default -->
 +
    | #default    = Mbox information.png
 +
    }} }} | {{#switch:{{{small|}}}
 +
      | left = 20x20px
 +
      | #default = 40x40px
 +
      }} |link=|alt=]]
 +
  }}{{#switch:{{{small|}}}
 +
  | left = <!-- Don't use the /DIV -->
 +
  | #default = </div>
 +
  }}</td>
 +
}}
 +
<td style="
 +
  width: 100%;
 +
  border: medium none;
 +
  padding: 0.25em 0.9em;
 +
{{{textstyle|}}}"> {{{text}}} </td>
 +
{{#if:{{{imageright|}}}
 +
| {{#ifeq:{{{imageright|}}}|none
 +
  | <!-- No image. -->
 +
  | <td class="mbox-imageright">{{#switch:{{{small|}}}
 +
    | left = {{{imageright}}}
 +
    | #default = <div style="width: {{{imagerightwidth|52px}}};"> {{{imageright}}} </div>
 +
    }}</td>
 +
  }}
 +
}}
 +
</tr>
 +
</table><noinclude>
  
 +
{{Documentation|content=This subtemplate supports the default values of {{tl|Mbox}}. It should not be altered without review from a Wiki Expert. Contact one through the [http://www.waze.com/forum/viewforum.php?f=276 Wiki Updates and Discussion forum.]}}
  
Commuters usually have more than one route to their destination, and the eternal question when you get into the car is "which route is the best for me right now?" Once you enter your home and work addresses and drive 3-4 times along each of these routes, Waze will collect information and learn your optional routes.  Waze will then be able to answer the question each morning "which route is fastest?"
+
<!-- This category is only for the template itself -->
  
 +
[[Category:Template:Mbox]]
  
After typing in their destination address, users just drive with the app open on their phone to passively contribute traffic and other road data. They can also take a more active role by sharing road reports on accidents, police traps, or any hazards along the way.  This helps other users in the area get a heads-up about what’s to come. In addition to the local communities of drivers using the app, Waze is also home to an active community of online map editors who ensure that the data in their areas is as up-to-date as possible.
+
</noinclude>
 
 
 
 
Waze makes it fun to help your fellow commuters with points and achievements. Everyone starts out as a baby Wazer.  Drive around with Waze open, report incidents along your route and get more points to become a grown Wazer, a Waze knight, or even be among the selected few who are Waze royalty! The social side of Waze has a lot going on, too. See nearby friends on the map, share your drive, to find out when everyone is arriving where you are. Waze also features integration with Foursquare, Twitter and Facebook. Tweet your activities on Waze to your Twitter followers and connect to Facebook to see all of your Waze-ing Facebook friends around you on the map.  It's all a whole lot of fun!
 

Latest revision as of 20:52, 19 June 2016

{{{text}}}
Documentation icon Template documentation[view] [edit] [history] [purge]

This template automatically displays a documentation box like you are seeing now, of which the content is transcluded from another page. It is intended for pages which are transcluded in other pages, i.e. templates, whether in the template namespace or not.

Usage

Normal

<noinclude>{{documentation}}</noinclude>
 - or -
<noinclude>{{doc}}</noinclude>
 - or -
<noinclude>{{documentation|template:any page/doc}}</noinclude>

This code should be added at the bottom of the template code, with no extra space before "<noinclude>" (which would cause extra space on pages where the template is used). The parameter can be used as shown above to transclude an arbitrary documentation page.

Add categories and interwiki links to the documentation page inside <includeonly> tags.

If the documentation page contains includeonly or noinclude tags as part of the documentation, replace the "<" with "&lt;", and the ">" with "&gt;.

Customizing display

Overrides exist to customize the output in special cases:

  • {{documentation|heading=}}: change the text of the "documentation" heading. If this is set to blank, the entire heading line (including the first [edit] link) will also disappear.
  • {{documentation|content=}}: for extremely simple documentation notes, enter the message desired with the |content= parameter. The text provided with this parameter appears in a box similar to the doc subpage, without any other notations in the boxes. For more complex documentation descriptions, use a full doc subpage.

Functions

If the documentation page doesn't exist, the "edit" link includes a preload parameter so that clicking it will pre-fill the edit form with the basic documentation page format.

Rationale

This template allows any page to use any documentation page, and makes it possible to protect templates while allowing anyone to edit the template's documentation, categories, and interwiki links. It also reduces server resources by circumventing a technical limitation of templates (see a developer's explanation).

The above documentation is transcluded from Template:Documentation/doc.
Please add categories to the /doc subpage.
Subpages of this template.